- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
将 Android Studio 更新到 3.3 Canary 10(来自之前的 Canary)后,我开始遇到 Gradle 同步问题:
ERROR: Unable to resolve dependency for ':feature@debugFeature/compileClasspath': Could not resolve androidx.annotation:annotation:1.0.0-rc01.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@debugFeature/compileClasspath': Could not resolve androidx.legacy:legacy-support-core-utils:1.0.0-rc01.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@debugFeature/compileClasspath': Could not resolve androidx.core:core:1.0.0-rc01.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@debugFeature/compileClasspath': Could not resolve androidx.collection:collection:1.0.0-rc01.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@debugFeature/compileClasspath': Could not resolve androidx.versionedparcelable:versionedparcelable:1.0.0-rc01.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@debugFeature/compileClasspath': Could not resolve androidx.documentfile:documentfile:1.0.0-rc01.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@debugFeature/compileClasspath': Could not resolve androidx.loader:loader:1.0.0-rc01.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@debugFeature/compileClasspath': Could not resolve androidx.localbroadcastmanager:localbroadcastmanager:1.0.0-rc01.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@debugFeature/compileClasspath': Could not resolve androidx.print:print:1.0.0-rc01.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@debugFeature/compileClasspath': Could not resolve io.reactivex.rxjava2:rxjava:2.0.6.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@debugFeature/compileClasspath': Could not resolve org.reactivestreams:reactive-streams:1.0.0.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@debugFeature/compileClasspath': Could not resolve io.reactivex.rxjava2:rxjava:2.2.0.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@debugFeature/compileClasspath': Could not resolve androidx.legacy:legacy-support-core-utils:1.0.0-rc01.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@debugFeature/compileClasspath': Could not resolve io.reactivex.rxjava2:rxjava:2.0.6.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@debugFeature/compileClasspath': Could not resolve androidx.annotation:annotation:1.0.0-rc02.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@debugFeature/compileClasspath': Could not resolve androidx.core:core:1.0.0-rc02.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@debugFeature/compileClasspath': Could not resolve androidx.collection:collection:1.0.0-rc02.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@debugFeature/compileClasspath': Could not resolve androidx.legacy:legacy-support-core-utils:1.0.0-rc02.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@debugFeature/compileClasspath': Could not resolve org.reactivestreams:reactive-streams:1.0.2.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@debugFeature/compileClasspath': Could not resolve androidx.annotation:annotation:1.0.0-rc01.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@debugFeature/compileClasspath': Could not resolve androidx.documentfile:documentfile:1.0.0-rc02.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@debugFeature/compileClasspath': Could not resolve androidx.loader:loader:1.0.0-rc02.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@debugFeature/compileClasspath': Could not resolve androidx.localbroadcastmanager:localbroadcastmanager:1.0.0-rc02.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@debugFeature/compileClasspath': Could not resolve androidx.print:print:1.0.0-rc02.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@debugFeature/compileClasspath': Could not resolve androidx.versionedparcelable:versionedparcelable:1.0.0-rc02.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@debugFeature/compileClasspath': Could not resolve androidx.core:core:1.0.0-rc01.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@releaseFeature/compileClasspath': Could not resolve androidx.annotation:annotation:1.0.0-rc01.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@releaseFeature/compileClasspath': Could not resolve androidx.legacy:legacy-support-core-utils:1.0.0-rc01.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@releaseFeature/compileClasspath': Could not resolve androidx.core:core:1.0.0-rc01.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@releaseFeature/compileClasspath': Could not resolve androidx.collection:collection:1.0.0-rc01.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@releaseFeature/compileClasspath': Could not resolve androidx.versionedparcelable:versionedparcelable:1.0.0-rc01.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@releaseFeature/compileClasspath': Could not resolve androidx.documentfile:documentfile:1.0.0-rc01.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@releaseFeature/compileClasspath': Could not resolve androidx.loader:loader:1.0.0-rc01.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@releaseFeature/compileClasspath': Could not resolve androidx.localbroadcastmanager:localbroadcastmanager:1.0.0-rc01.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@releaseFeature/compileClasspath': Could not resolve androidx.print:print:1.0.0-rc01.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@releaseFeature/compileClasspath': Could not resolve io.reactivex.rxjava2:rxjava:2.0.6.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@releaseFeature/compileClasspath': Could not resolve org.reactivestreams:reactive-streams:1.0.0.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@releaseFeature/compileClasspath': Could not resolve io.reactivex.rxjava2:rxjava:2.2.0.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@releaseFeature/compileClasspath': Could not resolve androidx.legacy:legacy-support-core-utils:1.0.0-rc01.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@releaseFeature/compileClasspath': Could not resolve io.reactivex.rxjava2:rxjava:2.0.6.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@releaseFeature/compileClasspath': Could not resolve androidx.annotation:annotation:1.0.0-rc02.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@releaseFeature/compileClasspath': Could not resolve androidx.core:core:1.0.0-rc02.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@releaseFeature/compileClasspath': Could not resolve androidx.collection:collection:1.0.0-rc02.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@releaseFeature/compileClasspath': Could not resolve androidx.legacy:legacy-support-core-utils:1.0.0-rc02.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@releaseFeature/compileClasspath': Could not resolve org.reactivestreams:reactive-streams:1.0.2.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@releaseFeature/compileClasspath': Could not resolve androidx.annotation:annotation:1.0.0-rc01.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@releaseFeature/compileClasspath': Could not resolve androidx.documentfile:documentfile:1.0.0-rc02.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@releaseFeature/compileClasspath': Could not resolve androidx.loader:loader:1.0.0-rc02.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@releaseFeature/compileClasspath': Could not resolve androidx.localbroadcastmanager:localbroadcastmanager:1.0.0-rc02.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@releaseFeature/compileClasspath': Could not resolve androidx.print:print:1.0.0-rc02.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@releaseFeature/compileClasspath': Could not resolve androidx.versionedparcelable:versionedparcelable:1.0.0-rc02.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@releaseFeature/compileClasspath': Could not resolve androidx.core:core:1.0.0-rc01.
Show Details
Affected Modules: feature
我的 build.gradle 模块“功能”:
apply plugin: 'com.android.feature'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
apply plugin: "androidx.navigation.safeargs"
android {
compileSdkVersion 28
defaultConfig {
minSdkVersion 21
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
kapt {
arguments {
arg("room.schemaLocation", "$projectDir/schemas".toString())
}
}
}
compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
}
}
repositories {
flatDir {
dirs 'libs'
}
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation project(':base')
// Moxy
implementation 'com.squareup:javapoet:1.11.1'
implementation files('libs/moxy.jar')
implementation files('libs/moxy-androidx.jar')
implementation files('libs/moxy-android.jar')
kapt files('libs/moxy-compiler.jar')
// Wait till moxy will release AndroidX support
// implementation 'com.arello-mobile:moxy:1.5.5'
// implementation 'com.arello-mobile:moxy-android:1.5.5'
// kapt 'com.arello-mobile:moxy-compiler:1.5.5'
// Room
implementation "androidx.room:room-runtime:$room_version"
kapt "androidx.room:room-compiler:$room_version"
implementation "androidx.room:room-rxjava2:$room_version"
// Dagger
implementation "com.google.dagger:dagger:$dagger_version"
kapt "com.google.dagger:dagger-compiler:$dagger_version"
testImplementation 'junit:junit:4.12'
testImplementation "androidx.room:room-testing:$room_version"
androidTestImplementation 'androidx.test:runner:1.1.0-alpha4'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0-alpha4'
}
项目的build.gradle:
buildscript {
ext {
kotlin_version = '1.2.70'
room_version = '2.0.0-rc01'
dagger_version = '2.17'
rxjava_version = '2.2.0'
rxandroid_version = '2.1.0'
rxkotlin_version = '2.3.0'
}
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0-alpha10'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "android.arch.navigation:navigation-safe-args-gradle-plugin:1.0.0-alpha05"
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
依赖关系:
+--- org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.2.70
| \--- org.jetbrains.kotlin:kotlin-stdlib:1.2.70
| +--- org.jetbrains.kotlin:kotlin-stdlib-common:1.2.70
| \--- org.jetbrains:annotations:13.0
+--- org.jetbrains.kotlin:kotlin-stdlib:1.2.70 (*)
+--- org.jetbrains.kotlin:kotlin-stdlib-common:1.2.70
+--- org.jetbrains:annotations:13.0
+--- androidx.appcompat:appcompat:1.0.0-rc02
| +--- androidx.annotation:annotation:1.0.0-rc02
| +--- androidx.core:core:1.0.0-rc02
| | +--- androidx.annotation:annotation:1.0.0-rc02
| | +--- androidx.collection:collection:1.0.0-rc02
| | | \--- androidx.annotation:annotation:1.0.0-rc02
| | +--- androidx.lifecycle:lifecycle-runtime:2.0.0-rc01
| | | +--- androidx.lifecycle:lifecycle-common:2.0.0-rc01
| | | \--- androidx.arch.core:core-common:2.0.0-rc01
| | | \--- androidx.annotation:annotation:1.0.0-rc01 -> 1.0.0-rc02
| | \--- androidx.versionedparcelable:versionedparcelable:1.0.0-rc02
| | +--- androidx.annotation:annotation:1.0.0-rc02
| | \--- androidx.collection:collection:1.0.0-rc02 (*)
| +--- androidx.collection:collection:1.0.0-rc02 (*)
| +--- androidx.cursoradapter:cursoradapter:1.0.0-rc02
| | \--- androidx.annotation:annotation:1.0.0-rc02
| +--- androidx.legacy:legacy-support-core-utils:1.0.0-rc02
| | +--- androidx.annotation:annotation:1.0.0-rc02
| | +--- androidx.core:core:1.0.0-rc02 (*)
| | +--- androidx.documentfile:documentfile:1.0.0-rc02
| | | \--- androidx.annotation:annotation:1.0.0-rc02
| | +--- androidx.loader:loader:1.0.0-rc02
| | | +--- androidx.annotation:annotation:1.0.0-rc02
| | | +--- androidx.core:core:1.0.0-rc02 (*)
| | | +--- androidx.lifecycle:lifecycle-livedata-core:2.0.0-rc01
| | | | +--- androidx.lifecycle:lifecycle-common:2.0.0-rc01
| | | | +--- androidx.arch.core:core-common:2.0.0-rc01 (*)
| | | | \--- androidx.arch.core:core-runtime:2.0.0-rc01
| | | | +--- androidx.annotation:annotation:1.0.0-rc01 -> 1.0.0-rc02
| | | | \--- androidx.arch.core:core-common:2.0.0-rc01 (*)
| | | \--- androidx.lifecycle:lifecycle-viewmodel:2.0.0-rc01
| | +--- androidx.localbroadcastmanager:localbroadcastmanager:1.0.0-rc02
| | | \--- androidx.annotation:annotation:1.0.0-rc02
| | \--- androidx.print:print:1.0.0-rc02
| | \--- androidx.annotation:annotation:1.0.0-rc02
| +--- androidx.fragment:fragment:1.0.0-rc02
| | +--- androidx.core:core:1.0.0-rc02 (*)
| | +--- androidx.legacy:legacy-support-core-ui:1.0.0-rc02
| | | +--- androidx.annotation:annotation:1.0.0-rc02
| | | +--- androidx.core:core:1.0.0-rc02 (*)
| | | +--- androidx.legacy:legacy-support-core-utils:1.0.0-rc02 (*)
| | | +--- androidx.customview:customview:1.0.0-rc02
| | | | +--- androidx.annotation:annotation:1.0.0-rc02
| | | | \--- androidx.core:core:1.0.0-rc02 (*)
| | | +--- androidx.viewpager:viewpager:1.0.0-rc02
| | | | +--- androidx.annotation:annotation:1.0.0-rc02
| | | | +--- androidx.core:core:1.0.0-rc02 (*)
| | | | \--- androidx.customview:customview:1.0.0-rc02 (*)
| | | +--- androidx.coordinatorlayout:coordinatorlayout:1.0.0-rc02
| | | | +--- androidx.annotation:annotation:1.0.0-rc02
| | | | +--- androidx.core:core:1.0.0-rc02 (*)
| | | | \--- androidx.customview:customview:1.0.0-rc02 (*)
| | | +--- androidx.drawerlayout:drawerlayout:1.0.0-rc02
| | | | +--- androidx.annotation:annotation:1.0.0-rc02
| | | | +--- androidx.core:core:1.0.0-rc02 (*)
| | | | \--- androidx.customview:customview:1.0.0-rc02 (*)
| | | +--- androidx.slidingpanelayout:slidingpanelayout:1.0.0-rc02
| | | | +--- androidx.annotation:annotation:1.0.0-rc02
| | | | +--- androidx.core:core:1.0.0-rc02 (*)
| | | | \--- androidx.customview:customview:1.0.0-rc02 (*)
| | | +--- androidx.interpolator:interpolator:1.0.0-rc02
| | | | \--- androidx.annotation:annotation:1.0.0-rc02
| | | +--- androidx.swiperefreshlayout:swiperefreshlayout:1.0.0-rc02
| | | | +--- androidx.annotation:annotation:1.0.0-rc02
| | | | +--- androidx.core:core:1.0.0-rc02 (*)
| | | | \--- androidx.interpolator:interpolator:1.0.0-rc02 (*)
| | | +--- androidx.asynclayoutinflater:asynclayoutinflater:1.0.0-rc02
| | | | +--- androidx.annotation:annotation:1.0.0-rc02
| | | | \--- androidx.core:core:1.0.0-rc02 (*)
| | | \--- androidx.cursoradapter:cursoradapter:1.0.0-rc02 (*)
| | +--- androidx.legacy:legacy-support-core-utils:1.0.0-rc02 (*)
| | +--- androidx.annotation:annotation:1.0.0-rc02
| | +--- androidx.loader:loader:1.0.0-rc02 (*)
| | \--- androidx.lifecycle:lifecycle-viewmodel:2.0.0-rc01
| +--- androidx.vectordrawable:vectordrawable:1.0.0-rc02
| | +--- androidx.annotation:annotation:1.0.0-rc02
| | \--- androidx.core:core:1.0.0-rc02 (*)
| \--- androidx.vectordrawable:vectordrawable-animated:1.0.0-rc02
| +--- androidx.vectordrawable:vectordrawable:1.0.0-rc02 (*)
| \--- androidx.legacy:legacy-support-core-ui:1.0.0-rc02 (*)
+--- androidx.annotation:annotation:1.0.0-rc02
+--- androidx.core:core:1.0.0-rc02 (*)
+--- androidx.collection:collection:1.0.0-rc02 (*)
+--- androidx.lifecycle:lifecycle-runtime:2.0.0-rc01 (*)
+--- androidx.lifecycle:lifecycle-common:2.0.0-rc01
+--- androidx.arch.core:core-common:2.0.0-rc01 (*)
+--- androidx.versionedparcelable:versionedparcelable:1.0.0-rc02 (*)
+--- androidx.cursoradapter:cursoradapter:1.0.0-rc02 (*)
+--- androidx.legacy:legacy-support-core-utils:1.0.0-rc02 (*)
+--- androidx.documentfile:documentfile:1.0.0-rc02 (*)
+--- androidx.loader:loader:1.0.0-rc02 (*)
+--- androidx.lifecycle:lifecycle-livedata-core:2.0.0-rc01 (*)
+--- androidx.arch.core:core-runtime:2.0.0-rc01 (*)
+--- androidx.lifecycle:lifecycle-viewmodel:2.0.0-rc01
+--- androidx.localbroadcastmanager:localbroadcastmanager:1.0.0-rc02 (*)
+--- androidx.print:print:1.0.0-rc02 (*)
+--- androidx.fragment:fragment:1.0.0-rc02 (*)
+--- androidx.legacy:legacy-support-core-ui:1.0.0-rc02 (*)
+--- androidx.customview:customview:1.0.0-rc02 (*)
+--- androidx.viewpager:viewpager:1.0.0-rc02 (*)
+--- androidx.coordinatorlayout:coordinatorlayout:1.0.0-rc02 (*)
+--- androidx.drawerlayout:drawerlayout:1.0.0-rc02 (*)
+--- androidx.slidingpanelayout:slidingpanelayout:1.0.0-rc02 (*)
+--- androidx.interpolator:interpolator:1.0.0-rc02 (*)
+--- androidx.swiperefreshlayout:swiperefreshlayout:1.0.0-rc02 (*)
+--- androidx.asynclayoutinflater:asynclayoutinflater:1.0.0-rc02 (*)
+--- androidx.vectordrawable:vectordrawable:1.0.0-rc02 (*)
+--- androidx.vectordrawable:vectordrawable-animated:1.0.0-rc02 (*)
+--- android.arch.navigation:navigation-fragment:1.0.0-alpha05
| +--- android.arch.navigation:navigation-runtime:1.0.0-alpha05
| | +--- android.arch.navigation:navigation-common:1.0.0-alpha05
| | | \--- androidx.core:core:1.0.0-rc01 -> 1.0.0-rc02 (*)
| | \--- androidx.legacy:legacy-support-core-utils:1.0.0-rc01 -> 1.0.0-rc02 (*)
| \--- androidx.fragment:fragment:1.0.0-rc01 -> 1.0.0-rc02 (*)
+--- android.arch.navigation:navigation-runtime:1.0.0-alpha05 (*)
+--- android.arch.navigation:navigation-common:1.0.0-alpha05 (*)
+--- android.arch.navigation:navigation-ui:1.0.0-alpha05
| +--- android.arch.navigation:navigation-runtime:1.0.0-alpha05 (*)
| \--- com.google.android.material:material:1.0.0-rc01 -> 1.0.0-rc02
| +--- androidx.annotation:annotation:1.0.0-rc02
| +--- androidx.core:core:1.0.0-rc02 (*)
| +--- androidx.legacy:legacy-support-core-ui:1.0.0-rc02 (*)
| +--- androidx.legacy:legacy-support-core-utils:1.0.0-rc02 (*)
| +--- androidx.fragment:fragment:1.0.0-rc02 (*)
| +--- androidx.transition:transition:1.0.0-rc02
| | +--- androidx.annotation:annotation:1.0.0-rc02
| | \--- androidx.core:core:1.0.0-rc02 (*)
| +--- androidx.appcompat:appcompat:1.0.0-rc02 (*)
| +--- androidx.cardview:cardview:1.0.0-rc02
| | \--- androidx.annotation:annotation:1.0.0-rc02
| \--- androidx.recyclerview:recyclerview:1.0.0-rc02
| +--- androidx.annotation:annotation:1.0.0-rc02
| +--- androidx.core:core:1.0.0-rc02 (*)
| \--- androidx.legacy:legacy-support-core-ui:1.0.0-rc02 (*)
+--- com.google.android.material:material:1.0.0-rc02 (*)
+--- androidx.transition:transition:1.0.0-rc02 (*)
+--- androidx.cardview:cardview:1.0.0-rc02 (*)
+--- androidx.recyclerview:recyclerview:1.0.0-rc02 (*)
+--- android.arch.navigation:navigation-fragment-ktx:1.0.0-alpha05
| +--- org.jetbrains.kotlin:kotlin-stdlib:1.2.50 -> 1.2.70 (*)
| +--- android.arch.navigation:navigation-fragment:1.0.0-alpha05 (*)
| \--- android.arch.navigation:navigation-runtime-ktx:1.0.0-alpha05
| +--- org.jetbrains.kotlin:kotlin-stdlib:1.2.50 -> 1.2.70 (*)
| +--- android.arch.navigation:navigation-runtime:1.0.0-alpha05 (*)
| \--- android.arch.navigation:navigation-common-ktx:1.0.0-alpha05
| +--- org.jetbrains.kotlin:kotlin-stdlib:1.2.50 -> 1.2.70 (*)
| \--- android.arch.navigation:navigation-common:1.0.0-alpha05 (*)
+--- android.arch.navigation:navigation-runtime-ktx:1.0.0-alpha05 (*)
+--- android.arch.navigation:navigation-common-ktx:1.0.0-alpha05 (*)
+--- android.arch.navigation:navigation-ui-ktx:1.0.0-alpha05
| +--- org.jetbrains.kotlin:kotlin-stdlib:1.2.50 -> 1.2.70 (*)
| +--- android.arch.navigation:navigation-ui:1.0.0-alpha05 (*)
| \--- android.arch.navigation:navigation-runtime-ktx:1.0.0-alpha05 (*)
+--- androidx.core:core-ktx:1.0.0-rc02
| +--- org.jetbrains.kotlin:kotlin-stdlib:1.2.50 -> 1.2.70 (*)
| +--- androidx.annotation:annotation:1.0.0-rc02
| \--- androidx.core:core:1.0.0-rc02 (*)
+--- androidx.constraintlayout:constraintlayout:1.1.3
| \--- androidx.constraintlayout:constraintlayout-solver:1.1.3
+--- androidx.constraintlayout:constraintlayout-solver:1.1.3
+--- io.reactivex.rxjava2:rxjava:2.2.0
| \--- org.reactivestreams:reactive-streams:1.0.2
+--- org.reactivestreams:reactive-streams:1.0.2
+--- io.reactivex.rxjava2:rxandroid:2.1.0
| \--- io.reactivex.rxjava2:rxjava:2.2.0 (*)
+--- io.reactivex.rxjava2:rxkotlin:2.3.0
| +--- io.reactivex.rxjava2:rxjava:2.2.0 (*)
| \--- org.jetbrains.kotlin:kotlin-stdlib:1.2.60 -> 1.2.70 (*)
+--- org.greenrobot:eventbus:3.1.1
+--- joda-time:joda-time:2.10
+--- com.squareup:javapoet:1.11.1
+--- androidx.room:room-runtime:2.0.0-rc01
| +--- androidx.room:room-common:2.0.0-rc01
| | \--- androidx.annotation:annotation:1.0.0-rc01 -> 1.0.0-rc02
| +--- androidx.sqlite:sqlite-framework:2.0.0-rc01
| | +--- androidx.annotation:annotation:1.0.0-rc01 -> 1.0.0-rc02
| | \--- androidx.sqlite:sqlite:2.0.0-rc01
| | \--- androidx.annotation:annotation:1.0.0-rc01 -> 1.0.0-rc02
| +--- androidx.sqlite:sqlite:2.0.0-rc01 (*)
| +--- androidx.arch.core:core-runtime:2.0.0-rc01 (*)
| \--- androidx.legacy:legacy-support-core-utils:1.0.0-rc01 -> 1.0.0-rc02 (*)
+--- androidx.room:room-common:2.0.0-rc01 (*)
+--- androidx.sqlite:sqlite-framework:2.0.0-rc01 (*)
+--- androidx.sqlite:sqlite:2.0.0-rc01 (*)
+--- androidx.room:room-rxjava2:2.0.0-rc01
| +--- io.reactivex.rxjava2:rxjava:2.0.6 -> 2.2.0 (*)
| +--- androidx.room:room-common:2.0.0-rc01 (*)
| +--- androidx.room:room-runtime:2.0.0-rc01 (*)
| +--- androidx.arch.core:core-runtime:2.0.0-rc01 (*)
| \--- androidx.legacy:legacy-support-core-utils:1.0.0-rc01 -> 1.0.0-rc02 (*)
+--- com.google.dagger:dagger:2.17
| \--- javax.inject:javax.inject:1
+--- javax.inject:javax.inject:1
+--- org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.2.70 (*)
+--- project :base
| +--- androidx.appcompat:appcompat:1.0.0-rc02 (*)
| +--- android.arch.navigation:navigation-fragment:1.0.0-alpha05 (*)
| +--- android.arch.navigation:navigation-ui:1.0.0-alpha05 (*)
| +--- android.arch.navigation:navigation-fragment-ktx:1.0.0-alpha05 (*)
| +--- android.arch.navigation:navigation-ui-ktx:1.0.0-alpha05 (*)
| +--- androidx.core:core-ktx:1.0.0-rc02 (*)
| +--- com.google.android.material:material:1.0.0-rc02 (*)
| +--- androidx.constraintlayout:constraintlayout:1.1.3 (*)
| +--- io.reactivex.rxjava2:rxjava:2.2.0 (*)
| +--- io.reactivex.rxjava2:rxandroid:2.1.0 (*)
| +--- io.reactivex.rxjava2:rxkotlin:2.3.0 (*)
| +--- org.greenrobot:eventbus:3.1.1
| \--- joda-time:joda-time:2.10
+--- com.squareup:javapoet:1.11.1
+--- androidx.room:room-runtime:2.0.0-rc01 (*)
+--- androidx.room:room-rxjava2:2.0.0-rc01 (*)
\--- com.google.dagger:dagger:2.17 (*)
Gradle 版本是 4.10.1。
我已经尝试了类似问题的所有建议,包括删除 gradle 缓存目录和无效/重新启动,没有任何帮助。
UPD。我注意到如果存在这两个依赖项,同步将失败:
implementation "androidx.room:room-runtime:$room_version"
kapt "androidx.room:room-compiler:$room_version"
我还应该尝试什么?
最佳答案
所以我发现问题出在 Room 上:它使用旧版本的传递依赖项。
我已经通过强制传递依赖版本修复了它:
implementation('androidx.annotation:annotation:1.0.0-rc02') {
force = true
}
implementation('androidx.legacy:legacy-support-core-utils:1.0.0-rc02') {
force = true
}
implementation("io.reactivex.rxjava2:rxjava:$rxjava_version") {
force = true
}
关于android - 无法解析 ':feature@debugFeature/compileClasspath' : Could not resolve androidx. 注释 :annotation:1. 0.0-rc01 的依赖关系,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52339944/
我很好奇这两个模块在实践中有什么区别吗?如果不是,为什么会有这两个副本? 最佳答案 std::rc::Rc只是 alloc::rc::Rc 的再导出.你可以在src/std/lib.rs中看到整个rc
我注意到 rust 书推荐使用 Rc::clone(&rc)在rc.clone()如下: use std::rc::Rc; let five = Rc::new(5); // recommended
我需要将我现有的 Angular 2 RC 1 应用程序迁移到 Angular 2 RC 4。作为其中的一部分,我还需要将我现有的表单迁移到 Angular 2 RC 4 New Forms。 任何人
如何测试 Selenium RC 中哪个元素具有焦点? 最佳答案 当我遇到同样的问题时,出于各种原因,其他答案都不适合我。我最终做了以下操作(使用 Java 中的 Selenium 2.0 WebDr
Horse是一个实现 Animal 的结构特征。我有一个 Rc和一个需要接收 Rc 的函数, 所以我想从 Rc 转换至 Rc . 我这样做了: use std::rc::Rc; struct Hors
代码如下所示: // Simplified pub trait Field: Send + Sync + Clone { fn name(&self); } #[deriving(Clone)
在 /etc/rc[06].d/ 目录中的程序启动之后,系统的启动就已经完成。不过,我们总有一些程序是需要在系统启动之后随着系统一起启动的。这时我们并不需要自己把需要启动的服务链接到 /etc/rc3
我正在使用 selenium rc,我需要测试 flash。我需要单击 Flash 播放器上的允许按钮。 我只是需要一些帮助才能开始? 最佳答案 通常,除非在 Flash 开发人员的帮助下将 Sele
我知道 PhantomData旨在使用数据类型定义中的生命周期或类型参数,否则这些参数将不会被使用。我最近在查看 Rc 的定义在Rust std lib并注意到它似乎使用了 PhantomData ,
谁能给我解释一下为什么Rc<>不是 Copy ? 我正在编写使用大量共享指针的代码,并且必须输入 .clone()总是让我心烦意乱。 在我看来Rc<>应该只包含一个固定大小的指针,所以类型本身应该是
我想创建一个 Rc因为我想减少跟踪访问 Rc 的 2 个指针的间接访问需要。我需要使用 Rc因为我确实拥有共享所有权。我在 another question 中详细说明关于我的字符串类型的更具体的问题
Selenium IDE 和 Selenium RC 的功能有什么区别? 最佳答案 Selenium IDE 是一个 firefox 插件,它为您提供了用于记录测试的基本记录器。这些测试使用关键字记录
我正在尝试使用 Selenium RC (Java) 在 Paypal-Sandbox 上购买东西,但它不起作用。 我用 Selenium IDE (Firefox AddOn) 试过了,它确实有效。
我有一个 Rc>但需要得到一个Rc从中。像这样的东西: let rc_option: Rc> = Rc::new(Ok(value)); let ok_value: Rc = rc_option.ma
我知道在 matplotlib 中,您可以使用 rc 或 rcParams 来自定义绘图的样式。但是,这些函数似乎存在于两个级别,例如 matplotlib.rc 与 matplotlib.pyplo
Rust 文档涵盖 Rc>相当广泛,但不涉及 RefCell> ,我现在遇到了。 这些是否有效地给出了相同的结果?它们之间有重要区别吗? 最佳答案 Do these effectively give
我有一段代码是这样的: use std::cell::RefCell; use std::rc::Rc; struct A(bool); impl A { fn get_ref(&self)
Rust 文档涵盖 Rc>相当广泛,但不涉及 RefCell> ,我现在遇到了。 这些是否有效地给出了相同的结果?它们之间有重要区别吗? 最佳答案 Do these effectively give
我试图获得引用计数 Rc从 HashMap 并将其放入不同的容器 ( Vec )。 原以为这会起作用(通过增加引用计数),但我却收到了一个“expected struct std::rc::Rc ,
前言 我们在ubuntu下要把一个程序加入开机启动,一般可以通过修改rc.local来完成,但ubuntu下有两个rc.local文件。分别是/etc/rc.local和/etc/init.d/r
我是一名优秀的程序员,十分优秀!