Open
Description
Hi all,
I have this problem on Android when trying to run it on device or emulator.
I created new React Native project and installed rn-fetch-blob
package. I linked it successfully and should be working out of box.
package.json:
"react-native": "0.56.0",
"rn-fetch-blob": "^0.10.11"
What I get when running react-native run-android
is this:
rn-fetch-blob:processReleaseResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':rn-fetch-blob:processReleaseResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
It gave me these errors:
[my_project]/node_modules/rn-fetch-blob/android/build/intermediates/res/merged/release/values-v24/values-v24.xml:3: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.
...
[my_project]/node_modules/rn-fetch-blob/android/build/intermediates/res/merged/release/values-v26/values-v26.xml:15: error: Error: No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.
It was also complaining about min SDK version which I had to lower down (./android/build.gradle):
ext {
// buildToolsVersion = "26.0.3"
buildToolsVersion = "23.0.1"
minSdkVersion = 16
compileSdkVersion = 26
targetSdkVersion = 26
// supportLibVersion = "26.1.0"
supportLibVersion = "23.0.1"
}
Any ideas??