声明:文章原创,转载需注明出处。由于文章大多是学习过程中的记录内容,技术能力有限,希望大家指出其中错误,共同交流进步。由此原因,文章会不定期改善,看原文最新内容,请到:http://blog.chinaunix.net/uid/29454152.html
1 install jdk-7 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.
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:
4) when you meet the error : 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!!