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:
- Create a ZIP file of the project
android-sdks/extras/android/support/v7/appcompat
- Rename the ZIP file with an APKLIB extension.
- Install the APKLIB file into my local repository:
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
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.