了解并弄清楚要使用的版本,当前库存
Understanding and figurering out which versions to use, currently stock
我正在尝试了解和调试哪个版本是正确使用的,但是搜索和尝试还没有做太多。
e: C:/Users/user/.gradle/caches/transforms-2/files-2.1/7980168ed644bcd1d1c470386ac7a470/jetified-kotlin-stdlib-1.5.10.jar!/META-INF/kotlin-stdlib.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.16.
e: C:/Users/user/.gradle/caches/transforms-2/files-2.1/94de443224b407a2011360fdde6bd78b/jetified-core-ktx-1.6.0-api.jar!/META-INF/core-ktx_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.16.
e: C:/Users/user/.gradle/caches/transforms-2/files-2.1/c59da2ac229afacb8c7416996b012d0d/jetified-kotlin-stdlib-common-1.5.10.jar!/META-INF/kotlin-stdlib-common.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.16.
这些是我遇到的错误,对我来说我看起来需要将 implementation 'androidx.core:core-ktx:1.6.0'
更改为 1.1.16,但是找不到那个,这些是我的 build.gradle
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
android {
compileSdkVersion 30
defaultConfig {
applicationId "com.example.myapp"
minSdkVersion 19
targetSdkVersion 30
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.google.android.gms:play-services-location:18.0.0'
implementation 'androidx.appcompat:appcompat:1.3.0'
implementation 'androidx.core:core-ktx:1.6.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation 'com.google.android.gms:play-services-location:18.0.0'
implementation 'com.github.kittinunf.fuel:fuel:2.3.1' //Core package
implementation 'com.github.kittinunf.fuel:fuel-android:2.2.1' //Android
implementation 'com.github.kittinunf.fuel:fuel-gson:2.2.1' //Fuel Gson
implementation 'com.google.code.gson:gson:2.8.6' //Gson
implementation 'com.github.kittinunf.fuel:fuel:2.3.1'
}
谁能告诉我如何调试它,从而知道要使用哪些版本?
谢谢,强调文字
在网站上做一些更多的研究,我找到了一个我以前监督过的答案,但我在这个 post 的帮助下让它工作了。 (也更改了 post 中其他答案中的内容,因此您可能需要从 post 中更改更多内容)
我正在尝试了解和调试哪个版本是正确使用的,但是搜索和尝试还没有做太多。
e: C:/Users/user/.gradle/caches/transforms-2/files-2.1/7980168ed644bcd1d1c470386ac7a470/jetified-kotlin-stdlib-1.5.10.jar!/META-INF/kotlin-stdlib.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.16.
e: C:/Users/user/.gradle/caches/transforms-2/files-2.1/94de443224b407a2011360fdde6bd78b/jetified-core-ktx-1.6.0-api.jar!/META-INF/core-ktx_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.16.
e: C:/Users/user/.gradle/caches/transforms-2/files-2.1/c59da2ac229afacb8c7416996b012d0d/jetified-kotlin-stdlib-common-1.5.10.jar!/META-INF/kotlin-stdlib-common.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.16.
这些是我遇到的错误,对我来说我看起来需要将 implementation 'androidx.core:core-ktx:1.6.0'
更改为 1.1.16,但是找不到那个,这些是我的 build.gradle
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
android {
compileSdkVersion 30
defaultConfig {
applicationId "com.example.myapp"
minSdkVersion 19
targetSdkVersion 30
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.google.android.gms:play-services-location:18.0.0'
implementation 'androidx.appcompat:appcompat:1.3.0'
implementation 'androidx.core:core-ktx:1.6.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation 'com.google.android.gms:play-services-location:18.0.0'
implementation 'com.github.kittinunf.fuel:fuel:2.3.1' //Core package
implementation 'com.github.kittinunf.fuel:fuel-android:2.2.1' //Android
implementation 'com.github.kittinunf.fuel:fuel-gson:2.2.1' //Fuel Gson
implementation 'com.google.code.gson:gson:2.8.6' //Gson
implementation 'com.github.kittinunf.fuel:fuel:2.3.1'
}
谁能告诉我如何调试它,从而知道要使用哪些版本?
谢谢,强调文字
在网站上做一些更多的研究,我找到了一个我以前监督过的答案,但我在这个 post 的帮助下让它工作了。 (也更改了 post 中其他答案中的内容,因此您可能需要从 post 中更改更多内容)