如何撤消androidx迁移?

问题描述

我尝试迁移我的项目,但失败了。我需要支持,但是我没有备份。

在stackoverflow或其他站点上尝试解决方案,但没有任何变化。我撤消了每个活动的导入用法,但出现了这样的错误


此项目使用AndroidX依赖项,但未启用'android.useAndroidX'属性。在gradle.properties文件中将此属性设置为true,然后重试。 检测到以下AndroidX依赖项:androidx.annotation:annotation:1.0.0


请帮助。

    apply plugin: 'com.android.application'
apply plugin: 'com.google.firebase.crashlytics'

android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "com.redhouse.bequizer"
        minSdkVersion 21
        targetSdkVersion 28
        versionCode 121
        versionName "2.1.4"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    packagingOptions {
        exclude 'META-INF/proguard/androidx-annotations.pro'
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'),'proguard-rules.pro'
        }
    }
}

repositories {
    maven { url 'https://jitpack.io' }
    google()
    jcenter()
}
dependencies {
    implementation fileTree(dir: 'libs',include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    implementation 'com.android.support:support-v4:28.0.0'

//    testImplementation 'junit:junit:4.12'
//    androidTestImplementation 'com.android.support.test:runner:1.0.2'
//    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    implementation 'de.hdodenhof:circleimageview:2.2.0'
    //recyclerview
    implementation 'com.android.support:recyclerview-v7:28.0.0'
    implementation 'com.android.support:cardview-v7:28.0.0'
    //retrofit
    implementation 'com.google.code.gson:gson:2.8.5'
    implementation 'com.squareup.retrofit2:retrofit:2.4.0'
    implementation 'com.squareup.retrofit2:converter-gson:2.4.0'
    //butterknife
    implementation 'com.jakewharton:butterknife:8.8.1'
    implementation 'com.android.support:design:28.0.0'
    annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
    //mpchart
    implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0-alpha'
    //progress
    implementation 'com.akexorcist:RoundCornerProgressBar:2.0.3'

    implementation 'com.github.bumptech.glide:glide:4.8.0'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'
    implementation 'com.github.therealshabi:AutoImageFlipper:v1.4.1'
    implementation 'com.github.smarteist:autoimageslider:1.2.0'

//firebase
    implementation 'com.google.firebase:firebase-core:16.0.7'
    implementation 'com.google.android.gms:play-services-maps:16.1.0'
    implementation 'com.google.firebase:firebase-messaging:17.4.0'
    implementation 'com.google.android.gms:play-services-location:16.0.0'
    implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'
    implementation 'com.google.firebase:firebase-analytics:16.3.0'

    //animated loading
    implementation 'com.wssholmes.stark:circular-score:0.1.1'
    //pdf
    implementation 'es.voghdev.pdfviewpager:library:1.0.6'
    implementation 'com.github.barteksc:android-pdf-viewer:2.8.2'

    implementation 'org.apache.commons:commons-collections4:4.1'


    ////

    implementation 'com.eightbitlab:bottomnavigationbar:0.9.6'


    implementation 'de.hdodenhof:circleimageview:3.0.0'
    implementation 'android.arch.work:work-runtime:1.0.1'

    def work_version="1.0.0-alpha04"
    implementation "android.arch.work:work-runtime:$work_version"
    implementation "android.arch.work:work-firebase:$work_version"

    implementation 'com.squareup.okhttp3:logging-interceptor:3.3.1'


}
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.crashlytics'

编辑:

this is where

编辑2:

androidx.collection:collection:1.0.0,androidx.versionedparcelable:versionedparcelable:1.0.0,androidx.core:core:1.0.0,androidx.lifecycle:lifecycle-common:2.0.0,androidx.arch.core:core-common:2.0.0,androidx.lifecycle:lifecycle-runtime:2.0.0,androidx.annotation:annotation:1.0.0

我在哪里可以找到它们,它们不在我的手中。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...