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

Android

hey 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

Hello,

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?

Error:Execution failed for task ':app:mergeDebugResources'.

Crunching Cruncher cab_background_top_ribbit.9.png failed

no it isn't working i am getting this error as well what do i do

Try this. Close android studio, open it again and then run the app. Hope this help.

i did that too couple of times but its not working......i cannot find the solution...i am stuck

I'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

hi James,

i have tried that as well nothing is working....I am not getting the solution

Can 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?