mobile CCTV,mobile surveillance,police body worn cameras

 forgetPW
 registerNow
search
view: 1224|reply: 7
打印 prevThread nextThread

导入demoSDK 异常

[copyURL]

1

主题

7

帖子

21

积分

newBie

Rank: 1

积分
21
jumpTo
owner
poston 2023-6-26 14:15 | authorOnly 回帖奖励 |倒序浏览 |阅读模式
将demo文件导入项目,demo所有jar aar aidl  资源文件都已复制到项目



项目目录


项目报错位置


* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:dataBindingGenBaseClassesCheckDebug'.
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:145)
        at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:282)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:143)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:131)
        at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:77)
        at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
        at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:51)
        at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
        at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56)
        at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)
        at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:74)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:402)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:389)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:382)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:368)
        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.lambda$run$0(DefaultPlanExecutor.java:127)
        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:191)
        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:182)
        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:124)
        at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
        at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
        at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:61)
Caused by: java.lang.IllegalArgumentException: not a valid name: 28181ConfigLayout
        at com.squareup.javapoet.Util.checkArgument(Util.java:64)
        at com.squareup.javapoet.FieldSpec.builder(FieldSpec.java:91)



reply

使用道具 report

1

主题

7

帖子

21

积分

newBie

Rank: 1

积分
21
sofa
 Owner| poston 2023-6-26 14:19 | authorOnly
论坛放图不显示 补张图
reply agree Against

使用道具 report

1

主题

7

帖子

21

积分

newBie

Rank: 1

积分
21
bench
 Owner| poston 2023-6-26 14:20 | authorOnly
运行报  not a valid name: 28181ConfigLayout  不知道28181ConfigLayout 是啥 咋解决,代码中也搜不到这个文件
reply agree Against

使用道具 report

1

主题

7

帖子

21

积分

newBie

Rank: 1

积分
21
ground
 Owner| poston 2023-6-26 17:38 | authorOnly
上面 20181configlayout 问题已找到解决,现在有个新问题

FAILURE: Build completed with 4 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:checkCheckDebugDuplicateClasses'.
> Could not resolve all files for configuration ':app:checkDebugRuntimeClasspath'.
   > Failed to transform eMPIA_lib_v_20161103_finish.jar to match attributes {artifactType=enumerated-runtime-classes, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
      > Execution failed for JetifyTransform: G:\Kuaichedao\Zhifayi\app\libs\eMPIA_lib_v_20161103_finish.jar.
         > Failed to transform 'G:\Kuaichedao\Zhifayi\app\libs\eMPIA_lib_v_20161103_finish.jar' using Jetifier. Reason: InvalidByteCodeException, message: Error processing 'com\empia_lib\jar\a.class' bytecode.. (Run with --stacktrace for more details.)
           This is a known exception, and Jetifier won't be able to jetify this library.
           Suggestions:
            - If you believe this library doesn't need to be jetified (e.g., if it already supports AndroidX, or if it doesn't use support libraries/AndroidX at all), add android.jetifier.ignorelist = {comma-separated list of regular expressions (or simply names) of the libraries that you don't want to be jetified} to the gradle.properties file.
            - If you believe this library needs to be jetified (e.g., if it uses old support libraries and breaks your app if it isn't jetified), contact the library's authors to update this library to support AndroidX and use the supported version once it is released.
           If you need further help, please leave a comment at https://issuetracker.google.com/issues/140747218.

* Try:
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

reply agree Against

使用道具 report

1

主题

7

帖子

21

积分

newBie

Rank: 1

积分
21
5#
 Owner| poston 2023-6-26 17:42 | authorOnly
https://s1.ax1x.com/2023/06/26/pCUoNtg.png  
eMPIA_lib_v_20161103_finish.jar 有支持安卓x的版本吗,按图上配置忽略后 提示 eMPIA_lib_v_20161103_finish.jar包内代码有数组越界,你们可有解决方案
reply agree Against

使用道具 report

1

主题

7

帖子

21

积分

newBie

Rank: 1

积分
21
6#
 Owner| poston 2023-6-27 09:06 | authorOnly
reply agree Against

使用道具 report

1

主题

320

帖子

1147

积分

vipMem

Rank: 6Rank: 6

积分
1147
7#
poston 2023-6-27 09:16 | authorOnly
直接把eMPIA_lib_v_20161103_finish.jar 删掉,然后把相关逻辑引用也删了,这个对于你们来说用不到。
reply agree Against

使用道具 report

1

主题

7

帖子

21

积分

newBie

Rank: 1

积分
21
8#
 Owner| poston 2023-6-27 09:25 | authorOnly
好的 我先试下
reply agree Against

使用道具 report

creditRule

QQ|wireless surveillance

GMT+8, 2024-12-22 09:27 , Processed in 0.176765 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList