Skip to content

Instantly share code, notes, and snippets.

@unger1984
Created March 7, 2015 13:58
Show Gist options
  • Select an option

  • Save unger1984/8652e5e6aba4185976b6 to your computer and use it in GitHub Desktop.

Select an option

Save unger1984/8652e5e6aba4185976b6 to your computer and use it in GitHub Desktop.
android appcompat-v7 maven
Взято тут: http://stackoverflow.com/questions/18025942/how-do-i-add-a-library-android-support-v7-appcompat-in-intellij-idea
1) Goto ANDROID_HOME\sdk\extras\android\support\v7\appcompat
2) Create a zip file of the entire library and call it appcompat.apklib
3) Open cmd in this location and type "mvn install:install-file -Dfile=appcompat.apklib -DgroupId=com.google.android -DartifactId=support-v7-appcompat -Dversion=r7 -Dpackaging=apklib"
4) Goto ./libs
5) Type "mvn install:install-file -Dfile=android-support-v7-appcompat.jar -DgroupId=com.google.android -DartifactId=support-v7-appcompat -Dversion=r7 -Dpackaging=jar"
6) Add the appropriate dependencies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment