APP勾选oauth,后提交云打包
- 发布:2024-04-17 15:41
- 更新:2024-04-17 16:10
- 阅读:107
产品分类: uniapp/App
PC开发环境操作系统: Mac
PC开发环境操作系统版本号: Sonoma 14.3.1
HBuilderX类型: 正式
HBuilderX版本号: 4.07
手机系统: Android
手机系统版本号: Android 13
手机厂商: OPPO
手机机型: OPPO
页面类型: vue
vue版本: vue2
打包方式: 云端
项目创建方式: HBuilderX
操作步骤:
预期结果:
Android打包正常
Android打包正常
实际结果:
Android打包出错,错误日志详见error.txt
Android打包出错,错误日志详见error.txt
bug描述:
【报Bug】APP勾选oauth后,Android打包报错,以下是几处关键的报错信息
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: unexpected element (uri:\"\", local:\"extension-level\"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>
Warning: unexpected element (uri:\"\", local:\"base-extension\"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:checkReleaseDuplicateClasses'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
> Duplicate class com.google.android.gms.actions.ItemListIntents found in modules jetified-play-services-basement-17.5.0-runtime (com.google.android.gms:play-services-basement:17.5.0) and jetified-play-services-basement-18.1.0-runtime (play-services-basement-18.1.0.aar)
Duplicate class com.google.android.gms.actions.NoteIntents found in modules jetified-play-services-basement-17.5.0-runtime (com.google.android.gms:play-services-basement:17.5.0) and jetified-play-services-basement-18.1.0-runtime (play-services-basement-18.1.0.aar)
Duplicate class com.google.android.gms.actions.ReserveIntents found in modules jetified-play-services-basement-17.5.0-runtime (com.google.android.gms:play-services-basement:17.5.0) and jetified-play-services-basement-18.1.0-runtime (play-services-basement-18.1.0.aar)
Duplicate class com.google.android.gms.actions.SearchIntents found in modules jetified-play-services-basement-17.5.0-runtime (com.google.android.gms:play-services-basement:17.5.0) and jetified-play-services-basement-18.1.0-runtime (play-services-basement-18.1.0.aar)
Duplicate class com.google.android.gms.auth.api.signin.GoogleSignInAccount found in modules jetified-play-services-base-17.5.0-runtime (com.google.android.gms:play-services-base:17.5.0) and jetified-play-services-base-18.0.1-runtime (play-services-base-18.0.1.aar)
Duplicate class com.google.android.gms.auth.api.signin.GoogleSignInOptions found in modules jetified-play-services-base-17.5.0-runtime (com.google.android.gms:play-services-base:17.5.0) and jetified-play-services-base-18.0.1-runtime (play-services-base-18.0.1.aar)
Duplicate class com.google.android.gms.auth.api.signin.GoogleSignInOptions$Builder found in modules jetified-play-services-base-17.5.0-runtime (com.google.android.gms:play-services-base:17.5.0) and jetified-play-services-base-18.0.1-runtime (play-services-base-18.0.1.aar)
Go to the documentation to learn how to Fix dependency resolution errors.
at com.android.build.gradle.internal.tasks.CheckDuplicateClassesDelegate.run(CheckDuplicateClassesDelegate.kt:71)
at com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable.execute(CheckDuplicateClassesDelegate.kt:98)
at org.gradle.workers.internal.DefaultWorkerServer.execute(DefaultWorkerServer.java:63)
at org.gradle.workers.internal.NoIsolationWorkerFactory$1$1.create(NoIsolationWorkerFactory.java:66)
at org.gradle.workers.internal.NoIsolationWorkerFactory$1$1.create(NoIsolationWorkerFactory.java:62)
at org.gradle.internal.classloader.ClassLoaderUtils.executeInClassloader(ClassLoaderUtils.java:100)
at org.gradle.workers.internal.NoIsolationWorkerFactory$1.lambda$execute$0(NoIsolationWorkerFactory.java:62)
at org.gradle.workers.internal.AbstractWorker$1.call(AbstractWorker.java:44)
at org.gradle.workers.internal.AbstractWorker$1.call(AbstractWorker.java:41)
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.workers.internal.AbstractWorker.executeWrappedInBuildOperation(AbstractWorker.java:41)
at org.gradle.workers.internal.NoIsolationWorkerFactory$1.execute(NoIsolationWorkerFactory.java:59)
at org.gradle.workers.internal.DefaultWorkerExecutor.lambda$submitWork$2(DefaultWorkerExecutor.java:212)
at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.runExecution(DefaultConditionalExecutionQueue.java:187)
at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.access$700(DefaultConditionalExecutionQueue.java:120)
at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner$1.run(DefaultConditionalExecutionQueue.java:162)
at org.gradle.internal.Factories$1.create(Factories.java:31)
at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:249)
at org.gradle.internal.work.DefaultWorkerLeaseService.runAsWorkerThread(DefaultWorkerLeaseService.java:109)
at org.gradle.internal.work.DefaultWorkerLeaseService.runAsWorkerThread(DefaultWorkerLeaseService.java:114)
at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.runBatch(DefaultConditionalExecutionQueue.java:157)
at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.run(DefaultConditionalExecutionQueue.java:126)
... 2 more* Get more help at https://help.gradle.org
BUILD FAILED in 53s
gradle build error: 1
7***@qq.com (作者)
modules jetified-play-services-basement-17.5.0-runtime (com.google.android.gms:play-services-basement:17.5.0) and jetified-play-services-basement-18.1.0-runtime (play-services-basement-18.1.0.aar)
看起来是这个包的问题