Error:java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error:
著论准过秦,作赋拟子虚。这篇文章主要讲述Error:java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: 相关的知识,希望能为你提供帮助。
环境
android Studio 3.0 升级&
导入项目
错误
Error:java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for detailsError:Execution failed for task ‘:app:mergeAnzhiDebugResources‘.
>
Error: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs fordetails
文章图片
解决 关闭AAPT2编译在gradle.properties文件中添加:
android.enableAapt2=false
如果导入的项目没有该文件(比如Eclipse),需手动创建,或者在AS自己创建的项目下拷贝该文件,文件内容如下:
# Project-wide Gradle settings.# IDE (e.g. Android Studio) users:
# Gradle settings configuredthrough the IDE *will override*
# any settings specified in this file.# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx1536m# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
【Error:java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error:】
文章图片
推荐阅读
- 内存占用过高怎样办,图文详细说明怎样处理内存占用过高
- FAQ: SNMP on NetScaler Appliance
- Android 源码分析Service 启动分析
- Web App, Native APP,Hybird App 介绍
- APP性能(Android手机)(流量)
- APP性能(Android手机)(帧率)
- APP性能(Android手机)(APP启动时间)
- Android Studio 修改包名最便捷做法
- APP_ABI