gpt4 book ai didi

android - 显示请确保您在类路径中具有必需的依赖项:com.google.android.gms.vision.barcode.Barcode类

转载 作者:行者123 更新时间:2023-12-03 05:33:37 25 4
gpt4 key购买 nike

一切工作正常,直到我添加implementation 'com.google.android.gms:play-services-ads:18.2.0'此依赖项以在应用内展示广告。

构建应用程序时出现以下错误消息。如果我删除广告库,则会删除错误。

Supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath:
class com.google.android.gms.vision.barcode.Barcode, unresolved supertypes: com.google.android.gms.internal.zzbck

应用程序级别build.gradle
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'

android {
compileSdkVersion 29
defaultConfig {
applicationId "com.creatorisone.chargingtheftsecurityalarm"
minSdkVersion 16
targetSdkVersion 29
versionCode 1
versionName "1.04"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
multiDexEnabled true

}
buildTypes {
release {
shrinkResources true
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), "proguard-rules.pro"
}
}
configurations {
cleanedAnnotations
compile.exclude group: 'org.jetbrains', module: 'annotations'
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.google.android.material:material:1.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation 'org.jetbrains:annotations-java5:17.0.0'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.50"
implementation 'xyz.belvi.mobilevision:barcodescanner:2.0.3'
implementation 'androidx.fragment:fragment:1.2.0-alpha02'
implementation 'com.google.zxing:core:3.3.3'
implementation 'com.journeyapps:zxing-android-embedded:3.2.0@aar'
implementation 'com.google.android.gms:play-services-ads:18.2.0'

}

repositories {
mavenCentral()
}

我已经尝试了StackOverflow上提供的多种解决方案,但在我的情况下没有任何效果
  • "Error: Supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath"
  • error in Location Request class in android with kotlin
  • error: supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath
  • "Supertypes of the following classes cannot be resolved.” in Task:app:buildInfoGeneratorDebug
  • 最佳答案

    我也遇到了同样的问题,并通过添加解决了它
    实现'com.google.android.gms:play-services-vision:15.0.2'

    关于android - 显示请确保您在类路径中具有必需的依赖项:com.google.android.gms.vision.barcode.Barcode类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57800299/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com