android-studio - gradle项目同步失败的Android Studio 3.1.2

标签 android-studio gradle

gradle sync error

我刚刚在32位Windows 7中安装了我的android studio v 3.1.2。它没有在Visual Studio中生成或运行任何内容。

Gradle project sync failed



基本功能将无法正常运行。

并在控制台中显示

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) (4s 276ms)



我已将环境路径更改为(C:\ Gradle \ gradle-4.8 \ bin)新下载的 gradle 4.8完整文件。
environment variable

我现在应该怎么办?????

最佳答案

该错误表明您已经安装了32位android studio,而它需要64位设置。可能是您正在运行的Windows是64位。检查并相应下载安装

关于android-studio - gradle项目同步失败的Android Studio 3.1.2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50696379/

相关文章:

android - android gradle内置命令行错误:UnsupportedClassVersionError

android - 构建时重命名的APK不运行

java - 在gradle中将类路径添加到ant任务的最佳方法

spring - 是否可以在类之间缓存 Spring 的应用程序上下文?

java - 如何避免使用 gradle 在 IntelliJ IDEA 中镜像库?

android - Android Studio构建失败:Android资源链接失败,无法创建目录C:\tmp\

intellij-idea - IntelliJ IDEA : how to revoke reformat code/optimize imports dialog?

java - 如何在 Android Studio 的 Java 模块中配置 Groovy

eclipse - 无法在Eclipse工作区中导入spring-boot gradle项目

spring-boot - Java 11 + QueryDSL 4 + Gradle 5 + SpringBoot 2.1- 不生成 QClasses