Android Libraries in Android Studio

后端 未结 6 1329
长发绾君心
长发绾君心 2020-12-14 17:44

Has anyone figured/found out how Android libraries are intended to work in Android studio?

I have not been able to find any documentation on this yet (the documentat

6条回答
  •  失恋的感觉
    2020-12-14 18:27

    If you want to use additional libraries in your Android Studio project:

    1. Copy your .jar library into libs folder in your project
    2. Right click on the library and choose "Add as library"
    3. In build.gradle replace

      compile files('libs/android-support-v4.jar')

    with

    compile fileTree(dir: 'libs', include: '*.jar')
    

    If it still doesn't work, navigate to the root folder of your project with our terminal and run a gradlew clean command.

提交回复
热议问题