我想开始使用
但它没能正常工作。我收到了"missing artifact"错误。
非常感谢您的帮助。
appcompat-v7
支持库的新ActionBar
,并且我正在使用maven。我尝试创建一个apklib。这是我遵循的步骤:
- 创建项目
android-sdks/extras/android/support/v7/appcompat
的ZIP文件。 - 将ZIP文件重命名为APKLIB扩展名。
- 将APKLIB文件安装到本地存储库中:
C:....m2\repository\android\support\compatibility-v7-appcompat\18>mvn install:install-file -Dfile=appcombat.apklib -DgroupId=android.support -DartifactId=appcompat -Dversion=18 -Dpackaging=apklib
在我的Android项目中添加此依赖项的POM文件以开始使用该库:
<dependency>
<groupId>android.support</groupId>
<artifactId>appcompat</artifactId>
<version>18</version>
<type>apklib</type>
</dependency>
但它没能正常工作。我收到了"missing artifact"错误。
非常感谢您的帮助。