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

Android studio

It's weird. My android studio doesn't resolve the symbol R, which seems to be infamous issue and there are many questions and answers about it. But any of them doesn't seem to solve my android studio.

What I tried. Check any error in any xml files Make project Rebuild the project Clean project Restart android studio Clean gradle?(through Tools>open terminal

Anyone has other solution?

And one more. Android studio, on contrary Ben repeats it's faster than eclipse, it seems to be super slow to me compared to eclipse. Is this only me or is android studio some kind of AI thing and get faster gradually by learning?

I feel so sorry. I just found the cause of the error. It was certainly xml file. Although it is not displayed in red underline, it was displayed that android studio does not recognize showAsAction attribute in menu xml. I still don't understand why this cause the problem, but at least I just deleted it since I didn't use it, and it solved itself.

2 Answers

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

Glad you got it working! You should be able to use "showAsAction", but your problem could have been related to something else about the project setup.

Android Studio is smoother and faster for me, and I hear that from a lot of developers, too. However, some things do take longer than Eclipse, so perhaps it's a matter of getting used to their differences. Building a project seems generally slower in Android Studio for smaller projects, but faster for larger projects.

It's perhaps because I haven't tried larger projects. But it's still a good idea to get me used to it for the possible future.

I have one thing. In android studio, doesn't it have the function to extract string in a very easy manner like eclipse does?

Thank you, Ben. I may have missed it. Now I'm getting used to Android Studio and it's seeming better!