Android Referencing a library project -
my question might simple cant find answer: android project try implement https://github.com/ipaulpro/afilechooser in installation instructions find:
add afilechooser project android library project. with link http://developer.android.com/tools/projects/projects-eclipse.html#referencinglibraryproject when follow link point 1 :
1. make sure both project library , application project depends on in workspace. if 1 of projects missing, import workspace. how should points ? zip afilechooser main folder, or need right click on app , create new package or ?
note : im using android studio , followed tutorial in comments, android studio dosnt recognize project library. got project github downloading zip.
1 - in project's "main" root directory (where res, java , androidmanifest.xml file located) create new folder:
/libs
2- paste library in newly created
/libs
folder. download zip github, rename library directory "afilechooser" , copy it.
3 - in app/build.gradle add library project dependency:
dependencies { compile filetree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:21.0.3' compile project(":afilechooser") }
Comments
Post a Comment