Skip to content Skip to sidebar Skip to footer

How To Add Third Party Sdk In Android Studio

I want to add third party sdk in my android project. Can anyone tell me the process step by step.... I tried but can't... My Process: Copy and paste jar file in libs folder Add de

Solution 1:

You can try below methods :

First method:

  1. switch your folder structure from Android to Project.-> paste the .jar file inside libs folder->Right click on the jar file and at end click on Add as library->This will take care of adding compile files('libs/library_name.jar') in build.gradle after sync gradle -> make sure compile files('libs/library_name.jar') added your build.gradle file -> Then build your project

Second method:

2.(If 1st method does not work for you then try it.) switch your folder structure from Android to Project.-> paste the .jar file inside libs folder->Select Dependencies Tab, add the file by using + .Click on file dependency and Select your jar file from libs directory.->Then click OK->This will take care of adding compile files('libs/library_name.jar') in build.gradle after sync gradle -> make sure compile files('libs/library_name.jar') added your build.gradle file -> Then build your project.

Solution 2:

Open the Android SDK Manager. At the tools tab selecct Manage Add-on Site. Then go to the User Defined Sites tab and click new. A the prompt dialog enter the URL you wish to add. Then close the window. Back at the Android SDK Manager scroll down and u should be able to locate the SDK u added. If needed at the packages tab of the SDK Manager click Show Archive Details

Post a Comment for "How To Add Third Party Sdk In Android Studio"