Android Studio: Add jar as library?

后端 未结 30 2482
天命终不由人
天命终不由人 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:55

    In android Studio 1.1.0 . I solved this question by following steps:

    1: Put jar file into libs directory. (in Finder)

    2: Open module settings , go to Dependencies ,at left-bottom corner there is a plus button. Click plus button then choose "File Dependency" .Here you can see you jar file. Select it and it's resolved.

提交回复
热议问题