How to add a jar in External Libraries in android studio

前端 未结 14 2274
北海茫月
北海茫月 2020-11-22 16:17

I am new to Android Studio. What I need to do is add a few jar files in the External Libraries below the < JDK > folder.

14条回答
  •  自闭症患者
    2020-11-22 16:39

    This is how you can add .jar file in Android Studio 2.1.3.

    1. Copy the .jar file

    2. paste the file in Libs folder and then right click on .jar file and press Add as library

    3. open build.gradle

    4. add lines under dependencies as shown in screenshot

    5. Now press play button and you are done adding .jar file

提交回复
热议问题