大佬们 Android studio打包时总是报这个是啥原因啊

  • Creator 版本: 2.4.7

  • 目标平台:

  • 重现方式:

  • 首个报错:

  • 之前哪个版本是正常的:

  • 手机型号:

  • 手机浏览器:

  • 编辑器操作系统:

  • 重现概率:

大佬们 Android studio打包时总是报这个是啥原因啊?

Could not determine the dependencies of task ‘:MJ:mergeDebugAssets’.

Could not resolve all task dependencies for configuration ‘:MJ:debugRuntimeClasspath’.
Could not resolve project :libcocos2dx.
Required by:
project :MJ
No matching configuration of project :libcocos2dx was found. The consumer was configured to find a runtime of a component, as well as attribute ‘com.android.build.api.attributes.BuildTypeAttr’ with value ‘debug’ but:
- None of the consumable configurations have attributes.

  • 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.
    QQ截图20220126171559|690x111

啥也没有啊

啥也没有啊

原来是这个报错啊,解决办法是

按照楼上的方

有了 第一次发帖 没弄好 :joy:

你把build删除,重新build看看. 或者配置一下