【问题标题】:Gradle error when creating asset packs for Android app为 Android 应用创建资产包时出现 Gradle 错误
【发布时间】:2021-09-14 22:19:20
【问题描述】:

我已关注 the steps here 为 Android 应用创建资产包,但在第 8 步我收到以下错误:

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:assetPackDebugPreBundleTask'.
> Could not resolve all task dependencies for configuration ':app:assetPackFiles'.
   > Could not resolve project :installtime_assetpack.
     Required by:
         project :app
      > Project :app declares a dependency from configuration 'assetPackFiles' to configuration 'packElements' which is not declared in the descriptor for project :installtime_assetpack.

Gradle 正在报告 6.5 版。有什么变化需要我添加其他内容吗?

【问题讨论】:

    标签: android android-gradle-plugin gradle-plugin


    【解决方案1】:

    我打算删除这个问题,但我认为有人可能会犯与我一样的愚蠢错误,即其中一项资产的文件夹名称错误,即我应该有installtime_asset_pack已经installtime_assetpack

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-10-14
      • 1970-01-01
      • 1970-01-01
      • 2015-09-08
      • 1970-01-01
      • 2015-08-13
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多