我已经部署了我的网站,现在我正在尝试将其转换为android工作室应用程序,但每当我尝试运行我的应用程序时,我都遇到了同样的问题,这就是ExecuteTaskAction:我也尝试了许多解决方案,如无效兑现和重新启动,也向我的程序添加了一些代码行,但所有这些都不起作用!
org.gradle.internal.UncheckedException: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
Output: C:\Users\yamanalkahwaji\AndroidStudioProjects\bloodbankproject\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2195: error: <item> inner element must either be a resource reference or empty.
Command: C:\Users\yamanalkahwaji\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\dc31501932c6f3f8a6a19a67460ffe7b\aapt2-3.2.1-4818971-windows\aapt2.exe compile --legacy \
-o \
C:\Users\yamanalkahwaji\AndroidStudioProjects\bloodbankproject\app\build\intermediates\res\merged\debug \
C:\Users\yamanalkahwaji\AndroidStudioProjects\bloodbankproject\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0
Output: C:\Users\yamanalkahwaji\AndroidStudioProjects\bloodbankproject\app\src\main\res\values\ids.xml:3:5-51: AAPT: error: <item> inner element must either be a resource reference or empty.
Command: C:\Users\yamanalkahwaji\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\dc31501932c6f3f8a6a19a67460ffe7b\aapt2-3.2.1-4818971-windows\aapt2.exe compile --legacy \
-o \
C:\Users\yamanalkahwaji\AndroidStudioProjects\bloodbankproject\app\build\intermediates\res\merged\debug \
C:\Users\yamanalkahwaji\AndroidStudioProjects\bloodbankproject\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0
at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:63)
at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:40)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:76)
at org.gradle.api.internal.project.taskfactory.IncrementalTaskAction.doExecute(IncrementalTaskAction.java:50)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:39)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:26)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:124)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:113)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:95)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:73)
at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)
at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:59)
at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:59)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:101)
at org.gradle.api.internal.tasks.execution.FinalizeInputFilePropertiesTaskExecuter.execute(FinalizeInputFilePropertiesTaskExecuter.java:44)
at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:91)
at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:62)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:59)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.java:256)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:249)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:238)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:123)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.java:79)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:104)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:98)
at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:663)
at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:597)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:98)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
Output: C:\Users\yamanalkahwaji\AndroidStudioProjects\bloodbankproject\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2195: error: <item> inner element must either be a resource reference or empty.
Command: C:\Users\yamanalkahwaji\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\dc31501932c6f3f8a6a19a67460ffe7b\aapt2-3.2.1-4818971-windows\aapt2.exe compile --legacy \
-o \
C:\Users\yamanalkahwaji\AndroidStudioProjects\bloodbankproject\app\build\intermediates\res\merged\debug \
C:\Users\yamanalkahwaji\AndroidStudioProjects\bloodbankproject\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0
Output: C:\Users\yamanalkahwaji\AndroidStudioProjects\bloodbankproject\app\src\main\res\values\ids.xml:3:5-51: AAPT: error: <item> inner element must either be a resource reference or empty.
Command: C:\Users\yamanalkahwaji\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\dc31501932c6f3f8a6a19a67460ffe7b\aapt2-3.2.1-4818971-windows\aapt2.exe compile --legacy \
-o \
C:\Users\yamanalkahwaji\AndroidStudioProjects\bloodbankproject\app\build\intermediates\res\merged\debug \
C:\Users\yamanalkahwaji\AndroidStudioProjects\bloodbankproject\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0
at java.util.concurrent.ForkJoinTask.get(ForkJoinTask.java:1006)
at com.android.ide.common.workers.ExecutorServiceAdapter.close(ExecutorServiceAdapter.kt:56)
at com.android.build.gradle.internal.aapt.WorkerExecutorResourceCompilationService.close(WorkerExecutorResourceCompilationService.kt:67)
at com.android.build.gradle.tasks.MergeResources.doFullTaskAction(MergeResources.java:324)
at com.android.build.gradle.internal.tasks.IncrementalTask.taskAction(IncrementalTask.java:106)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
... 43 more
Caused by: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
Output: C:\Users\yamanalkahwaji\AndroidStudioProjects\bloodbankproject\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2195: error: <item> inner element must either be a resource reference or empty.
Command: C:\Users\yamanalkahwaji\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\dc31501932c6f3f8a6a19a67460ffe7b\aapt2-3.2.1-4818971-windows\aapt2.exe compile --legacy \
-o \
C:\Users\yamanalkahwaji\AndroidStudioProjects\bloodbankproject\app\build\intermediates\res\merged\debug \
C:\Users\yamanalkahwaji\AndroidStudioProjects\bloodbankproject\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0
Output: C:\Users\yamanalkahwaji\AndroidStudioProjects\bloodbankproject\app\src\main\res\values\ids.xml:3:5-51: AAPT: error: <item> inner element must either be a resource reference or empty.
Command: C:\Users\yamanalkahwaji\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\dc31501932c6f3f8a6a19a67460ffe7b\aapt2-3.2.1-4818971-windows\aapt2.exe compile --legacy \
-o \
C:\Users\yamanalkahwaji\AndroidStudioProjects\bloodbankproject\app\build\intermediates\res\merged\debug \
C:\Users\yamanalkahwaji\AndroidStudioProjects\bloodbankproject\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0
at com.android.build.gradle.internal.res.Aapt2ErrorUtils.rewriteException(Aapt2ErrorUtils.kt:97)
at com.android.build.gradle.internal.res.Aapt2ErrorUtils.rewriteCompileException(Aapt2ErrorUtils.kt:55)
at com.android.build.gradle.internal.res.Aapt2CompileWithBlameRunnable$run$1.invoke(Aapt2CompileWithBlameRunnable.kt:39)
at com.android.build.gradle.internal.res.Aapt2CompileWithBlameRunnable$run$1.invoke(Aapt2CompileWithBlameRunnable.kt:28)
at com.android.build.gradle.internal.res.namespaced.Aapt2DaemonManagerService.useAaptDaemon(Aapt2DaemonManagerService.kt:71)
at com.android.build.gradle.internal.res.namespaced.Aapt2DaemonManagerService.useAaptDaemon$default(Aapt2DaemonManagerService.kt:69)
at com.android.build.gradle.internal.res.Aapt2CompileWithBlameRunnable.run(Aapt2CompileWithBlameRunnable.kt:34)
at com.android.ide.common.workers.ExecutorServiceAdapter$submit$submission$1.run(ExecutorServiceAdapter.kt:39)
at java.util.concurrent.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1386)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
Caused by: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
Output: C:\Users\yamanalkahwaji\AndroidStudioProjects\bloodbankproject\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2195: error: <item> inner element must either be a resource reference or empty.
Command: C:\Users\yamanalkahwaji\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\dc31501932c6f3f8a6a19a67460ffe7b\aapt2-3.2.1-4818971-windows\aapt2.exe compile --legacy \
-o \
C:\Users\yamanalkahwaji\AndroidStudioProjects\bloodbankproject\app\build\intermediates\res\merged\debug \
C:\Users\yamanalkahwaji\AndroidStudioProjects\bloodbankproject\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0
at com.android.builder.internal.aapt.v2.Aapt2DaemonImpl.doCompile(Aapt2DaemonImpl.kt:142)
at com.android.builder.internal.aapt.v2.Aapt2Daemon.compile(Aapt2Daemon.kt:81)
at com.android.builder.internal.aapt.v2.Aapt2DaemonManager$LeasedAaptDaemon.compile(Aapt2DaemonManager.kt:170)
at com.android.build.gradle.internal.res.Aapt2CompileWithBlameRunnable$run$1.invoke(Aapt2CompileWithBlameRunnable.kt:37)
... 10 more
在资源中声明 id
时,正文应为空
<item type="id" name="id_name" />
但是看起来你有一个<代码>
每次尝试使用Jenkins执行测试用例时,下面的Java错误都会显示在我的测试报告中。 错误1:
问题内容: 我正在尝试运行以下代码: 但这每次都会给我这个错误 我尝试了别人的代码,然后发生了完全相同的事情。此外,我尝试重新安装web.py(experimental),但仍然无法正常工作。 问题答案: 从文件路径进行判断,看起来您正在运行Python 3.7。如果是这样,您将被此处介绍的3.7版新行为所吸引: PEP 479已为Python 3.7中的所有代码启用,这意味着在协程和生成器中直接
问题内容: 我有一些使用某些共享库的代码(gcc上的c代码)。编译时,我必须使用-I和-L明确定义包含和库目录,因为它们不在标准位置。当我尝试运行代码时,出现以下错误: 但是,请执行以下操作,一切正常: 现在,奇怪的是,这只能工作一次。如果我尝试再次运行sync_test,除非先运行export命令,否则会出现相同的错误。我尝试将以下内容添加到我的.bashrc中,但没有什么区别: 问题答案: 采
我是Grails的新手,我用GVM工具安装了它,并试图从终端运行一个默认应用程序,只需尝试以下命令:Grails create-app demo和Grails run-app,我得到了一个巨大的错误: 编辑:问题解决了,只需升级JDK版本。
我花了三天的时间来寻找答案,看视频和论坛帖子,但没有运气。请看这四张照片。它似乎只在问题有图像文件时才这样做。