Shylajhaa
Shylajhaa

Reputation: 1688

Cannot resolve symbol 'Firebase'

I'm using android studio version 2.3 and have connected firebase. but an error is occurring stating that the symbol firebase cannot be resolved. please help me through this.

Upvotes: 1

Views: 2147

Answers (2)

Jaime Montoya
Jaime Montoya

Reputation: 7711

In one of my classes, I had this:

import com.firebase.jobdispatcher.Constraint;

Android Studio was highlighting the word firebase in red and the error message was: Cannot resolve symbol 'firebase'. The solution was to go to the dependencies {} section in app/build.gradle and add this:

compile 'com.firebase:firebase-jobdispatcher:0.6.0'

The error was fixed.

Upvotes: 1

mohamed habib
mohamed habib

Reputation: 53

Add this in your build.gradle : compile 'com.firebase:firebase-client-android:2.5.2'

Upvotes: 2

Related Questions