为 Android 应用创建资产包时出现 Gradle 错误 [英] Gradle error when creating asset packs for Android app

查看:37
本文介绍了为 Android 应用创建资产包时出现 Gradle 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已按照此处的步骤创建资产为 Android 应用程序打包,除了在第 8 步我收到以下错误:

I have followed the steps here to create asset packs for an Android app, except that at step 8 I am receiving the following error:

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 版.有什么变化需要我添加其他东西吗?

Gradle is reporting version 6.5. Has something changed that I need to add something else?

推荐答案

我打算删除这个问题,但我想有人可能会犯和我一样的愚蠢错误,那就是文件夹名称错误资产之一,即我有 installtime_asset_pack 应该是 installtime_assetpack

I was going to delete this question, however I figured someone might make the same bone-head error as I did, which was to have the wrong folder name for one of the assets, i.e. I had installtime_asset_pack when it should have been installtime_assetpack

这篇关于为 Android 应用创建资产包时出现 Gradle 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆