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

HELP me! | Error Gradle Sync & Rendering Problem

I tried to solve out this problem over 3hrs

I simple created project and then I have got a Gradle warning. It comes when you open the activity.xml and if you click Design tab you can see that there is no phone to show (that you can put buttons or text ect.)

The warning says: Gradle project synd completed with some errors. Open the Message view to see the errors found.

The Message Gradle Sync says: Error:(24, 13) Failed to resolve: com.android.support:appcompat-v7:15.+ Install Repository and sync project Show in File Show in Project Structure dialog

Rendering Problems: Missing styles. Is the correct theme chosen for this layout? Use the Theme combo box above the layout to choose a different layout, or fix the theme style references. Failed to find style "textViewStyle" in the current theme (4 similar errors not shown)

seriously.. Help.

I have found out that SDK Manager that Andriod 4.0.3 API is 15 not 14

3 Answers

Did you resolve the issue?

It would be helpful if you copy-pasted your gradle.build file and MainActivity.java here, so that we can examine the code. Use 3 backticks to format the code.

```java

(paste code here)

```

Andre' Jones
Andre' Jones
26,671 Points

try replacing the com.android.support:appcompat-v7:15.+ with com.android.support:appcompat-v7:23.2.1

sync again and let me know if there are any more issues.

Hi guys thanks for the help But I came out the most magnific solution to fix the problem..

.. Uninstall everything like E V E R Y T H I N G in Andriod Studio (For Windows you need to go harddisk and find Andriod files and remove that ASAP) Go to website and download the fresh one install it and drink some coffee.. When it finished try e.g API 14 THEN woala.. :D its working I dont even need to go SDK manager and update! And Im so shocked that my Emulator is working! I use to run by my phone or BlueStack :O

Painless <3