When compiling an Android module with Intelij-IDEA I get the following error message:
Cannot find package value in AndroidManifest.xml for module
The hover help tell me to fill in the Resources page on settings dialogue. But, what actually do I have to fill in?
The Manifest file is pretty sort (it's a library)
<manifest
android:versionCode='1'
android:versionName='0.1'
package='com.XXX.datamodel'
xmlns:android='http://schemas.android.com/apk/res/android'
>
<uses-sdk
android:minSdkVersion='4'
android:targetSdkVersion='8'
></uses-sdk>
</manifest>
Such error may occur when the path to the AndroidManifest.xml
file in the IDEA Android Facet settings is configured incorrectly. Correcting the Manifest path should fix the problem.
I got this error message once in a multi-module project where the outer project wasn't an android module, but an inner project was. Idea recognized the outer project as an android facet and was wrongly configured as such.
I just removed the facet on the outer project by going into Project Structure, selecting the outer module and right clicking on the android facet and deleted it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With