x***@163.com
x***@163.com
  • 发布:2024-03-23 16:53
  • 更新:2024-07-31 20:30
  • 阅读:258

云打包环境Gradle版本太低,有没有什么办法解决?

分类:HBuilderX

原生插件开发必须使用一个依赖库com.google.android.material:material:1.7.0,这个依赖库对Gradle版本要求最低版本为7.3.3,想通过本地插件云打包的方式,打包生成APK文件,但是云打包环境Gradle版本为6.5-all,有没有什么办法解决?

云打包,报错如下:
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:mergeReleaseResources'.

    /home/[Name]/.gradle/caches/transforms-3/f5067a330170c0b3e69773caf48be673/transformed/material-1.7.0/res/values/values.xml: Error: Can't determine type for tag '?attr/colorSurface'

有没有什么办法解决?

什么时候能更新一下云打包环境?

2024-03-23 16:53 负责人:无 分享
已邀请:
DCloud_App_Array

DCloud_App_Array

云端打包机已经升级过gradle版本为7.3.3,请确认使用的HBuilderX版本,重新提交云端打包。
如果还提示打包失败,请提供完整的打包错误日志链接地址。

  • x***@163.com (作者)

    HBuilderX版本 3.99


    错误日志地址:https://app.liuyingyong.cn/build/errorLog/27a6fbd0-ea53-11ee-b38b-2ddfed6422d2


    本地离线SDK开发原生插件,开发环境gradle-7.3.3-bin.zip,.tools.build:gradle:7.2.2,JavaVersion.VERSION_11,插件运行正常。6.5-all,tools.build:gradle:4.1.1,JavaVersion.VERSION_1_8环境,插件运行报错

    2024-03-25 11:08

  • x***@163.com (作者)

    刚刚有云打包了一次,错误日志:https://app.liuyingyong.cn/build/errorLog/eaef05d0-ea55-11ee-9f82-a95c6350f2cc

    2024-03-25 11:27

x***@163.com

x***@163.com (作者)

HBuilderX版本 3.99

错误日志地址:https://app.liuyingyong.cn/build/errorLog/27a6fbd0-ea53-11ee-b38b-2ddfed6422d2

本地离线SDK开发原生插件,开发环境gradle-7.3.3-bin.zip,.tools.build:gradle:7.2.2,JavaVersion.VERSION_11,插件运行正常。6.5-all,tools.build:gradle

云打包错误日志:
ERROR:/home/[Name]/.gradle/caches/transforms-3/8cb9d0b58598a1e90bad117efbc2110f/transformed/material-1.7.0/res/values/values.xml: Resource and asset merger: Can't determine type for tag '?attr/colorSurface'

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:mergeReleaseResources'.

    /home/[Name]/.gradle/caches/transforms-3/8cb9d0b58598a1e90bad117efbc2110f/transformed/material-1.7.0/res/values/values.xml: Error: Can't determine type for tag '?attr/colorSurface'

  • Try:

    Run with --debug option to get more log output.
    Run with --scan to get full insights.

  • Exception is:
    org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:mergeReleaseResources'.
    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: com.android.build.gradle.tasks.ResourceException: /home/[Name]/.gradle/caches/transforms-3/8cb9d0b58598a1e90bad117efbc2110f/transformed/material-1.7.0/res/values/values.xml: Error: Can't determine type for tag '?attr/colorSurface'

nopilot

nopilot

请问这个解决了吗?我也遇到了类似问题和报错

要回复问题请先登录注册