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

mergeReleaseResources Failed, caused of `not valid resource name` (Version from package.json)

$
0
0

I do an require for package.json in my React-Native-App to read the Version-Number from there to display it in my App:

const pjson = require('../../package.json');

Caused of this, I got an error while bundling an RELEASE APK in Android with gradle:

Task :app:mergeReleaseResources FAILED /home/Projekte/APP/android/app/build/generated/res/react/release/raw/package.json: Error: package is not a valid resource name (reserved Java keyword)

Is there a way to exclude this package.json from the Process who merge the Resources for the APK?


Viewing all articles
Browse latest Browse all 28460

Trending Articles



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