Android Studio: Add jar as library?

后端 未结 30 3007
天命终不由人
天命终不由人 2020-11-21 05:54

I\'m trying to use the new Android Studio but I can\'t seem to get it working correctly.

I\'m using the Gson library to serialize/deserialize JSON-o

30条回答
  •  误落风尘
    2020-11-21 06:37

    All these solutions are outdated. It's really easy now in Android Studio:

    File > New Module...

    The next screen looks weird, like you are selecting some widget or something but keep it on the first picture and below scroll and find "Import JAR or .AAR Package"

    Then take Project Structure from File menu.Select app from the opened window then select dependencies ,then press green plus button ,select module dependency then select module you imported then press OK

提交回复
热议问题