【发布时间】:2017-08-23 15:23:51
【问题描述】:
我正在尝试开发简单的即时应用程序。我已经完成了所有模块和配置,但是当我尝试立即运行时,gradle 控制台显示以下错误:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':blogspace-instant:packageDebugInstantAppBundle'.
> Expected configuration ':blogspace-instant:debugCompileClasspath' to contain exactly one file, however, it contains no files.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 1s
有人知道如何解决这个问题吗?
【问题讨论】:
-
你能提交一个错误,然后在这里链接到它吗?他们可能需要您提供可重现的项目。对大家都有帮助,谢谢! issuetracker.google.com/issues/…
-
你可能想测试其他版本的插件到你的gradle插件,插件之间可能存在一些不兼容的问题。您可能想检查这个github issue,它通过检查插件的其他版本解决了同样的问题。希望这会有所帮助。
-
也看到了这个问题,还没有解决办法。然而,在 O 迁移之前,我们的 IA 构建良好。如果我弄清楚了,我会回到这里。
-
你解决了吗?
-
这解决了我的问题:File-> Invalidate Caches/Restart
标签: android android-instant-apps