Error:Failed to complete Gradle execution. Cause: Unknown command-line option '-X'解决方法

简介: 版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u010046908/article/details/55050050 今天新建android studio项目时候。
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u010046908/article/details/55050050

今天新建android studio项目时候。突然遇到如下问题:

这里写图片描述

很是操蛋。最后发现时候用于Setting->compiler -
Command-line Optons:-Xmx2048m导致的。

解决办法是将Command-line Optons的参数删除,设置为空就ok了

这里写图片描述

相关文章
|
Android开发
android学习之——Gradle sync failed: Could not determine artifacts for xxxxx
android学习之——Gradle sync failed: Could not determine artifacts for xxxxx
android学习之——Gradle sync failed: Could not determine artifacts for xxxxx
|
3月前
|
Android开发
Android Studio: 解决Gradle sync failed 错误
本文介绍了解决Android Studio中出现的Gradle同步失败错误的步骤,包括从`gradle-wrapper.properties`文件中获取Gradle的下载链接,手动下载Gradle压缩包,并替换默认下载路径中的临时文件,然后重新触发Android Studio的"Try Again"来完成同步。
1325 0
Android Studio: 解决Gradle sync failed 错误
|
Android开发
意外导致了gradle project sync failed. Basic functionality will not work properly
意外导致了gradle project sync failed. Basic functionality will not work properly
意外导致了gradle project sync failed. Basic functionality will not work properly
Gradle sync failed: Unsupported method: NativeArtifact.getSourceFolders().
Gradle sync failed: Unsupported method: NativeArtifact.getSourceFolders().
99 0
首次运行Flutter失败报错(Finished with error: Gradle task assembleDebug failed with exit code 1)
首次运行Flutter失败报错(Finished with error: Gradle task assembleDebug failed with exit code 1)
446 0
首次运行Flutter失败报错(Finished with error: Gradle task assembleDebug failed with exit code 1)
|
Android开发
【已解决】Android Studio下,gradle project sync failed 错误
原文:【已解决】Android Studio下,gradle project sync failed 错误 Android studio下突然报错 gradle project sync failed.
6793 0
|
测试技术
gradle编译出错:Execution failed for task ':app:compileTestDebugJava'
版权声明:本文为博主原创文章,转载请标明出处。 https://blog.csdn.net/chaoyu168/article/details/50012843 随着更新gradle到1.12,出现问题。
1110 0
|
Android开发
Gradle sync failed: Cause: com.android.build.gradle.api.BaseVariant.getOutputs()Ljava/util/List
Gradle sync failed: Cause: com.android.build.gradle.api.BaseVariant.getOutputs()Ljava/util/List
128 0
Gradle sync failed: Cause: com.android.build.gradle.api.BaseVariant.getOutputs()Ljava/util/List
|
Android开发
Gradle sync failed (3 s 402 ms) - Android Studio问题解决方法
Gradle sync failed (3 s 402 ms) - Android Studio问题解决方法
136 0
Gradle sync failed (3 s 402 ms) - Android Studio问题解决方法
|
Android开发
【错误记录】Android Studio 编译报错 ( Gradle 下载错误导致 Failed to open zip file 报错 )
【错误记录】Android Studio 编译报错 ( Gradle 下载错误导致 Failed to open zip file 报错 )
219 0
【错误记录】Android Studio 编译报错 ( Gradle 下载错误导致 Failed to open zip file 报错 )