了解并确定要使用的版本,目前有库存

Posted

技术标签:

【中文标题】了解并确定要使用的版本,目前有库存【英文标题】:Understanding and figurering out which versions to use, currently stock 【发布时间】:2021-09-24 08:05:17 【问题描述】:

我正在尝试了解和调试哪个版本可以正确使用,但是搜索和尝试还没有做太多。

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'


谁能告诉我如何调试它,从而知道要使用哪些版本?

谢谢,强调文字

【问题讨论】:

【参考方案1】:

在网站上进行了更多研究,我找到了一个我之前监督过的答案,但我在这篇文章的帮助下得到了它的帮助。 (确实也更改了该帖子中其他答案中的内容,因此您可能需要从该帖子中进行更多更改)

https://***.com/a/68061290/16448146

【讨论】:

以上是关于了解并确定要使用的版本,目前有库存的主要内容,如果未能解决你的问题,请参考以下文章

wms软件如何确定库存量?

我如何确定状态并在 PHP MySQL 中执行操作

如何告诉 Cargo 使用 git 标签来确定 crate 版本?

采用事件采购的库存计数

方向的确定

我目前正在检查 UIAlertController 是不是存在以确定正在使用的操作系统版本。有没有更有效的方法来做到这一点?