문제

Android Studio is complaining about being unable to resolve ?android resources in xml layouts.

It is building and running these projects without complain, but whenever I look at my layout or do a commit it is highlighting them as errors.

Screenshot of Error message

Any suggestions for solving this would be greatly appreciated, thanks.

도움이 되었습니까?

해결책 2

Well I found a sort-of solution: If I go into my build.gradle and set my compileSdkVersion to be something other than 19 the error messages go away.

apply plugin: 'android'

android {
    compileSdkVersion 17
    buildToolsVersion '19.0.2'
...

Obviously this isn't a very good solution, I'm going to try removing SDK 19 and re-adding it to see if it will resolve the issue for that SDK.

다른 팁

Try this attribute

android:textAppearance="?android:attr/textAppearanceLarge"

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top