Вопрос

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