2017-12-01 21 views
0

私はFirebaseをクラウドサーバとして使用しています。私は私のデシベルの単純なリストを作りたいが、私は依存関係があるFirebase - シンボルを解決できません

シンボルFirebasesを解決できません解決することはできませんよ:あなたは "追加プラグインを適用する必要があり

dependencies { 
    implementation fileTree(dir: 'libs', include: ['*.jar']) 
    implementation 'com.android.support:appcompat-v7:26.1.0' 
    implementation 'com.android.support.constraint:constraint-layout:1.0.2' 
    implementation 'com.google.firebase:firebase-database:11.4.0' 
    testImplementation 'junit:junit:4.12' 
    androidTestImplementation 'com.android.support.test:runner:1.0.1' 
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' 
    compile 'com.google.firebase:firebase-core:11.4.0' 
    compile 'com.google.firebase:firebase-database:11.4.0' 
} 
+1

Firebaseコンソールに接続しましたか?また、コンパイルと実装 'com.google.firebase:firebase-database:11.4.0'が実装されていません。 –

答えて

0

:「com.google .gms.google-サービスモジュールのGradleファイルや使用中の依存関係の後に」:プロジェクトのGradleファイルに

repositories { 
    maven { 
     url "https://maven.google.com" 
    } 
} 

+0

私はそれを追加しましたが、エラーを作り続けます。 –

+0

次に、 "実装" com.google.firebase:firebase-database:11.4.0 '"を削除して、エラーが持続するエラー – Nick

+0

を確認してください。 –

関連する問題