importing jar libraries into android-studio

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

    Avoid redundancy. If you have your jars under /libs in your app build.gradle by default you will have

    dependencies {
        compile fileTree(dir: 'libs', include: ['*.jar'])
        ...
    }
    

    that is enough to add all the jars you have under /libs

    this is not necessary

    //    compile files('libs/activation.jar')
    //    compile files('libs/additional.jar')
    //    compile files('libs/mail.jar')
    
    0 讨论(0)
提交回复
热议问题