安装好Android Studio 之后,启动studio 弹出提示说No JVM.....就算已经在环境变量处定义了JAVA_HOME,可还是不行。
在网上搜寻的解决方法,如下操作成功:
- Installed 64-bit JDK 1.8.0_11.(http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
- Installed latest Android Studio Bundle.
- Went to Control Panel -> System -> Advanced system settings -> Environment Variables...
- Added JDK_HOME pointing to my 64-bit JDK.
- Launched studio64.exe
I got the same message you did. Thinking that it might be the environment variable, I did the following :
- Went to Control Panel -> System -> Advanced system settings -> Environment Variables...
- Changed the name of JDK_HOME to JAVA_HOME.
- Launched studio64.exe
“The following SDK components were not installed: build-tools-21.1.1
....." 的问题, 解决如下:
1.download build-tools21.1.1 google link or dehkadeco.ir link
2.sdk will be located under C:\Users\<>\AppData\Local\Android\sdk.
3.You may find that 21.1.2 is already in place C:\Users\<>\AppData\Local\Android\sdk\build-toolsCreate a folder with name "21.1.1" under this
4.Copy all the files from the downloaded build-tools:21.1.1 under android-5.0 to C:\Users\<>\AppData\Local\Android\sdk\build-tools\21.1.1
5.Start the Android studio now.