Tag: firebase gradle

为什么添加谷歌的火力点引起Dex错误?

添加 实现“com.google.firebase:firebase-core:11.8.0” 到我的模块gradle文件给我错误提示我有超过64K方法在我的项目。 我的猜测是,我以某种方式实现了整个谷歌播放服务,虽然增加 实现’com.google.android.gms:play-services-maps:11.8.0′ 要么 实现’com.google.android.gms:play-services-location:11.8.0′ 给我没有错误。 格拉德尔: apply plugin: ‘com.android.application’ apply plugin: ‘kotlin-android’ apply plugin: ‘kotlin-android-extensions’ android { compileSdkVersion 26 buildToolsVersion “26.0.2” defaultConfig { applicationId “se.workshop.collect” minSdkVersion 21 targetSdkVersion 26 versionCode 1 versionName “1.0” testInstrumentationRunner “android.support.test.runner.AndroidJUnitRunner” vectorDrawables.useSupportLibrary = true } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile(‘proguard-android.txt’), ‘proguard-rules.pro’ } } } dependencies […]

以下类的超types无法解析

我有android app在kotlin这是给我这个错误.. 错误:以下类的超types无法解析。 请确保您在类路径中具有所需的依赖关系:com.google.firebase.auth.FirebaseAuth,未解析的超types:com.google.android.gms.internal.aad 和这个 错误:执行任务’:app:compileDebugKotlin’失败。 编译错误。 查看日志了解更多详情 这是我的应用程序模块 apply plugin: ‘com.android.application’ apply plugin: ‘kotlin-android’ apply plugin: ‘kotlin-android-extensions’ android { compileSdkVersion 26 defaultConfig { applicationId “appname” minSdkVersion 15 targetSdkVersion 26 versionCode 1 versionName “1.0” testInstrumentationRunner “android.support.test.runner.AndroidJUnitRunner” } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile(‘proguard-android.txt’), ‘proguard-rules.pro’ } } } dependencies { implementation fileTree(dir: ‘libs’, include: […]