android - 无法解析 : android. arch.persistence.room :runtime: 1. 0.0-alpha1

标签 android android-gradle-plugin android-architecture-components android-architecture-lifecycle

我无法编译以下 gradle :-

compile 'android.arch.persistence.room:runtime: 1.0.0-alpha1'

错误信息:-

Error:(26, 13) Failed to resolve: android.arch.persistence.room:runtime: 1.0.0-alpha1

在文件中显示 在项目结构中显示对话框

如果有人能进来帮我,那会很有帮助!!

最佳答案

库有一个发布版本,更新你的gradle:

implementation "android.arch.persistence.room:runtime:1.0.0"
annotationProcessor "android.arch.persistence.room:compiler:1.0.0"

更多:https://developer.android.com/topic/libraries/architecture/adding-components.html

关于android - 无法解析 : android. arch.persistence.room :runtime: 1. 0.0-alpha1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47350531/

相关文章:

android - 是否弃用了 gradle 的 android transform-api?

Android gradle 多项目依赖解析

java - 如何在Android中创建 "clickable"行并在TextView中突出显示该行和文本

android - android studio 中的 Opencv import highgui 显示错误。无法解决(我添加了库仍然存在错误)

java - LocationListener、LocationRequest、LocationServices 在实现 Google Maps API 以在 Android Studio 中查找附近地点时导入无效

具有整洁架构的 Android 分页库

安卓架构组件 : How is LiveData in the repository observed by a ViewModel

android - 在 React native WebView 中禁用下载

Android - 下载 SQL 数据库和搜索

android - 如果不是Rotation,请使用ViewModel