wkh237/react-native-fetch-blob

Execution failed for task ':react-native-fetch-blob:verifyReleaseResources'.

nsethuraman opened this issue · 3 comments

Hi all,

I have this problem on Android when trying to build release apk but working fine on debugging apk.

package.json:
"react-native": "^0.57.0",
"react-native-fetch-blob": "^0.10.8"

I m running gradlew assemlerelease get this error

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':react-native-fetch-blob:verifyReleaseResources'.

com.android.ide.common.process.ProcessException: Failed to execute aapt

(./android/build.gradle) :
ext {
buildToolsVersion = "27.0.3"
minSdkVersion = 16
compileSdkVersion = 27
targetSdkVersion = 26
supportLibVersion = "27.1.1"
}

Any ideas??

For me, this error was when I started release building from terminal. After that, I've tried build from android studio and all is fine

Hi, Please go to react-native-fetch-blob/android/build.gradle and update these values

compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0"
}

to these

compileSdkVersion 26
buildToolsVersion "26.0.3"
defaultConfig {
minSdkVersion 16
targetSdkVersion 26
versionCode 1
versionName "1.0"
}

On the repository's main page, it says that react-native-fetch-blob has moved to rn-fetch-blob.

It seems like the maintainers of rn-fetch-blob already resolved the issue!