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>
但我仍然收到此错误消息。 少了什么东西?     
已邀请:
mvn package -X
我可以看到它用
android-sdk-windows/platforms/android-7
编译而不是
android-8
。 我终于追踪到了
<plugins>
  <plugin>
    <groupId>com.jayway.maven.plugins.android.generation2</groupId>
    <artifactId>maven-android-plugin</artifactId>
    ...
    <sdk>
      <platform>7</platform>
    </sdk>
platform
应该是
<platform>8</platform>
    
但是,构建目标需要更新到API级别8(Android 2.2),否则您将收到以下错误:
error: No resource identifier found for attribute ‘installLocation’ in package ‘android’
通过编辑项目属性来更改构建目标(在Eclipse中右键单击项目),然后选择至少具有API级别8的目标:     

要回复问题请先登录注册