回覆列表
-
1 # 使用者342700510353
-
2 # 使用者342700510353
FAILEDFAILURE: Build failed with an exception.* What went wrong:Execution failed for task ":app:preDexDebug".> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process "command "D:\JDK\bin\java.exe"" finished with non-zero exit value 1* Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.BUILD FAILED輸出有說,讓你新增--stacktrace --debug 這兩個選項給gradle,讓它輸出更加詳細的錯誤資訊;在Android Studio裡面你可以這麼幹:得到更加詳細的資訊之後,你可以選擇google it;一般來說就會有答案了。更重要的是,以後你遇到任何這種問題,都可以這麼做。
FAILEDFAILURE: Build failed with an exception.* What went wrong:Execution failed for task ":app:preDexDebug".> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process "command "D:\JDK\bin\java.exe"" finished with non-zero exit value 1* Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.BUILD FAILED輸出有說,讓你新增--stacktrace --debug 這兩個選項給gradle,讓它輸出更加詳細的錯誤資訊;在Android Studio裡面你可以這麼幹:得到更加詳細的資訊之後,你可以選擇google it;一般來說就會有答案了。更重要的是,以後你遇到任何這種問題,都可以這麼做。