通过创建自定义插件在离子3应用程序中添加AAR文件

时间:2018-11-29 11:42:43

标签: cordova ionic-framework

使用此链接 How to integrate the .aar file with ionic application 我为我的离子应用程序创建了一个自定义插件(条形码扫描仪),并成功添加了aar文件,但是在离子科尔多瓦构建过程中出现错误。

  

(被截断)... ValidatingTaskExecuter.java:58)                   在           org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:88)                   在           org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:52)                   在           org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)                   在org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)                   在           org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)                   在           org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)                   在           org.gradle.execution.taskgraph.DefaultTaskGraphExecuter $ EventFiringTaskWorker $ 1.run(DefaultTaskGraphExecuter.java:248)                   在           org.gradle.internal.progress.DefaultBuildOperationExecutor $ RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)                   在           org.gradle.internal.progress.DefaultBuildOperationExecutor $ RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)                   在org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197)                   在org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107)                   在           org.gradle.execution.taskgraph.DefaultTaskGraphExecuter $ EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:241)                   在           org.gradle.execution.taskgraph.DefaultTaskGraphExecuter $ EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:230)                   在           org.gradle.execution.taskgraph.DefaultTaskPlanExecutor $ TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:124)                   在           org.gradle.execution.taskgraph.DefaultTaskPlanExecutor $ TaskExecutorWorker.access $ 200(DefaultTaskPlanExecutor.java:80)                   在           org.gradle.execution.taskgraph.DefaultTaskPlanExecutor $ TaskExecutorWorker $ 1.execute(DefaultTaskPlanExecutor.java:105)                   在           org.gradle.execution.taskgraph.DefaultTaskPlanExecutor $ TaskExecutorWorker $ 1.execute(DefaultTaskPlanExecutor.java:99)                   在org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:625)处                   在org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:580)处                   在           org.gradle.execution.taskgraph.DefaultTaskPlanExecutor $ TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:99)                   在org.gradle.internal.concurrent.ExecutorPolicy $ CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)                   在org.gradle.internal.concurrent.ManagedExecutorImpl $ 1.run(ManagedExecutorImpl.java:46)                   在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)                   在java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:624)                   在org.gradle.internal.concurrent.ThreadFactoryImpl $ ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)                   在java.lang.Thread.run(Thread.java:748)           引起原因:java.util.concurrent.ExecutionException:java.util.concurrent.ExecutionException:           com.android.tools.aapt2.Aapt2Exception:AAPT2错误:检查日志以了解详细信息                   在com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:503)                   在com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:482)                   在com.google.common.util.concurrent.AbstractFuture $ TrustedFuture.get(AbstractFuture.java:79)                   在com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:794)                   ...另外48个           引起原因:java.util.concurrent.ExecutionException:com.android.tools.aapt2.Aapt2Exception:AAPT2错误:检查           详细日志                   在com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:503)                   在com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:462)                   在com.google.common.util.concurrent.AbstractFuture $ TrustedFuture.get(AbstractFuture.java:79)                   在com.android.builder.internal.aapt.v2.QueueableAapt2.lambda $ makeValidatedPackage $ 1(QueueableAapt2.java:179)                   在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)                   在java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:624)                   ...还有1个           引起原因:com.android.tools.aapt2.Aapt2Exception:AAPT2错误:检查日志以了解详细信息                   在com.android.builder.png.AaptProcess $ NotifierProcessOutput.handleOutput(AaptProcess.java:463)                   在com.android.builder.png.AaptProcess $ NotifierProcessOutput.err(AaptProcess.java:415)                   在com.android.builder.png.AaptProcess $ ProcessOutputFacade.err(AaptProcess.java:332)                   在com.android.utils.GrabProcessOutput $ 1.run(GrabProcessOutput.java:104)

    FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':app:processDebugResources'.
    > Failed to execute aapt

0 个答案:

没有答案