English 中文(简体)
Gradle synclap: CreatProces有差错=216
原标题:Gradle sync failed: CreateProcess error=216

I am running windows 7 32bit. I have upgraded from Android Studio from 1.5 to 2.2 and started following problem. I tried creating project but it didn t fix the error. What should I do?

Gradle sync failed: CreateProcess error=216, This version of %1 is not compatible with the version of Windows you re running. Check your computer s system information to see whether you need a x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher Consult IDE log for more details (Help | Show Log)

build.gradle

    // 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
问题回答

in my case it was down to two reasons, the SDK location and the JDK location. With my fresh installation of Android Studio 2.2.3 I wanted to my existing Android SDK and hence it was excluded from th install. After the installaion the JDK folder (>1.8). is set to the JRE. I was not able to change this to the JDK as the

FILE->Project Structure->SDK Location settings

report an incorrect SDK folder. The SDK folder had a space in the file name (German Windows) and was reported to be incompatible with the NDK. Icould only resolve this issue by creating a drive letter pointing to the folder one level obove the Android SDK (which I am not going to move).

subst a: "C:Program FilesAndroid"

提供载有SDK的驱动信和途径,以适应安康。 另外,将SRE改为SDK安装链(SDK>1.8)。 只有当环境重叠完全错误,而且警告没有改变,才会被接受。

A Tools->Android->Sync with Gradle Files

成功。





相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签