react-native-fetch-blob icon indicating copy to clipboard operation
react-native-fetch-blob copied to clipboard

Build failed with an exception (After upgrading RN 0.56)

Open ghost opened this issue 7 years ago • 5 comments
trafficstars

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 ?

ghost avatar Jul 05 '18 15:07 ghost

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" }

ghost avatar Jul 06 '18 12:07 ghost

@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

tindt4869 avatar Jul 09 '18 04:07 tindt4869

@thientinduong Yes, All the libraries need to be updated to compileSdkVersion 26

ghost avatar Jul 09 '18 07:07 ghost

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]

xanderberkein avatar Aug 06 '18 10:08 xanderberkein

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

tobirohrer avatar Oct 24 '18 15:10 tobirohrer