gpt4 book ai didi

安卓工作室 3.1.2 : Failed to resolve: runtime

转载 作者:IT王子 更新时间:2023-10-29 00:05:52 26 4
gpt4 key购买 nike

我最近将我的 Android Studio 更新为 3.1.2 。更新后,我尝试打开现有项目,并在编译项目时显示多个 gradle 错误。

这些错误提示我将 'compile' 语句更新为 'implementation',我这样做了,但仍然遇到了一些错误,后来我通过 更新解决了这些错误我的 google play 和 firebase sdks最新版本

现在我不知道为什么我的 IDE 会出现以下错误(查看屏幕截图)。

无法解决:运行时

enter image description here )。

现在我做了 Build > Clean Project

错误是找不到 runtime.aar (android.arch.lifecycle:runtime:1.0.3)。截屏 enter image description here

接下来要做什么?

解决方案:

  1. 我更新了我所有的 google play 服务和 firebase 库。
  2. 为了解决找不到运行时 aar,我只是简单地将 google() 安排在存储库的顶部。

最佳答案

是的,

如果您遇到错误运行时之类的错误,您可以更改 google() 在 build.xml 依赖项中的位置。 gradle.. 如下所示:

repositories {
google()
jcenter()

}

关于安卓工作室 3.1.2 : Failed to resolve: runtime,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50584437/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com