importing jar libraries into android-studio

后端 未结 13 1783
孤独总比滥情好
孤独总比滥情好 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条回答
  •  猫巷女王i
    2020-11-29 02:21

    This is the way I just did on Android Studio version 1.0.2

    • I have created a folder libs in [your project dir]\app\src
    • I have copied the jtwitter.jar (or the yambaclientlib.jar) into the [your project dir]\app\src\libs directory
    • The following the menu path: File -> Project Structure -> Dependencies -> Add -> File Dependency, Android Studio opens a dialog box where you can drag&drop the jar library. Then I clicked the OK button.

    At this point Gradle will rebuild the project importing the library and resolving the dependencies.

提交回复
热议问题