importing jar libraries into android-studio

后端 未结 13 1782
孤独总比滥情好
孤独总比滥情好 2020-11-29 01:32
android-studio 0.2.7
Fedora 18

Hello,

I am trying to add the jtwitter jar to my project.

First I tried doing the following:

13条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-29 02:16

    This is how you add jar files from external folders

    1) Click on File and there you click on New and New Module

    2) New Window appears ,,There you have to choose the Import .JAR/.AAR package .

    3) Click on the path option at the top right corner of the window ...And give the whole path of the JAR file .

    4)click on finish.

    Now you have added the Jar file and You need to add it in the dependency for your application project

    1)Right click on app folder and there you have to choose Open Module Settings or F4

    2)Click on dependency at the top right corner of the current window .

    3)Click on '+' symbol and choose 'Module Dependency' and It will show you the existed JAR files which you have included in your project ...

    Choose the one you want and click 'OK/Finish'

    Thank you

提交回复
热议问题