importing jar libraries into android-studio

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

    Updated answer for Android Studio 2

    The easy and correct way to import a jar/aar into your project is to import it as a module.

    New -> Module

    Right click on the main project and New -> Module

    Select Import .JAR/.AAR Package

    Import .JAR/.AAR Package

    Select the .JAR/.AAR file and put a module name

    Select the .JAR/.AAR file

    Add the module as a dependency

    Add the module as a dependency

提交回复
热议问题