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:
Asked
Active
Viewed 485 times
-4
-
post some error log! – Mohammad Rahchamani Dec 08 '14 at 06:13
-
I have checked every answer there none of them work – Joe Dec 08 '14 at 06:33
2 Answers
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
-
-
there should not be a single error in any file of res folder. Means your all .xml files including manifest.xml should be error free so that R.java will be generated successfullly. – TechHelper Dec 08 '14 at 06:42
-
-
-
Dear friend, just check whether your res folder is not having red error mark, your import of R.java file is correct and if it is giving error then delete R.java and rebuild the project. – TechHelper Dec 08 '14 at 07:16