Android Studio: Add jar as library?

后端 未结 30 2485
天命终不由人
天命终不由人 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条回答
  •  Happy的楠姐
    2020-11-21 06:58

    Step 1 : Now under your app folder you should see libs, if you don't see it, then create it .

    Step 2 : Drag & Drop the .jar file here, you may be get a prompt "This file does not belong to the project", just click OK Button .

    Step 3 : Now you should see the jar file under libs folder, right click on the jar file and select "Add as library", Click OK for prompt "Create Library"

    Step 4 : Now this jar has been added.

提交回复
热议问题