我正在尝试从couchbase.lite 1.4.0更新到2.0.0,但是当我更新并同步我的build.gradle文件时,我似乎一直无法解析符号'我的导入错误(AndroidContext,Document和Database)。在查看dcoumentation之后,看来我所做的所有更改都是:
implementation 'com.couchbase.lite:couchbase-lite-android:1.4.0'
到
implementation 'com.couchbase.lite:couchbase-lite-android:2.0.0'
除非我错过了其他的东西......
这是我的完整build.grade文件。
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
defaultConfig {
applicationId "com.my.app"
minSdkVersion 19
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support:design:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
implementation 'com.couchbase.lite:couchbase-lite-android:2.0.0'
implementation 'com.couchbase.lite:couchbase-lite-android-forestdb:1.4.1'
}