我在Android Studio 3.0.1中创建了一个新项目,在构建过程中我收到了aapt2异常。禁用aapt2是一种选择,但我想了解为什么aapt2无法构建。
如果需要任何其他详细信息,请告诉我
失败:构建失败,但有一个异常。
>
错误:java.util.concurrent.执行异常:com.android.tools.aapt2. Aapt2Exception:AAPT2错误:检查日志以获取详细信息
尝试:使用--stacktrac选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获取更多日志输出。
获取更多帮助https://help.gradle.org
构建失败1秒
AAPT warning(1028621614), Job(QueuedJob{
title=Compiling values.xml,
task={from=C:\Users\svssrinivas\AndroidStudioProjects\Learn\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml, to=C:\Users\svssrinivas\AndroidStudioProjects\Learn\app\build\intermediates\res\merged\debug},
future=com.google.common.util.concurrent.SettableFuture@7d83ce1d}): Done
Exception while processing job : QueuedJob{
title=Compiling values.xml,
task={from=C:\Users\svssrinivas\AndroidStudioProjects\Learn\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml, to=C:\Users\svssrinivas\AndroidStudioProjects\Learn\app\build\intermediates\res\merged\debug},
future=com.google.common.util.concurrent.SettableFuture@7d83ce1d} : com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Process (412248382) processed 0 files
Thread(queued-resource-processor_54): Process(412248382), after shutdown queue_size=2
Slave 1566465306 is ready
Process (197581388) processed 0 files
Thread(queued-resource-processor_55): Process(197581388), after shutdown queue_size=2
Process (1933852165) processed 1 files
Thread(queued-resource-processor_53): Process(1933852165), after shutdown queue_size=1
Process (1566465306) processed 0 files
Thread(queued-resource-processor_56): Process(1566465306), after shutdown queue_size=0
Shutdown finished in 9ms
Error: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
:app:mergeDebugResources FAILED
:app:mergeDebugResources (Thread[Task worker for ':',5,main]) completed. Took 0.561 secs.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> Error: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 1s
7 actionable tasks: 1 executed, 6 up-to-date
编辑:
全谷仓输出:
Executing tasks: [:app:assembleDebug]
Configuration on demand is an incubating feature.
Observed package id 'add-ons;addon-google_apis-google-19' in inconsistent location 'D:\AndroidSDK\add-ons\addon-google_apis-google-19-1' (Expected 'D:\AndroidSDK\add-ons\addon-google_apis-google-19')
Observed package id 'add-ons;addon-google_apis-google-19' in inconsistent location 'D:\AndroidSDK\add-ons\addon-google_apis-google-19-1' (Expected 'D:\AndroidSDK\add-ons\addon-google_apis-google-19')
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:checkDebugManifest UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources
values_values.arsc.flat: error: failed to open.
Error: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
:app:createDebugCompatibleScreenManifests
:app:processDebugManifest
:app:splitsDiscoveryTaskDebug
:app:prepareLintJar UP-TO-DATE
:app:compileDebugNdk NO-SOURCE
:app:mergeDebugShaders
:app:compileDebugShaders
:app:generateDebugAssets
:app:mergeDebugAssets
:app:mergeDebugJniLibFolders
:app:transformNativeLibsWithMergeJniLibsForDebug
:app:transformNativeLibsWithStripDebugSymbolForDebug
:app:processDebugJavaRes NO-SOURCE
:app:validateSigningDebug
:app:mergeDebugResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> Error: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 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 24s
18 actionable tasks: 11 executed, 7 up-to-date
简单的解决方案与文件夹权限有关。在对stacktrace输出进行了大量挖掘并了解了有关Java异常的更多信息后,我找到了答案。
将您的Development/Project文件夹移动到为android Studio/gradle提供写入权限的位置。
我刚接触GWT,是通过GWT2.4开始学习的。首先,我安装了eclipse插件,然后,我看到了eclipse工具栏中的图标。 当我单击新的Web应用程序项目时,它报告了一个异常。详细的堆栈跟踪如下所示。 eclipse.buildid=M20110909-1335 java.version=1.6.0_33 java.vendor=Sun Microsystems Inc.BootLoader常量
项目Reactor3.1.5。发布 考虑这一点: 我希望订阅服务器在多个线程中运行,但它只在一个线程中运行: 留档告诉我的期望是正确的(http://projectreactor.io/docs/core/release/reference/#threading)。有人能给我解释一下那里发生了什么吗?
这是我的Gradle控制台的输出,我无法构建我的项目 Android Studio 3.0 RC 2
我有一个应用程序在Laravel与.env.local文件(a和我做了下一个docker-comment文件: 还有我的Dockerfile: 我希望克隆存储库,并在docker compose构建时在dockerfile中执行以下操作: 重命名.env.local. env 给存储文件夹权限。我有一个错误在这一行
我正在使用Eclipse的STS插件创建gradle多项目。我以为我在读完教程后得到了基本的知识,但我无法再现所显示的行为。添加时 对于父项目的build.gradle,我将假设每个项目执行的任务'hello‘。为子项目实际进行了2次,但结果只是: 我的项目树看起来或多或少是这样的:
异步注解@Async,默认情况下是不生效的,需要的话可以启用. 该加载器有一个可选参数,线程池大小,默认是32,详情可以查阅org.nutz.aop.interceptor.async.AsyncAopIocLoader @IocBy( args={"*json","ioc/", "*anno","net.wendal.nutzbook", "*a