Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Execution failed for task ':react-native-youtube:verifyReleaseResources'

While making build of react native app I get the following error. * What went wrong: Execution failed for task ':react-native-youtube:verifyReleaseResources'.

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

And after this the build is failed.Why this came and what is the possible solution for this problem?

like image 423
Eshant Bist Avatar asked Nov 16 '18 07:11

Eshant Bist


1 Answers

Reason for the error:

You have installed react-native-youtube as a dependency, And the reason for this error is that the configurations of your android/app/build.gradle and node_modules/react-native-youtube/android/build.gradle mismatch.

Solution

  1. Navigate to node_modules/react-native-youtube/android/build.gradle
  2. Edit and keep the compileSdkVersion buildToolsVersion minSdkVersion targetSdkVersion same as you have in android/app/build.gradle
  3. Sync the project again.
  4. Run ./gradlew assembleRelease from the terminal.
like image 103
Hadi Mir Avatar answered Oct 15 '22 07:10

Hadi Mir