importing jar libraries into android-studio

后端 未结 13 1723
孤独总比滥情好
孤独总比滥情好 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 01:57

    Running Android Studio 0.4.0 Solved the problem of importing jar by

    Project Structure > Modules > Dependencies > Add Files
    Browse to the location of jar file and select it
    

    For those like manual editing Open app/build.gradle

    dependencies {
        compile files('src/main/libs/xxx.jar')
    }
    

提交回复
热议问题