Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Parth Ramnathpur
4,353 Pointshey i am getting an error cannot find symbol R in every R. ----- statement....can someone help me
for example R.layout, R.id.textview.....I have imported the Ribbit project
4 Answers
James Simshaw
28,738 PointsHello,
R is a class that is automatically created when you build your project. Could you try cleaning and rebuilding your project? If that doesn't work, could you also try to use File->Invalidate Caches/Restart?
Amal Karim
5,329 PointsTry this. Close android studio, open it again and then run the app. Hope this help.
Parth Ramnathpur
4,353 Pointsi did that too couple of times but its not working......i cannot find the solution...i am stuck
James Simshaw
28,738 PointsI'm not sure if this will help, but searching for your error message on google led me to a stackoverflow post here. To summarize the post, change the gradle dependency section in your build.gradle file to
dependencies {
classpath 'com.android.tools.build:gradle:0.4.3'
}
Making sure you set it to the current version of gradle, which I'm seeing as 1.1.0
Parth Ramnathpur
4,353 Pointshi James,
i have tried that as well nothing is working....I am not getting the solution
James Simshaw
28,738 PointsCan you post your code so we can see if we can see if there's something else wrong with it that is causing this error?
Parth Ramnathpur
4,353 PointsParth Ramnathpur
4,353 PointsError:Execution failed for task ':app:mergeDebugResources'.
no it isn't working i am getting this error as well what do i do