尝试将我在 android 中的项目与 firebase 连接,但是当添加依赖项并运行项目时,出现错误。
我尝试了不同版本的 firebase 核心,但仍然出现相同的错误消息,我也提高了 API 和最小 SDK 的级别,但它仍然无法正常工作。
渐变代码是:
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
apply plugin: 'com.amazonaws.appsync'
repositories {
maven { url 'https://maven.fabric.io/public' }
}
apply plugin: 'com.android.application'
android {
lintOptions {
checkReleaseBuilds false
// Or, if you prefer, you can continue to check for errors in release builds,
// but continue the build even when errors are found:
abortOnError false
}
compileSdkVersion 28
defaultConfig {
applicationId 'com.example.example'
minSdkVersion 21
targetSdkVersion 28
versionCode 26
versionName "2.5"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
implementation 'com.android.support:design:27.1.1'
implementation 'com.android.support:support-vector-drawable:27.1.1'
implementation 'com.android.support:multidex:1.0.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
implementation('com.crashlytics.sdk.android:crashlytics:2.9.6@aar') {
尝试安装应用程序时显示此错误:
编译失败;有关详细信息,请参阅编译器错误输出。
错误:无法访问 com.google.android.gms.internal.zzbck 的 zzbck 类文件未找到
德玛西亚99
相关分类