LimengzeDev 2022-08-19 16:50 采纳率: 50%
浏览 59
已结题

在uni app项目HBuilder-Integrate-AS目录下运行gradle build时报错

我在HBuilder-Integrate-AS目录下运行gradle build时报错如下

Task :simpleDemo:mergeDebugResources FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':simpleDemo:mergeDebugResources'.

    8 exceptions were raised by workers:
    com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-3.4.2-5326820-linux Daemon #0: Daemon startup failed
    This should not happen under normal circumstances, please file an issue if it does.
    com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-3.4.2-5326820-linux Daemon #2: Daemon startup failed
    This should not happen under normal circumstances, please file an issue if it does.
    com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-3.4.2-5326820-linux Daemon #1: Daemon startup failed
    This should not happen under normal circumstances, please file an issue if it does.
    com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-3.4.2-5326820-linux Daemon #3: Daemon startup failed
    This should not happen under normal circumstances, please file an issue if it does.
    com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-3.4.2-5326820-linux Daemon #4: Daemon startup failed
    This should not happen under normal circumstances, please file an issue if it does.
    com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-3.4.2-5326820-linux Daemon #5: Daemon startup failed
    This should not happen under normal circumstances, please file an issue if it does.
    com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-3.4.2-5326820-linux Daemon #6: Daemon startup failed
    This should not happen under normal circumstances, please file an issue if it does.
    com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-3.4.2-5326820-linux Daemon #7: Daemon startup failed
    This should not happen under normal circumstances, please file an issue if it does.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org/

BUILD FAILED in 1m 28s
8 actionable tasks: 1 executed, 7 up-to-date
请问如何解决?

  • 写回答

1条回答 默认 最新

  • Yeats_Liao Java领域优质创作者 2022-08-19 19:57
    关注

    Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
    Use '--warning-mode all' to show the individual deprecation warnings.
    此版本中使用了不推荐的Gradle功能,使其与Gradle 7.0不兼容
    使用“--warning mode all”显示各个弃用警告

    大概意思就是当前的版本有些api会在gradle7.0中移除,编译打包出现以上提示,7.0版本使用的内容方法将会过时,让你适配一下详情可以使用命令行--warning-mode all进行查看
    通过执行此命令查看具体原因

    gradlew --warning-mode all 
    

    要根据结果解决问题,应该是某个旧函数不能用了,需要使用新的替换

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 已结题 (查看结题原因) 8月22日
  • 已采纳回答 8月21日
  • 修改了问题 8月19日
  • 修改了问题 8月19日
  • 展开全部

悬赏问题

  • ¥20 wireshark抓不到vlan
  • ¥20 关于#stm32#的问题:需要指导自动酸碱滴定仪的原理图程序代码及仿真
  • ¥20 设计一款异域新娘的视频相亲软件需要哪些技术支持
  • ¥15 stata安慰剂检验作图但是真实值不出现在图上
  • ¥15 c程序不知道为什么得不到结果
  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来