Android studio3.0 com.android.tools.aapt2.Aapt2Exception: AAPT error:check logs for details

AS-3.0报错

Error:Execution failed for task ':mergeReleaseResources'.
> Error: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT error: check logs for details


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':mergeReleaseResources'.
> Error: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT error: check logs for details

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

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

BUILD FAILED in 3s

原来的工程下面没有 gradle.properties 文件
解决此问题的办法是:
在工程根目录下新建gradle.properties文件
加入

android.enableAapt2=false

即可解决

你可能感兴趣的:(bug调试)