1 install jdk-7
use below command in terminal:
when install java complete checkout it by below command:
when appear below message indicate the install is sucessful.
2 install android studio
use below to install android studio automatically:
3 start a new project by android studio
1) open the "android studio" at dir /opt/android-studio/bin and use ./studio.sh to start the "android studio"
then you may have some problem
2)when you meet the error :Unable to run mksdcard SDK tool. use below command can resolve:
3)set the SDK in your own path
like mine :
4) when you meet the error :
Check your [sdk directory]/platform-tools (my path: /home/warrior/Android/Sdk/platform-tools)directory, if it exists. If not, then open the SDK manager in the Android Studio (a button somewhere in the top menu, android logo with a down arrow in below picture and the selected icon ADM), and download&install the Tools > Android SDK Platform-tools.

then you can start a VM or use your own phone to test your project!!
use below command in terminal:
点击(此处)折叠或打开
- sudo apt-get install openjdk-7-jdk
when install java complete checkout it by below command:
点击(此处)折叠或打开
- java -version
when appear below message indicate the install is sucessful.
点击(此处)折叠或打开
- java version "1.7.0_79"
- OpenJDK Runtime Environment (IcedTea 2.5.6) (7u79-2.5.6-0ubuntu1.14.04.1)
- OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode)
2 install android studio
use below to install android studio automatically:
点击(此处)折叠或打开
- sudo apt-add-repository ppa:paolorotolo/android-studio
- sudo apt-get update
- sudo apt-get install android-studio
1) open the "android studio" at dir /opt/android-studio/bin and use ./studio.sh to start the "android studio"
then you may have some problem
2)when you meet the error :Unable to run mksdcard SDK tool. use below command can resolve:
点击(此处)折叠或打开
- sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6
like mine :
点击(此处)折叠或打开
- /home/warrior/Android/Sdk
Throwable: Unable to locate adb within SDK
. you can solve it by below method:Check your [sdk directory]/platform-tools (my path: /home/warrior/Android/Sdk/platform-tools)directory, if it exists. If not, then open the SDK manager in the Android Studio (a button somewhere in the top menu, android logo with a down arrow in below picture and the selected icon ADM), and download&install the Tools > Android SDK Platform-tools.

then you can start a VM or use your own phone to test your project!!