Skip to content
This repository has been archived by the owner on Mar 16, 2019. It is now read-only.

Build failed with an exception (After upgrading RN 0.56) #716

Open
ghost opened this issue Jul 5, 2018 · 5 comments
Open

Build failed with an exception (After upgrading RN 0.56) #716

ghost opened this issue Jul 5, 2018 · 5 comments

Comments

@ghost
Copy link

ghost commented Jul 5, 2018

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
Copy link
Author

ghost commented Jul 6, 2018

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

@tindt4869
Copy link

@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

@ghost
Copy link
Author

ghost commented Jul 9, 2018

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

@xanderberkein
Copy link

xanderberkein commented Aug 6, 2018

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 react-native@0.56.0

@tobirohrer
Copy link

tobirohrer commented Oct 24, 2018

I could solve it by implementing this:
react-native-image-picker/react-native-image-picker#882 (comment)

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants