【发布时间】:2017-10-10 18:03:41
【问题描述】:
我无法导入“import com.google.firebase.auth.FirebaseAuth;”用于我的 Android Studio。
我已经检查了所有内容。所有构建 gradle 都设置为最新的 Firebase 版本。
允许我做的唯一导入是“FirebaseAuthException”和“FirebaseUser”
谁来帮帮我。谢谢。
项目构建.Gradle
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'com.google.gms:google-services:3.1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Build.gradle(Module:app)
repositories {
maven {
url "https://maven.google.com"
}
maven { url "https://jitpack.io" }
}
android {
compileSdkVersion 26
buildToolsVersion "26.0.1"
defaultConfig {
applicationId "com.example.rick.teddyfy"
minSdkVersion 23
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 {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:26.+'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
//Design layout
compile 'com.android.support:design:26.1.0'
compile 'com.github.ittianyu:BottomNavigationViewEx:1.2.3'
compile 'de.hdodenhof:circleimageview:2.1.0'
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
//firebase authentication
'com.google.firebase:firebase-auth:10.2.6'
}
apply plugin: 'com.google.gms.google-services'
【问题讨论】:
-
发布你的 build.gradle
-
你可以在这里看得更清楚:prntscr.com/gvqmjtprntscr.com/gvqmr8
-
将整个文件发布为编辑,而不是评论
标签: android firebase android-gradle-plugin firebase-authentication