0
我在我的Android application.My gradle這個入門的火力點的實時數據庫建立得很好,但只要我添加火力依賴和類路徑,這表明啓用搖籃 「離線模式」和同步項目。搖籃錯誤
我搜索了很多,但沒有找到解決方案。此外,Google Play服務和Google知識庫SDK的版本分別爲38和41。
我已經按照這個link的每一步。
我的應用程序gradle這個看起來像這 -
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:design:25.1.0'
compile 'com.google.firebase:firebase-database:10.0.1'
}
apply plugin: 'com.google.gms.google-services'
項目gradle這個看起來像這 -
classpath 'com.google.gms:google-services:3.0.0'
我這樣做了,但是當我禁用離線模式時,它表示啓用它,當啓用離線模式時,它表示禁用它。此外,我始終連接到互聯網。 –