Android Studio: Add jar as library?

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

    1. Download Library file from website
    2. Copy from windows explore
    3. Paste to lib folder from Project Explorer
    4. Ctrl+Alt+Shift+S open Project Structure
    5. Select Dependencies Tab, add the file by using +
    6. Tool bar Sync project with gradle file by using button

    That solved my problem. Try, if anyone want more details let me know.

提交回复
热议问题