- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我在尝试构建 Android 应用程序时遇到以下问题。我遇到了一些关于强制或使用手动依赖项解决策略的 android 帖子。这似乎并没有解决问题。
有人问过类似的问题:Similar stack overflow question .
还打开了一个问题:Issue Tracker on a similar issue .
* What went wrong:
Execution failed for task ':app:lintVitalSunmiRelease'.
> Could not resolve all artifacts for configuration ':data:debugAndroidTestRuntimeClasspath'.
> Could not resolve androidx.arch.core:core-runtime:2.0.1-alpha01.
Required by:
project :data
> Cannot find a version of 'androidx.arch.core:core-runtime' that satisfies the version constraints:
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-testing:2.1.0-alpha06' --> 'androidx.arch.core:core-runtime:2.0.1'
Dependency path 'shopperapp:data:unspecified' --> 'androidx.lifecycle:lifecycle-extensions:2.1.0-alpha03' --> 'androidx.arch.core:core-runtime:2.0.1-alpha01'
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-rxjava2:2.0.0-rc01' --> 'androidx.arch.core:core-runtime:2.0.0-rc01'
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-runtime:2.1.0-alpha06' --> 'androidx.arch.core:core-runtime:2.0.1'
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-testing:2.1.0-alpha06' --> 'androidx.room:room-runtime:2.1.0-alpha06' --> 'androidx.arch.core:core-runtime:2.0.1'
Dependency path 'shopperapp:data:unspecified' --> 'androidx.lifecycle:lifecycle-extensions:2.1.0-alpha03' --> 'androidx.lifecycle:lifecycle-livedata:2.1.0-alpha03' --> 'androidx.arch.core:core-runtime:2.0.1-alpha01'
Dependency path 'shopperapp:data:unspecified' --> 'androidx.lifecycle:lifecycle-extensions:2.1.0-alpha03' --> 'androidx.lifecycle:lifecycle-livedata:2.1.0-alpha03' --> 'androidx.lifecycle:lifecycle-livedata-core:2.1.0-alpha03' --> 'androidx.arch.core:core-runtime:2.0.1-alpha01'
Constraint path 'shopperapp:data:unspecified' --> 'androidx.arch.core:core-runtime' strictly '2.0.1-alpha01' because of the following reason: debugRuntimeClasspath uses version 2.0.1-alpha01
Constraint path 'shopperapp:data:unspecified' --> 'androidx.arch.core:core-runtime' strictly '2.0.1-alpha01' because of the following reason: debugRuntimeClasspath uses version 2.0.1-alpha01
Constraint path 'shopperapp:data:unspecified' --> 'androidx.arch.core:core-runtime' strictly '2.0.1-alpha01' because of the following reason: debugRuntimeClasspath uses version 2.0.1-alpha01
> Could not resolve androidx.room:room-runtime:2.0.0-rc01.
Required by:
project :data
> Cannot find a version of 'androidx.room:room-runtime' that satisfies the version constraints:
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-runtime:2.0.0-rc01' because of the following reason: ENABLE_JETIFIER is enabled
Constraint path 'shopperapp:data:unspecified' --> 'androidx.room:room-runtime' strictly '2.0.0-rc01' because of the following reason: debugRuntimeClasspath uses version 2.0.0-rc01
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-runtime:2.0.0-rc01' because of the following reason: ENABLE_JETIFIER is enabled
Constraint path 'shopperapp:data:unspecified' --> 'androidx.room:room-runtime' strictly '2.0.0-rc01' because of the following reason: debugRuntimeClasspath uses version 2.0.0-rc01
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-runtime:2.0.0-rc01' because of the following reason: ENABLE_JETIFIER is enabled
Constraint path 'shopperapp:data:unspecified' --> 'androidx.room:room-runtime' strictly '2.0.0-rc01' because of the following reason: debugRuntimeClasspath uses version 2.0.0-rc01
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-runtime:2.0.0-rc01' because of the following reason: ENABLE_JETIFIER is enabled
Constraint path 'shopperapp:data:unspecified' --> 'androidx.room:room-runtime' strictly '2.0.0-rc01' because of the following reason: debugRuntimeClasspath uses version 2.0.0-rc01
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-runtime:2.0.0-rc01' because of the following reason: ENABLE_JETIFIER is enabled
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-testing:2.1.0-alpha06' --> 'androidx.room:room-runtime:2.1.0-alpha06'
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-rxjava2:2.0.0-rc01' --> 'androidx.room:room-runtime:2.0.0-rc01'
> Could not resolve androidx.sqlite:sqlite:2.0.0-rc01.
Required by:
project :data
> Cannot find a version of 'androidx.sqlite:sqlite' that satisfies the version constraints:
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-testing:2.1.0-alpha06' --> 'androidx.sqlite:sqlite:2.0.1'
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-runtime:2.1.0-alpha06' --> 'androidx.sqlite:sqlite:2.0.1'
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-testing:2.1.0-alpha06' --> 'androidx.room:room-runtime:2.1.0-alpha06' --> 'androidx.sqlite:sqlite:2.0.1'
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-testing:2.1.0-alpha06' --> 'androidx.sqlite:sqlite-framework:2.0.1' --> 'androidx.sqlite:sqlite:2.0.1'
Constraint path 'shopperapp:data:unspecified' --> 'androidx.sqlite:sqlite' strictly '2.0.0-rc01' because of the following reason: debugRuntimeClasspath uses version 2.0.0-rc01
Constraint path 'shopperapp:data:unspecified' --> 'androidx.sqlite:sqlite' strictly '2.0.0-rc01' because of the following reason: debugRuntimeClasspath uses version 2.0.0-rc01
Constraint path 'shopperapp:data:unspecified' --> 'androidx.sqlite:sqlite' strictly '2.0.0-rc01' because of the following reason: debugRuntimeClasspath uses version 2.0.0-rc01
> Could not resolve android.arch.persistence.room:runtime:1.1.1.
Required by:
project :data
> Cannot find a version of 'androidx.room:room-runtime' that satisfies the version constraints:
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-runtime:2.0.0-rc01' because of the following reason: ENABLE_JETIFIER is enabled
Constraint path 'shopperapp:data:unspecified' --> 'androidx.room:room-runtime' strictly '2.0.0-rc01' because of the following reason: debugRuntimeClasspath uses version 2.0.0-rc01
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-runtime:2.0.0-rc01' because of the following reason: ENABLE_JETIFIER is enabled
Constraint path 'shopperapp:data:unspecified' --> 'androidx.room:room-runtime' strictly '2.0.0-rc01' because of the following reason: debugRuntimeClasspath uses version 2.0.0-rc01
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-runtime:2.0.0-rc01' because of the following reason: ENABLE_JETIFIER is enabled
Constraint path 'shopperapp:data:unspecified' --> 'androidx.room:room-runtime' strictly '2.0.0-rc01' because of the following reason: debugRuntimeClasspath uses version 2.0.0-rc01
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-runtime:2.0.0-rc01' because of the following reason: ENABLE_JETIFIER is enabled
Constraint path 'shopperapp:data:unspecified' --> 'androidx.room:room-runtime' strictly '2.0.0-rc01' because of the following reason: debugRuntimeClasspath uses version 2.0.0-rc01
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-runtime:2.0.0-rc01' because of the following reason: ENABLE_JETIFIER is enabled
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-testing:2.1.0-alpha06' --> 'androidx.room:room-runtime:2.1.0-alpha06'
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-rxjava2:2.0.0-rc01' --> 'androidx.room:room-runtime:2.0.0-rc01'
> Could not resolve androidx.room:room-common:2.1.0-alpha06.
Required by:
project :data > androidx.room:room-testing:2.1.0-alpha06
project :data > androidx.room:room-runtime:2.1.0-alpha06
project :data > androidx.room:room-testing:2.1.0-alpha06 > androidx.room:room-migration:2.1.0-alpha06
> Cannot find a version of 'androidx.room:room-common' that satisfies the version constraints:
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-testing:2.1.0-alpha06' --> 'androidx.room:room-common:2.1.0-alpha06'
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-rxjava2:2.0.0-rc01' --> 'androidx.room:room-common:2.0.0-rc01'
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-runtime:2.1.0-alpha06' --> 'androidx.room:room-common:2.1.0-alpha06'
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-testing:2.1.0-alpha06' --> 'androidx.room:room-runtime:2.1.0-alpha06' --> 'androidx.room:room-common:2.1.0-alpha06'
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-testing:2.1.0-alpha06' --> 'androidx.room:room-migration:2.1.0-alpha06' --> 'androidx.room:room-common:2.1.0-alpha06'
Constraint path 'shopperapp:data:unspecified' --> 'androidx.room:room-common' strictly '2.0.0-rc01' because of the following reason: debugRuntimeClasspath uses version 2.0.0-rc01
Constraint path 'shopperapp:data:unspecified' --> 'androidx.room:room-common' strictly '2.0.0-rc01' because of the following reason: debugRuntimeClasspath uses version 2.0.0-rc01
Constraint path 'shopperapp:data:unspecified' --> 'androidx.room:room-common' strictly '2.0.0-rc01' because of the following reason: debugRuntimeClasspath uses version 2.0.0-rc01
> Could not resolve androidx.room:room-runtime:2.1.0-alpha06.
Required by:
project :data > androidx.room:room-testing:2.1.0-alpha06
> Cannot find a version of 'androidx.room:room-runtime' that satisfies the version constraints:
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-runtime:2.0.0-rc01' because of the following reason: ENABLE_JETIFIER is enabled
Constraint path 'shopperapp:data:unspecified' --> 'androidx.room:room-runtime' strictly '2.0.0-rc01' because of the following reason: debugRuntimeClasspath uses version 2.0.0-rc01
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-runtime:2.0.0-rc01' because of the following reason: ENABLE_JETIFIER is enabled
Constraint path 'shopperapp:data:unspecified' --> 'androidx.room:room-runtime' strictly '2.0.0-rc01' because of the following reason: debugRuntimeClasspath uses version 2.0.0-rc01
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-runtime:2.0.0-rc01' because of the following reason: ENABLE_JETIFIER is enabled
Constraint path 'shopperapp:data:unspecified' --> 'androidx.room:room-runtime' strictly '2.0.0-rc01' because of the following reason: debugRuntimeClasspath uses version 2.0.0-rc01
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-runtime:2.0.0-rc01' because of the following reason: ENABLE_JETIFIER is enabled
Constraint path 'shopperapp:data:unspecified' --> 'androidx.room:room-runtime' strictly '2.0.0-rc01' because of the following reason: debugRuntimeClasspath uses version 2.0.0-rc01
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-runtime:2.0.0-rc01' because of the following reason: ENABLE_JETIFIER is enabled
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-testing:2.1.0-alpha06' --> 'androidx.room:room-runtime:2.1.0-alpha06'
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-rxjava2:2.0.0-rc01' --> 'androidx.room:room-runtime:2.0.0-rc01'
> Could not resolve androidx.arch.core:core-runtime:2.0.1.
Required by:
project :data > androidx.room:room-testing:2.1.0-alpha06
project :data > androidx.room:room-runtime:2.1.0-alpha06
> Cannot find a version of 'androidx.arch.core:core-runtime' that satisfies the version constraints:
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-testing:2.1.0-alpha06' --> 'androidx.arch.core:core-runtime:2.0.1'
Dependency path 'shopperapp:data:unspecified' --> 'androidx.lifecycle:lifecycle-extensions:2.1.0-alpha03' --> 'androidx.arch.core:core-runtime:2.0.1-alpha01'
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-rxjava2:2.0.0-rc01' --> 'androidx.arch.core:core-runtime:2.0.0-rc01'
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-runtime:2.1.0-alpha06' --> 'androidx.arch.core:core-runtime:2.0.1'
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-testing:2.1.0-alpha06' --> 'androidx.room:room-runtime:2.1.0-alpha06' --> 'androidx.arch.core:core-runtime:2.0.1'
Dependency path 'shopperapp:data:unspecified' --> 'androidx.lifecycle:lifecycle-extensions:2.1.0-alpha03' --> 'androidx.lifecycle:lifecycle-livedata:2.1.0-alpha03' --> 'androidx.arch.core:core-runtime:2.0.1-alpha01'
Dependency path 'shopperapp:data:unspecified' --> 'androidx.lifecycle:lifecycle-extensions:2.1.0-alpha03' --> 'androidx.lifecycle:lifecycle-livedata:2.1.0-alpha03' --> 'androidx.lifecycle:lifecycle-livedata-core:2.1.0-alpha03' --> 'androidx.arch.core:core-runtime:2.0.1-alpha01'
Constraint path 'shopperapp:data:unspecified' --> 'androidx.arch.core:core-runtime' strictly '2.0.1-alpha01' because of the following reason: debugRuntimeClasspath uses version 2.0.1-alpha01
Constraint path 'shopperapp:data:unspecified' --> 'androidx.arch.core:core-runtime' strictly '2.0.1-alpha01' because of the following reason: debugRuntimeClasspath uses version 2.0.1-alpha01
Constraint path 'shopperapp:data:unspecified' --> 'androidx.arch.core:core-runtime' strictly '2.0.1-alpha01' because of the following reason: debugRuntimeClasspath uses version 2.0.1-alpha01
> Could not resolve androidx.arch.core:core-runtime:2.0.1-alpha01.
Required by:
project :data > androidx.lifecycle:lifecycle-extensions:2.1.0-alpha03
project :data > androidx.lifecycle:lifecycle-livedata:2.1.0-alpha03
project :data > androidx.lifecycle:lifecycle-livedata-core:2.1.0-alpha03
> Cannot find a version of 'androidx.arch.core:core-runtime' that satisfies the version constraints:
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-testing:2.1.0-alpha06' --> 'androidx.arch.core:core-runtime:2.0.1'
Dependency path 'shopperapp:data:unspecified' --> 'androidx.lifecycle:lifecycle-extensions:2.1.0-alpha03' --> 'androidx.arch.core:core-runtime:2.0.1-alpha01'
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-rxjava2:2.0.0-rc01' --> 'androidx.arch.core:core-runtime:2.0.0-rc01'
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-runtime:2.1.0-alpha06' --> 'androidx.arch.core:core-runtime:2.0.1'
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-testing:2.1.0-alpha06' --> 'androidx.room:room-runtime:2.1.0-alpha06' --> 'androidx.arch.core:core-runtime:2.0.1'
Dependency path 'shopperapp:data:unspecified' --> 'androidx.lifecycle:lifecycle-extensions:2.1.0-alpha03' --> 'androidx.lifecycle:lifecycle-livedata:2.1.0-alpha03' --> 'androidx.arch.core:core-runtime:2.0.1-alpha01'
Dependency path 'shopperapp:data:unspecified' --> 'androidx.lifecycle:lifecycle-extensions:2.1.0-alpha03' --> 'androidx.lifecycle:lifecycle-livedata:2.1.0-alpha03' --> 'androidx.lifecycle:lifecycle-livedata-core:2.1.0-alpha03' --> 'androidx.arch.core:core-runtime:2.0.1-alpha01'
Constraint path 'shopperapp:data:unspecified' --> 'androidx.arch.core:core-runtime' strictly '2.0.1-alpha01' because of the following reason: debugRuntimeClasspath uses version 2.0.1-alpha01
Constraint path 'shopperapp:data:unspecified' --> 'androidx.arch.core:core-runtime' strictly '2.0.1-alpha01' because of the following reason: debugRuntimeClasspath uses version 2.0.1-alpha01
Constraint path 'shopperapp:data:unspecified' --> 'androidx.arch.core:core-runtime' strictly '2.0.1-alpha01' because of the following reason: debugRuntimeClasspath uses version 2.0.1-alpha01
> Could not resolve androidx.room:room-runtime:2.0.0-rc01.
Required by:
project :data > androidx.room:room-rxjava2:2.0.0-rc01
> Cannot find a version of 'androidx.room:room-runtime' that satisfies the version constraints:
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-runtime:2.0.0-rc01' because of the following reason: ENABLE_JETIFIER is enabled
Constraint path 'shopperapp:data:unspecified' --> 'androidx.room:room-runtime' strictly '2.0.0-rc01' because of the following reason: debugRuntimeClasspath uses version 2.0.0-rc01
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-runtime:2.0.0-rc01' because of the following reason: ENABLE_JETIFIER is enabled
Constraint path 'shopperapp:data:unspecified' --> 'androidx.room:room-runtime' strictly '2.0.0-rc01' because of the following reason: debugRuntimeClasspath uses version 2.0.0-rc01
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-runtime:2.0.0-rc01' because of the following reason: ENABLE_JETIFIER is enabled
Constraint path 'shopperapp:data:unspecified' --> 'androidx.room:room-runtime' strictly '2.0.0-rc01' because of the following reason: debugRuntimeClasspath uses version 2.0.0-rc01
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-runtime:2.0.0-rc01' because of the following reason: ENABLE_JETIFIER is enabled
Constraint path 'shopperapp:data:unspecified' --> 'androidx.room:room-runtime' strictly '2.0.0-rc01' because of the following reason: debugRuntimeClasspath uses version 2.0.0-rc01
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-runtime:2.0.0-rc01' because of the following reason: ENABLE_JETIFIER is enabled
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-testing:2.1.0-alpha06' --> 'androidx.room:room-runtime:2.1.0-alpha06'
Dependency path 'shopperapp:data:unspecified' --> 'androidx.room:room-rxjava2:2.0.0-rc01' --> 'androidx.room:room-runtime:2.0.0-rc01'
gradle文件如下:
buildscript {
repositories {
google()
maven { url 'https://maven.fabric.io/public' }
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.2'
classpath 'io.fabric.tools:gradle:1.28.1'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
repositories {
google()
maven { url 'https://maven.fabric.io/public' }
maven { url 'https://jitpack.io' }
mavenCentral()
jcenter()
flatDir {
dirs 'libs'
}
}
android {
compileSdkVersion 28
buildToolsVersion "28.0.3"
flavorDimensions "default"
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
splits {
abi {
enable true
reset()
include buildABI
universalApk false
}
}
defaultConfig {
multiDexEnabled true
applicationId "myappid.com"
minSdkVersion 21
targetSdkVersion 28
versionCode build_version_code as Integer
versionName build_version
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
lintOptions {
abortOnError false
}
}
configurations.all {
resolutionStrategy.force 'com.google.code.findbugs:jsr305:1.3.9'
}
dependencies {
implementation(name: 'PayLib-release', ext: 'aar')
implementation fileTree(dir: 'libs', include: ['*.jar', '*.arr'])
implementation 'com.sunmi:sunmiui:1.1.22'
androidTestImplementation('androidx.test.espresso:espresso-core:3.1.1', {
exclude group: 'com.android.support', module: 'support-annotations'
androidTestImplementation 'com.android.support:support-annotations:25.3.1'
androidTestImplementation 'com.android.support.test:runner:0.5'
})
implementation('com.crashlytics.sdk.android:crashlytics:2.9.6@aar') {
transitive = true
}
implementation 'androidx.multidex:multidex:2.0.1'
implementation 'androidx.appcompat:appcompat:1.1.0-alpha04'
implementation 'androidx.vectordrawable:vectordrawable-animated:1.1.0-alpha01'
implementation 'androidx.media:media:1.1.0-alpha03'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'com.google.android.material:material:1.1.0-alpha05'
implementation 'com.google.firebase:firebase-core:16.0.7'
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.9'
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha3'
implementation 'androidx.recyclerview:recyclerview:1.1.0-alpha03'
implementation 'androidx.percentlayout:percentlayout:1.0.0'
implementation 'androidx.cardview:cardview:1.0.0'
testImplementation 'junit:junit:4.12'
implementation project(':data')
implementation 'com.github.Kunzisoft:Android-SwitchDateTimePicker:2.0'
// RxJava
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
implementation 'io.reactivex.rxjava2:rxjava:2.2.7'
implementation "com.jakewharton.rxbinding2:rxbinding:2.0.0"
}
apply plugin: 'com.google.gms.google-services'
有人能解决这个问题吗?
最佳答案
对我有用的解决方案是使用依赖项解析策略:
因此,对于项目需要的每个突出显示的项目,我都将其添加到我的依赖项解决方案中:
configurations.all
{
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'androidx.room'
&& !details.requested.name.contains('room-runtime')) {
details.useVersion "2.1.0-alpha04"
}
if (details.requested.group == 'androidx.room'
&& !details.requested.name.contains('room-testing')) {
details.useVersion "2.1.0-alpha04"
}
if (details.requested.group == 'androidx.room'
&& !details.requested.name.contains('room-rxjava2')) {
details.useVersion "2.1.0-alpha04"
}
if (details.requested.group == 'androidx.room'
&& !details.requested.name.contains('room-common')) {
details.useVersion "2.1.0-alpha04"
}
if (details.requested.group == 'androidx.room'
&& !details.requested.name.contains('room-migration')) {
details.useVersion "2.1.0-alpha04"
}
if (details.requested.group == 'androidx.room'
&& !details.requested.name.contains('room-compiler')) {
details.useVersion "2.1.0-alpha04"
}
}
}
在这里我已经声明他们应该使用版本 2.1.0-alpha04 因为版本 2.1.0-alpha06 似乎有来自第一手经验的问题以及另一篇文章中所述:Room persistence library (dependency issue), MVVM design pattern和 Note: Failed to read get kotlin metadata for ...etc, and type converter
关于android - 找不到 'androidx.arch'、 'androidx.room' 等版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55570829/
我在使用的教程中遇到了这个不寻常的代码。 #if !(arch(x86_64) || arch(arm64)) func sqrt(a: CGFloat) -> CGFloat { return CG
我的应用程序需要 double 计算。根据我在谷歌上找到的内容,我应该添加一个标志“-arch sm_13”或“-arch sm_20”。 Q1:“-arch sm_13”和“-arch sm_20”
在从不同的规范文件构建一些 RPM 时,我收到了上述警告 Binaries arch (1) not matching the package arch (2). 代码和一切都给了我,我对 RPM 很
似乎 Microsoft Visual C++ 提供了可在两种名称格式下重新分发的 VC++ 运行时的等效副本。 VS2017: @ /cygdrive/c/Program Files (x86)/M
在 Kotlin 文件中,我有一个“未解析的引用:arch”。 import android.arch.lifecycle.Lifecycle import android.arch.lifecycl
目前,我们正在项目中使用LiveData、ViewModel 和Room。 我们正在使用 Java 8。 我们在build.gradle中使用以下内容 // ViewModel and LiveDat
我在 Macbook Pro 上的 VirtualBox 上运行 Ubuntu 14.04 64 位 MAC。我在 hello_kernel.c 中有以下内容,我想运行它。 #include #in
我创建了一个 github 操作来在推送时部署代码。 安装软件包时会导致此错误。 Run npm i --no-optional && cd client && npm i --no-optional
当我尝试在 Ubuntu 机器中启用 PPP 时,在 menuconfig 之后发生以下错误并尝试制作内核: $ sudo make make[1]: *** No rule to make targ
测试二进制 二进制没问题 npm WARN rollback 回滚 node-pre-gyp@0.12.0 失败(这可能是无害的): EPERM: operation not permitted, l
当我尝试在 Ubuntu 机器中启用 PPP 时,在 menuconfig 和尝试制作内核之后发生了以下错误: $ sudo make make[1]: *** No rule to make tar
我正在尝试安装Webpack但它不断地给我同样的警告,而且 webpack 仍然没有安装在我的项目中。这是我正在处理的一个现有项目。我尝试了很多命令,例如 npm install --no-optio
我在我的raspberry pi上安装python密码软件包时遇到了一些问题,特别是python版本3.9.8(与pyenv一起安装)。密码包是使用pacman(python-cryptography
CFSDN坚持开源创造价值,我们致力于搭建一个资源共享平台,让每一个IT人在这里找到属于你的精彩世界. 这篇CFSDN的博客文章Arch Linux安装后的一些初始设置简介由作者收集整理,如果你对这篇
我尝试在 ubuntu 12.04(64 位)上构建 gcc 4.8 主干。 当我使用配置时 ../gcc-trunk/configure -v --with-pkgversion='ubuntu12
slock 与 xfce 一起安装。 当我点击右上角的“锁定屏幕”时,屏幕变黑。按任意键,屏幕会变红,但如何取消呢? slock中没有解锁的UI? 最佳答案 我发现它只是在等待密码。输入正确的密码,屏
我正在尝试在 Cygwin 中为 Android NDK 配置工具链。我用这个tutorial .当我运行以下命令时: ./make-standalone-toolchain.sh --platfor
我安装了 Arch Arm到 Rpi3 上,然后将 sysroot rsync 到安装在 Lenovo thinkpad 上的 x86_64 Arch Linux。 然后我安装了 arm-linux-
我正在研究 Linux 内核模块。它需要有一种方法可以将所有进程显示为分层树。我已经编写了一个递归方法来显示进程及其子进程。我还尝试通过检查每个进程与 init_task 的距离来将其格式化为树。但是
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 这个问题似乎不是关于 a specific programming problem, a softwar
我是一名优秀的程序员,十分优秀!