2016-09-30 5 views
2

Windows 7 32 비트를 실행 중입니다. Android Studio에서 1.5에서 2.2로 업그레이드하고 문제를 일으키기 시작했습니다. 프로젝트를 만들려고했지만 오류를 수정하지 않았습니다. 어떻게해야합니까?Gradle sync failed : CreateProcess error = 216

Gradle sync failed : CreateProcess error = 216,이 버전의 % 1은 (는) 실행중인 Windows 버전과 호환되지 않습니다. 컴퓨터의 시스템 정보를 확인하여 프로그램의 x86 (32 비트) 버전인지 x64 (64 비트) 버전인지 확인한 다음 소프트웨어 게시자에게 문의하십시오 자세한 내용은 IDE 로그를 참조하십시오 (도움말 | 로그보기)

// Top-level build file where you can add configuration options common to all sub-projects/modules. 

buildscript { 
    repositories { 
     jcenter() 
    } 
    dependencies { 
     classpath 'com.android.tools.build:gradle:2.2.0' 

     // NOTE: Do not place your application dependencies here; they belong 
     // in the individual module build.gradle files 
    } 
} 

allprojects { 
    repositories { 
     jcenter() 
    } 
} 

task clean(type: Delete) { 
    delete rootProject.buildDir 
} 

내 경우

distributionBase=GRADLE_USER_HOME 
distributionPath=wrapper/dists 
zipStoreBase=GRADLE_USER_HOME 
zipStorePath=wrapper/dists 
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip 
+1

http://stackoverflow.com/a/37712337/6117302 –

+1

[Android Studio 오류 : 오류 : CreateProcess 오류 = 216,이 버전의 % 1은 (는) 실행중인 Windows 버전과 호환되지 않습니다. (http://stackoverflow.com/questions/37624369/android-studio-error-errorcreateprocess-error-216-this-version-of-1-is-not-c) –

답변

0

을 gradle-wrapper.properties

build.gradle는 아래 두 가지 이유는 SDK의 위치와 JDK의 위치에 있었다. Android Studio 2.2.3을 새로 설치할 때 기존 Android SDK를 원했기 때문에 설치에서 제외되었습니다. 설치 후 JDK 폴더 (> 1.8). JRE로 설정됩니다. 나는

FILE->Project Structure->SDK Location settings

보고서 잘못된 SDK 폴더으로 JDK로 변경할 수 없습니다. SDK 폴더의 파일 이름에 독일어 Windows가 있고 NDK와 호환되지 않는 것으로보고되었습니다. 나는 안드로이드 SDK (나는 ​​움직이지 않을 것이다)의 한 수준에서 폴더를 가리키는 드라이브 문자를 만듦으로써이 문제를 해결할 수있다.

subst a: "C:\Program Files\Android" 

SDK가 포함 된 드라이브 문자와 경로를 Android SDK 설정에 제공하십시오. 또한 SRE를 SDK 설치 폴더 (SDK> 1.8)로 변경하십시오. 설정 폴더에 오류가 완전히없고 경고가없는 경우에만 변경 사항이 적용됩니다.

A Tools->Android->Sync with Gradle Files

성공했습니다.

관련 문제