Android studio (VII)
Install Android studio
Instructions from: http://developer.android.com/intl/es/sdk/installing/index.html
Unpack the .zip file you downloaded to an appropriate location for your applications, such as within /usr/local/ for your user profile, or /opt/ for shared users.
To launch Android Studio, open a terminal, navigate to the android-studio/bin/ directory, and execute:
_$: studio.sh
Tip: Add android-studio/bin/ to your PATH environment variable so you can start Android Studio from any directory.
Select whether you want to import previous Android Studio settings or not, then click OK.
The Android Studio Setup Wizard guides you though the rest of the setup, which includes downloading Android SDK components that are required for development.
Note: If you are running a 64-bit version of Ubuntu, you need to install some 32-bit libraries with the following command:
_$: sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6
Install device
Go to Tools
-> Android
-> AVD Manager
-> Create Virtual Device
and create a new device.
Example:
Select Hardware
Category: Phone
Name: Nexus 5X
System Image
Marshmallow -> Download
Create emulator
Go to Run
and click on Run app
-> Create New Emulator
Select Hardware
Category: Phone
Name: Nexus 5X
System Image
Marshmallow
Verify Configuration
Name: Nexus 5X API 23 2
Run application
Go to Run
and click on Run app
. When the device is started and we see the android screen:
_$: cp <app>.apk /home/dceresuela/apps/android-sdk-linux/platform-tools
_$: ./adb install -r taloki.apk
Now go to the smartphone’s main menu in the emulator and run the application.