Generate APKLIB of compatibility-v7-appcompat
I want to start using the new ActionBar of the appcompat-v7 support
library, and I'm using maven. I tried to create an apklib. These are the
steps I followed:
1) Create a ZIP file of the project
android-sdks/extras/android/support/v7/appcompat 2) Rename the ZIP file
with an APKLIB extension. 3) Install the APKLIB file into my local
repository:
C:\...\.m2\repository\android\support\compatibility-v7-appcompat\18>m
vn install:install-file -Dfile=appcombat.apklib -DgroupId=android.support
-Darti
factId=appcompat -Dversion=18 -Dpackaging=apklib
Start using the library from my android project adding this dependency in
the pom:
<dependency>
<groupId>android.support</groupId>
<artifactId>appcompat</artifactId>
<version>18</version>
<type>apklib</type>
</dependency>
But it's not working. I'm getting an error of missing artifact. Any help
would be much appreciated.
No comments:
Post a Comment