Android studio build fail transformDexWithInstantRunDependenciesApkForDebug

时间:2018-03-28 22:18:18

标签: android android-studio

这是我的构建错误。不知道该怎么办。我根本不知道这可能与什么有关。任何提示或建议表示赞赏。我已经坚持了一个小时。

失败:构建因异常而失败。

* What went wrong:
Execution failed for task ':MyApp:transformDexWithInstantRunDependenciesApkForDebug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: Failed to execute aapt

* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 10s

这就是我的调试所说的

17:31:52.901 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
17:31:52.901 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
17:31:52.901 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
17:31:52.901 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
17:31:52.901 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ':myapp:transformDexWithInstantRunDependenciesApkForDebug'.
17:31:52.902 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: Failed to execute aapt
17:31:52.902 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
17:31:52.902 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try:
17:31:52.902 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Run with --stacktrace option to get the stack trace.  Run with --scan to get full insights.
17:31:52.902 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
17:31:52.902 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Get more help at https://help.gradle.org
17:31:52.903 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] 
17:31:52.903 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] BUILD FAILED in 12s

0 个答案:

没有答案