Android Studio 설치 중 유효한 JVM 설치 오류를 가리 키지 않음
방금 Android Studio를 다운로드했습니다. 실행하는 동안 환경 변수를 수정하고
JAVA_HOME
과
C : \ Progra ~ 2 \ Java \ jdk1.6.0_22
이 장애물을 끝내면 이제 또 다른 오류가 발생합니다.
The environment variable JAVA_HOME (with the value of *C:\Progra~2\Java\jdk1.6.0_22*) does not point to a valid JVM installation.
다른 유사한 질문을 살펴본 결과 버전을 확인하라는 요청을 받았으므로 CMD에서 다음을 수행했습니다.
C:\Users\Andre>java -version
java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) Client VM (build 17.1-b03, mixed mode, sharing)
C:\Users\Andre>javac -version
javac 1.6.0_22
결과에서 JVM이있는 것 같습니다.
또한 JAVA_HOME에 대해 이러한 경로를 시도했으며 매번 새 CMD 창을 닫았다가 다시 열었습니다.
C:\Program Files (x86)\Java\jre7
C:\Program Files (x86)\Java\jre6
C:\Program Files (x86)\Java\jdk1.6.0_22
C:\Program Files (x86)\Java\jre7\bin
C:\Program Files (x86)\Java\jre6\bin
C:\Program Files (x86)\Java\jdk1.6.0_22\bin
"xx"가 업데이트 번호 인 JAVA_HOME
변수를 가리 키십시오 C:\Program Files\Java\jdk1.8.0_xx\
(실제 디렉토리 이름과 일치하는지 확인하십시오). bin\javaw.exe
경로 이름에 포함하지 마십시오 .
참고 : CLI에서를 입력하여 환경 변수 GUI에 액세스 할 수 있습니다 rundll32 sysdm.cpl,EditEnvironmentVariables
. System variables
사용자 변수 가 아닌 에 'JAVA_HOME'경로 변수를 넣어야합니다 . 경로 변수가 User
Android Studio 에 있으면 경로를 찾을 수 없습니다 .
다른 모든 답변이 사람들을 위해 작동하는 것은 절대적으로 가능하지만 나에게는이 경로가 작동했습니다.
JAVA_HOME
여기에 제공된대로 시스템 변수 아래에 JDK 경로를 그대로 둡니다 . bin 또는 다른 경로를 추가하지 마십시오. 그것은 나를 위해 일했습니다.
C:\Program Files\Java\jdk1.8.0_11\
그렇지 않으면이 오류가 발생합니다.
Installing Android Studio, does not point to a valid JVM installation error
안드로이드 스튜디오를 1.2.1로 업데이트했습니다. 동일한 오류가 발생했지만. 아무것도 작동하지 않았고, 마침내 JAVA_HOME을 JDK_HOME으로 바꾸고 마법을 사용했습니다.
2 제안 솔루션
JDK를 1.7로 업그레이드
32 비트 또는 64 비트 버전이 양쪽에서 일치하는지 확인
최근에 Windows 8.1에서 1.8.0_25 JDK 버전으로 작업 중이며 이와 동일한 문제가 발생했습니다. 그러나 PankaJ Jakhar가 말했듯이
나를위한 실제 솔루션은 매우 간단했습니다.
- 사용자 변수가 아니라 시스템 변수에 JAVA_HOME 변수를 추가하십시오.
이 변수에 대해 소개 한 경로는 다음과 같습니다.
C:\Program Files\Java\jdk1.8.0_25\
그리고 그것은 나를 위해 작동합니다!
제 경우에는 Android Studio 1.2로 업데이트 한 후 시작되었습니다. 이 문제를 해결하려면 JAVA_HOME 변수에서 "\ bin" 을 제거 해야했습니다 .
1) Java_home 환경 변수에서 \ bin을 제거하십시오. 이것은 나를 위해 일했습니다.
2) 또한 올바른 버전의 android studio 및 Java (32/64 비트)를 사용하고 있는지 확인하십시오.
나는 경로 끝에 백 슬래시를 넣어야했고 그것은 나를 위해 일했습니다.
이전에는
C : \ Program Files \ Java \ jdk1.7.0_79
끝에 "\"를 붙이는 것만으로도 효과적이었습니다. 이제 JAVA_HOME 변수 의 값은 다음과 같습니다.
C : \ Program Files \ Java \ jdk1.7.0_79 \
Java_home의 경로를 처리하는 동안 bin 폴더를 포함하지 마십시오.
나도이 문제가 있었고 해결하기 전에 솔루션을 추가하는 20 가지 경로를 시도 했어야했다. 누군가 위에서 거의 부수적으로 언급했지만 이것은 정확히 내 문제였습니다.
64 비트 버전의 Java를 실행하고 있는지 확인하십시오.
내 문제는 내가 말할 수있는 한 위와는 달랐다. Android Studio의 작동 버전 1.1이 있고 1.2로 업그레이드 한 다음 1.2를 시작할 때 JAVA_HOME 오류가 발생했습니다.
The problem was that my JAVA_HOME was set to "C:\Program Files\Java\jdk1.8.0_20" with quotation marks included. I haven't put them there to quote the string, the quotation marks were in the Variable Value field. It appears that 1.1 is happy with the quotes being there but 1.2 is not.
Removing quotes removed the error and 1.2 now opens fine
Try using the above options But this one worked for me. my JAVA_HOME looked like this C:\Program Files\Java\jdk1.7.0_21;F:\Software\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin Only keeping the JAVA path in the JAVA_HOME Remove any additional path if you had given C:\Program Files\Java\jdk1.7.0_21
i think you are doing every thing fine just remove ";" from the last of java_home variable. every thing will work fine.
Using c:/Program Files/Java/jre1.8.0_73/ instead of C:/Program Files/Java/jdk1.8.0_73
as JAVA_HOME
variable solved the problem for me. Android studio now launches without problems.
I am using 64-bit Windows. After battling with various settings I followed these steps:
- Thru Add/Remove Programs I uninstalled all Java(s)
- Removed JAVA_HOME variable from environment
- Removed Java folder reference from PATH environment variable
- Downloaded and installed 64-bit Java SDK
- Added JAVA_HOME variable in system variables and assigned it the value C:\Program Files\Java\jdk1.8.0_31
In the last step please note that its the parent Folder and not the \bin sub-folder. It started working.
Follow @abs solution
If you still continue to get the error even after setting the JAVA_HOME variable Copy the studio folder to your C drive and then run the studio.exe or studio64.exe depending upon your java versio
In my case it was because of an invisible character at the beginning of the path:
Most probably the issue happens because of the incompatability of 32 bit and 64 bit excecutables. Suppose if you have installed 32 bit Android Studio by mistake and you will be downloading a 64 bit JDK. In this case 32 bit Android Studio will not be able to pick up the 64 bit JDK. This was the issue I faced. So I followed the below simple steps to make it working,
- Downloaded 32 bit JDK(you can also download 64 bit Android Studio if you do not want to change the 64 bit JDK)
- Right click MyComputer > Advanced System Settings > under 'Advanced tab' > Environment variables > Under System Variables > Add JAVA_HOME as key and your jdk(eg:C:\Program Files (x86)\Java\jdk1.7.0_79) location as value.
- Save it and launch Android Studio. You are good to go now.
'developer tip' 카테고리의 다른 글
Python을 사용하여 Unix 또는 Linux에서 프로그램의 프로세스 ID를 얻는 방법은 무엇입니까? (0) | 2020.11.09 |
---|---|
PHP로 임의의 16 진수 색상 코드 생성 (0) | 2020.11.09 |
두 CG 포인트 사이의 거리를 찾는 방법은 무엇입니까? (0) | 2020.11.09 |
해결 실패 : Gradle을 사용하는 IntelliJ Idea의 com.google.android.gms : play-services (0) | 2020.11.09 |
UIView의 배경 이미지를 채우는 방법 (0) | 2020.11.09 |