react-native-fetch-blob
react-native-fetch-blob copied to clipboard
Build failed with an exception (After upgrading RN 0.56)
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':react-native-fetch-blob:processReleaseResources'.
com.android.ide.common.process.ProcessException: Failed to execute aapt
AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'
After updating from 0.53 to 0.56 building the android project is failed. I already cleaned the project and I restarted packager with cache reset. i m using "react-native-fetch-blob": "0.10.8", any help ?
I resolved it by updating the react-native-fetch-blob/android/build.gradle compileSdkVersion 26 buildToolsVersion "26.0.3" defaultConfig { minSdkVersion 16 targetSdkVersion 26 versionCode 1 versionName "1.0" }
@YahiaJabeur Thank you very much, you save my day. I found that not only react native fetch blob but many libraries need to be updated this way to work with react-native 0.56
@thientinduong Yes, All the libraries need to be updated to compileSdkVersion 26
Since this library has no maintainers and PR's won't get accepted, you can use my fork to resolve this issue if you want (so you don't have to monkey patch it every time) : https://github.com/xanderberkein/react-native-fetch-blob
yarn add github:xanderberkein/react-native-fetch-blob#master
I'll soon move to https://github.com/joltup/rn-fetch-blob, although some issues suggest that library also has problems with [email protected]
I could solve it by implementing this: https://github.com/react-community/react-native-image-picker/issues/882#issuecomment-405255785
Afterwards I ran into another error which is described in this post: https://stackoverflow.com/questions/49112190/error-program-type-already-present-android-support-design-widget-coordinatorl