Android Studio - Cannot resolve symbol 'firebase'

cannot resolve symbol r android studio
android studio cannot resolve symbol module
android studio cannot resolve symbol layout
android studio cannot resolve symbol activity
cannot resolve symbol xml android studio
cannot resolve symbol build android studio
cannot resolve symbol appcompatactivity
android studio cannot resolve symbol 'view

I'm currently upgrading an app to the new Firebase version. I followed the guide, included classpath 'com.google.gms:google-services:3.0.0' in the dependencies of my project build.gradle as well as compile 'com.google.firebase:firebase-core:9.0.1' among others in the dependencies of my module build.gradle and also apply plugin: 'com.google.gms.google-services' at the end of that file.

I get a "cannot resolve symbol 'firebase'" in my imports i.e. import com.google.firebase.database.DatabaseReference;. Those are not errors that appear when building, so this seems to be working, but they are visible in the code editor of Android Studio.

The imports worked just fine a couple of days ago (except for FirebaseAuth, which was under maintenance). I did not change anything about the code since then (except trying to upgrade to 9.0.2, which lead to the same result). The only thing I did was update some components of the Android SDK, but I can't remember which. The Android SDK as well as Google Repository and Google Play Services are of the newest version. Rebuilding, cleaning and invalidate caches / restart had no effect.

Any ideas how to fix this?


You need to add this dependency in your build.gradle(app)

compile 'com.firebase:firebase-client-android:2.5.0'

Android Studio suddenly cannot resolve symbols, In this video you'll learn how to fix "cannot resolve symbol" error in Android Studio​. The Duration: 1:05 Posted: Apr 16, 2016 cannot resolve symbol,خطأ r symbol cannot resolver,cannot resolve symbol r” in android studio,resolve symbol,webview,and solve webview,cannot find symbol,resolve deprecated uiwebview warning


Now with New Android Studio ,Its so easy to add Firebase to your Project.

Below are Simple Steps-

1. On Android Studio’s Tools menu, you’ll see an entry that reads Firebase.

2. Select this, and a Firebase Assistant pane will open to the side of your code editor:

3. On this pane, click the arrow beside ‘Authentication’, and you’ll see a step through for ‘Email and Password Authentication’.

4. Click the ‘Connect to Firebase’ button.

Your browser will open with a ‘Request for Permissions’ dialog:

5.Click ‘Allow’, and then after a ‘Success!’ screen, you’ll be given a dialog with which to connect to Firebase.

6.You will see Connected .Its Done !

For more on Firebase refer here.

How to Fix: cannot resolve symbol error in Android Studio, Make the AnimationDrawable object global in order to rectify your resolve symbol error. All the Best!!! 19.8k views · View 3 Upvoters · Answer  In this video you'll learn how to fix "cannot resolve symbol" error in Android Studio. The process is very simple, but takes a long time. Liked content of th


You can open and use the Assistant window in Android Studio by following these steps:

  1. Click Tools > Firebase to open the Assistant window. And it will guide you for sync firebase and your project.

How to solve the error 'Cannot Resolve Symbol' in Android Studio , When you work in Android Studio 1.1.0, the build.gradle project does not successfully compile the Mobile Quality Assurance SDK. We would like to show you a description here but the site won’t allow us.


Make sure you fulfill the following prerequisites before adding firebase to your project.

  1. For working with Firebase you should install Android Studio 1.5 or higher.
  2. Download the latest Google Play services SDK from through Android SDK Manager.
  3. The device should be running Android 2.3 (Gingerbread) or newer, and Google Play services 9.2.0 or newer.

I find out all this after hours of struggle, so thought of sharing with others.

Source: Adding Firebase to your Android App

"Cannot resolve symbol" errors occur when you include the Mobile , In Java, if you receive ”cannot resolve symbol” error, it simply mean that you have used a name that the compiler was not able to recognize. Cannot resolve symbol r | Android Studio. Posted March 6, 2019. November 25, 2019. by Rohit. Not only you, but many programmers are also facing a “ cannot resolve symbol r ” error in Android app development. An “ r ” turns red and can’t run the Application and throw the error in “logcat”. This problem has faced mostly the time when you shift your code to another Computer or send the code to another person.


Invalidating cache didn't work for me. But deleting .idea/libraries worked like magic.

More info here: https://stackoverflow.com/a/50129167/971972

Solved, If your code uses this class, the exception on the IDE "Cannot resolve symbol '​Activity Manager'" will appear due to the absence of importing  Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. Learn more Android Studio: Cannot resolve symbol 'raw'


How to resolve Android Studio Error: Cannot resolve symbol 'Activity , The "cannot resolve symbol R" problem can happen when you build the project on the command line, then switch to Android Studio. To resolve  Can’t resolve symbol generally occurs when variable is not properly index with corresponding memory. A separate file is generated while building the project. Try to build project once again and import the R by pressing ALT + ENTER simultaneously. Hope this will solve your problem.


Cannot resolve symbol R after build (#1521) · Issues · briar / briar , No build error, but IDE cannot resolve symbol. Close the project ( File -> Close Project ). It will prompt the Welcome to Android Studio screen,  5 Cara Mengatasi Cannot Resolve Symbol R pada Android Studio October 11, 2019 October 11, 2019 Guntoro Android Studio , Mobile Development Pada saat awal-awal belajar membuat aplikasi dengan Android Studio , seringkali saya menemukan masalah Cannot Resolve Symbol R ketika sedang melakukan pengcodingan di file java contohnya MainActivity.java.


Android Studio 3.x Cannot Resolve Symbol, The Links between xml files and java files are stored in R.java file. Most often “R cannot be resolved” error appears if there is an issue with some of your resource​  In this video we will learn how to overcome 'cannot resolve symbol activity' on android studio. When I tried to create a new 'DemoDatabase' project using and