Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 28468

Why assembleDebug success but assembleRelease failed in react native?

$
0
0

I have tried to assemble my project as a release. But it always failed. Below are some of the script that I use to build my apk as release:-

BUILD SUCCESSFUL

.\gradlew assembleDebug --no-daemon
.\gradlew app:assembleDebug

BUILD FAILED

.\gradlew app:assembleRelease
.\gradlew assembleRelease -x bundleReleaseJsAndAssets

The result of the failed mention on every failed build:-

> Execution failed for task ':app:mergeReleaseResources'> Task :app:mergeReleaseResources
> FAILED cvc-type.3.1.3: The value '' of element 'id' is not valid.

enter image description here

enter image description here

enter image description here

I also have try to create keystore using keytool and apply it to the signingConfigs in

./android/app/build.gradle

but no success on release. So, I'm reverting and use default debug.keystore value

Referring various answer from forum, SO question, tutorial I have try to apply. I'm totally stuck.

Does anyone face this issue and able to overcome the obstacles?


Viewing all articles
Browse latest Browse all 28468

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>