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 Build a Weather App (2015) Building the Weather UI Starting at the Center

Brecht Philips
Brecht Philips
8,863 Points

Error after i set screenOriantation tot portrait mode

After i followed the stept and put the screenorientation to portrait mode i tried to run the app but i got this error

Error:(23) No resource identifier found for attribute 'srcCompat' in package 'teamtreehouse.com.stormy' -/Users/BrechtPhilips/AndroidStudioProjects/Stormy2/app/build/intermediates/res/merged/debug/layout/activity_main.xml Error:(23) No resource identifier found for attribute 'srcCompat' in package 'teamtreehouse.com.stormy'

and in my debug/activity_main.xml these 3 lines turned red

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools"

anyone an idea how to fix this? Because of this error my R. is also red.

Mert Kahraman
Mert Kahraman
12,118 Points

Having same issue.. Helps will be appreciated!

1 Answer

Brecht Philips
Brecht Philips
8,863 Points

I found my problem when adding the image boot cloudy-night the new version of android studio puts in in srccompact but you need to go to image view properties and the normal src this fixed that error for me