首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Gradle找不到组合编译器

Gradle找不到组合编译器
EN

Stack Overflow用户
提问于 2021-03-05 11:22:23
回答 1查看 420关注 0票数 0

我希望在Dynamic Feature Module中的现有项目中实现jetpack。我跟踪了来自官方喷气背包撰写网站官方喷气背包撰写网站,但得到了以下错误:

代码语言:javascript
复制
Execution failed for task ':features:profile:workpreferences:prepareStagingDebugKotlinCompileTask'.
> Could not resolve all files for configuration ':features:profile:workpreferences:kotlin-extension'.
   > Could not find androidx.compose:compose-compiler:1.0.0-beta01.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/androidx/compose/compose-compiler/1.0.0-beta01/compose-compiler-1.0.0-beta01.pom
       - https://jcenter.bintray.com/androidx/compose/compose-compiler/1.0.0-beta01/compose-compiler-1.0.0-beta01.pom
       - https://repo.maven.apache.org/maven2/androidx/compose/compose-compiler/1.0.0-beta01/compose-compiler-1.0.0-beta01.pom
       - https://jitpack.io/androidx/compose/compose-compiler/1.0.0-beta01/compose-compiler-1.0.0-beta01.pom
       - https://dl.bintray.com/guardian/android/androidx/compose/compose-compiler/1.0.0-beta01/compose-compiler-1.0.0-beta01.pom
     Required by:
         project :features:profile:workpreferences

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

我已经尝试了一些方法来解决这个问题,但是没有什么效果。

  • 分级版本= 7.0.0-alpha08
  • kotlin版本= 1.4.30
  • 撰写版本= 1.0.0-beta01
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-03-06 23:40:11

我也遇到了同样的错误,然后在这里查看Jetpack编写示例应用程序:https://github.com/android/compose-samples

我意识到他们所有的示例都使用了Android插件版本: 7.0.0-alpha08 08和Gradle版本: 6.8.2,所以我建议确保您的应用程序具有这种功能。一旦我更新了,我就不再看到这个错误了,但是我确实注意到有一些第三方库不支持这个AGP,所以请做好准备。android-jetpack-撰写

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/66491690

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档