-4

I keep getting the error: package R does not exist I have checked every post on here and I can't fix my r does not exist error I see it is in the app/build/generated/source/ but it still says it doesn't exist when I build. Help? D:

Joe
  • 337
  • 2
  • 16

2 Answers2

0

Check if you have any compile errors in your code. Also check if you have imported the correct R check the package of the import. Is it your R or android's R or some other R. Clean build everything and check again.

Nazgul
  • 1,892
  • 1
  • 11
  • 15
0

First ensure that there are no errors in your resource files. And then delete your import android.R; statement in your class and build the project. It will automatically generate R.java.

TechHelper
  • 822
  • 10
  • 24