开发者

Cannot find package value in AndroidManifest.xml for module

开发者 https://www.devze.com 2023-02-23 10:04 出处:网络
When compiling an Android module with Intelij-IDEA I get the following error message: Cannot find package value in AndroidManifest.xml 开发者_如何学Gofor module

When compiling an Android module with Intelij-IDEA I get the following error message:

Cannot find package value in AndroidManifest.xml 开发者_如何学Gofor 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号