Android + Maven“在'android'包中找不到属性'installLocation'的资源标识符”
为了添加对我的Android应用程序的支持
installLocation
我在我的IDE(IntelliJ)中将我的android级别从7提升到了8。 Android应用程序从IntelliJ构建良好。
我们虽然使用maven,但是从Maven开始无法编译。
[ERROR] C:devsvnlocal5xandroidAndroidManifest.xml:3: error: No resource identifier found for attribute 'installLocation' in package 'android'
[ERROR] Error when generating sources.
我还补充道
<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="8"/>
我一直在
No resource identifier found for attribute 'installLocation' in package 'android'
我改变了我的依赖性
<dependency>
<groupId>android</groupId>
<artifactId>android</artifactId>
<version>2.1_r1</version>
<scope>provided</scope>
</dependency>
至
<dependency>
<groupId>com.google.android</groupId>
<artifactId>android</artifactId>
<version>2.2.1</version>
<scope>provided</scope>
</dependency>
但我仍然收到此错误消息。
少了什么东西?
没有找到相关结果
已邀请:
2 个回复
藐刚
我可以看到它用
编译而不是
。 我终于追踪到了
应该是
掸牛浓疗
通过编辑项目属性来更改构建目标(在Eclipse中右键单击项目),然后选择至少具有API级别8的目标: