Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot find package value in AndroidManifest.xml for module

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>
like image 473
Martin Avatar asked Apr 11 '11 16:04

Martin


2 Answers

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.

like image 87
CrazyCoder Avatar answered Nov 11 '22 02:11

CrazyCoder


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.

like image 33
Chain Davies Avatar answered Nov 11 '22 00:11

Chain Davies