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

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

Open nsethuraman opened this issue 6 years ago • 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??

nsethuraman avatar Nov 16 '18 07:11 nsethuraman

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

befirst avatar Nov 16 '18 08:11 befirst

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

skokon avatar Nov 18 '18 18:11 skokon

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!

JCsplash avatar Jan 29 '19 23:01 JCsplash