Is it possible to download and integrate APIs to Android Studio without having internet on the PC that contains the program?

1

I have Android Studio on a desktop PC with Windows 8.1, but for now I do not have internet on that computer. The equipment I have does not support the emulation of the android emulator, so I wanted to use my Android phone to test my application.

The necessary API for my cell phone is 4.4.2 and I only find 4.2, so my question is: Can I download the necessary API from a website from another PC and then deploy it in Android Studio and the same work with my cell phone?

    
asked by Darío E. Oliveros 29.12.2016 в 17:29
source

2 answers

1

If you can.

The steps are:

  • Download android-17_r03.zip
  • Go to the folder where your Android SDK files are located on your PC. The route would be Android / Sdk / platforms /
  • Unzip the file you just downloaded into the Android / Sdk / platforms / path. The name of the folder would be android-4.2.2
  • Download sources-17_r01.zip
  • Go to the folder where your Android SDK files are located on your PC. The route would be Android / Sdk / sources /
  • Unzip the file you just downloaded in Android / Sdk / sources /.
  • A folder called src will be created.
  • We change the name of the folder to android-4.2.2 .
  • You already have API 17 on your device
  • Obs:

    • I just tried on my computer and it works for me.
    • I assume you have installed Android SDK Platform-Tools and Android SDK Tools
    answered by 29.12.2016 / 17:59
    source
    1

    You can install Android Studio on another PC, download what you need and then take the folder where you have configured the Android SDK to the PC that you do not have internet and replace it.

    On the other hand, you say that the emulator does not work for you, I understand that it is because your PC does not support HAXM technology, right?

    If that were the case, you can always create a device with an ARM image instead of x86 / x64. In the ADL, create a new device and choose an ARM image. Complete the process and you will have a slower but functional emulator.

    Please note that you may also need to download the ARM image of the Android version you need (4.2, 4.2.2, etc.) from the internet.

    Greetings

        
    answered by 29.12.2016 в 17:51