我在添加firebase
數據庫和Android版身份驗證代碼gradle
上遇到問題。error 30 firebase database and Android for build on gradle
0
A
回答
0
你應該添加到您的的build.gradle從應用程序。
buildscript { // ... dependencies { // ... classpath 'com.google.gms:google-services:3.0.0' } }
而且,到你應用/的build.gradle
apply plugin: 'com.android.application'
android {
// ...
}
dependencies {
// ...
compile 'com.google.firebase:firebase-core:10.2.1'
compile 'com.google.firebase:firebase-auth:10.2.1'
compile 'com.google.firebase:firebase-database:10.2.1'
// Getting a "Could not find" error? Make sure you have
// the latest Google Repository in the Android SDK manager
}
// ADD THIS AT THE BOTTOM
apply plugin: 'com.google.gms.google-services'
+0
am allready don it,any authers aideas plz –
+0
你可以添加你的build.gradle和app/build.gradle到你的文章嗎? –
相關問題
- 1. Gradle Build Error - Android Studio
- 2. Android Studio Gradle Build Error
- 3. PJSIP Library Build Error for Android
- 4. ionic build android error
- 5. 更新後的Android Studio Gradle Build Error
- 6. android ndk-build error
- 7. Android 7.0 Build Error
- 8. Android Studio Gradle Error - preDexDebug
- 9. Firebase DataBase
- 10. android studio gradle error app:processDebugResources
- 11. Android Build Error - Ubuntu&TaintDroid
- 12. Android Studio gradle build OutOfMemoryError
- 13. Logback not for INFO and ERROR
- 14. Ionic build android Error(processArmv7DebugResources)
- 15. Gradle error Android Studio
- 16. Android Studio Gradle Build Flavors
- 17. Android gradle build cordova 5.0.0
- 18. Build Launcher for Android
- 19. Android Build Gradle未完成
- 20. Android Studio gradle build for Android兼容Android - 5.0棒棒糖等
- 21. Android studio gradle build失敗
- 22. android gradle build error警告:無法找到可選庫:org.apache.http.legacy
- 23. Castle Windsor Build Error
- 24. Gradle Build失敗
- 25. Flask error initalizing database
- 26. UnitTest and Database
- 27. Xamarin Android源碼 - Build Error
- 28. ExtJS 5.1 Build Error(Yui Parse Error)
- 29. Tagsoup and XOM on android
- 30. Android clean build gradle任務
嘗試清潔項目。 –