React-native-fetch-blob: Build failed with an exception (After upgrading RN 0.56)

Created on 5 Jul 2018  路  5Comments  路  Source: wkh237/react-native-fetch-blob

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 ?

Most helpful comment

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

All 5 comments

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]

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nicholasstephan picture nicholasstephan  路  3Comments

Draccan picture Draccan  路  3Comments

amirfefer picture amirfefer  路  4Comments

Jason0112 picture Jason0112  路  3Comments

timsuchanek picture timsuchanek  路  4Comments