当前位置: 首页 > 知识库问答 >
问题:

解决失败:androidx

廖夜洛
2023-03-14

我回到我的android项目来完成它,突然我得到这个错误信息说

“无法解析受Androidx影响的模块:

"错误:无法解决:androidx。受影响的模块:应用程序"

这是我的身材。渐变文件

apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-android'
apply plugin: 'com.google.gms.google-services'

android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "com.example.project"
        minSdkVersion 18
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner 
"androidx.activity_home.runner.AndroidJUnitRunner"
        multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
    }
}
androidExtensions {
    experimental = true
}
}

repositories {
    maven { url 'https://maven.fabric.io/public' }
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0-alpha04'
implementation 'androidx.recyclerview:recyclerview:1.1.0-alpha03'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'com.google.android.material:material:1.1.0-alpha05'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'de.hdodenhof:circleimageview:3.0.0'
implementation 'androidx.multidex:multidex:2.0.1'
implementation 'com.xwray:groupie:2.3.0'
implementation 'com.xwray:groupie-kotlin-android-extensions:2.3.0'
implementation 'com.squareup.picasso:picasso:2.71828'

implementation 'com.google.firebase:firebase-core:16.0.8'
implementation 'com.google.firebase:firebase-firestore:18.2.0'
implementation 'com.google.firebase:firebase-auth:16.2.0'
implementation 'com.google.firebase:firebase-storage:16.1.0'
implementation 'com.google.firebase:firebase-database:16.1.0'
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.9'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'android.arch.navigation:navigation-fragment:1.0.0'
implementation "org.jetbrains.anko:anko-commons:0.10.4"

testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.activity_home:runner:1.1.2-alpha02'
androidTestImplementation 'androidx.activity_home.espresso:espresso-core:3.2.0-alpha02'
}

共有1个答案

公羊宗清
2023-03-14

试试这个,应该行得通

androidTestImplementation 'androidx.test:runner:1.2.0-alpha03'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0-alpha03'
 类似资料:
  • 本文向大家介绍Android bindservice失败解决方法,包括了Android bindservice失败解决方法的使用技巧和注意事项,需要的朋友参考一下 Android bindservice失败解决方法 现象: 相同的代码以前使用一直很正常,但最近在项目中使用却一直绑定失败,bindservice返回false。 原因: 使用了TabActivity, TabActivity里的子Ac

  • 我试图在我刚刚创建的flutter项目中执行pub get命令,但它开始出现这个错误: pubspec.yaml

  • 在添加依赖项实现的com时。阿佐夫特。转盘:转盘:1.2。4'对于我的项目,Android Studio抛出的异常未能解决:recyclerview-v7。然后我尝试为recyclerview添加依赖项。仍然得到相同的错误。

  • 本文向大家介绍详解pandas赋值失败问题解决,包括了详解pandas赋值失败问题解决的使用技巧和注意事项,需要的朋友参考一下 一、pandas对整列赋值 这个比较正常,一般直接赋值就可以: 二、pandas对非整列赋值 1、用单个值赋值 是不是很奇怪,没有赋值成功!! 2、用多个值赋值 报错了!!提示说,要用.loc赋值,那我们试一下。 3、.loc赋值 报错,这是因为shape原因。 三、用数

  • 本文向大家介绍svn 清理失败 (cleanup 失败) 的快速解决方法,包括了svn 清理失败 (cleanup 失败) 的快速解决方法的使用技巧和注意事项,需要的朋友参考一下 1、cmd指令,进入.svn目录,找到wc.db文件 sqlite 3 打开 2、 对 svn源代码目录 右键, clean up, 稍等1至5分钟左右,然后会提示 清理成功 以上就是小编为大家带来的svn 清理失败 (

  • 本文向大家介绍Docker push镜像失败解决方法,包括了Docker push镜像失败解决方法的使用技巧和注意事项,需要的朋友参考一下 Docker push镜像失败的问题。 以下是输入push自己的tomcat后出现了失败 以下是已经执行过的方案:将private hub改变为 public,不能解决这个问题。 解决方案: 这里尤其注意,如果命名方式不对,是不行的。 以我自己的为例: 我do