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 trialBrecht Philips
8,863 PointsError 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.
1 Answer
Brecht Philips
8,863 PointsI 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
Mert Kahraman
12,118 PointsMert Kahraman
12,118 PointsHaving same issue.. Helps will be appreciated!