为什么我的Appcompat无法解决?

时间:2017-12-24 13:19:06

标签: android xml

解决了问题。谢谢。方法在评论中

我不知道这是不是问题,但因为它是RED,我认为是这样。

在我的其他java和xml文件中,我的Appcompat以红色突出显示。我觉得有些不对劲但我无法确定它。请帮忙?

我的screen.xml文件的屏幕截图 enter image description here

我的build.gradle代码

apply plugin: 'com.android.application'

android {
    compileSdkVersion 27
    buildToolsVersion '27.0.1'

    defaultConfig {
        applicationId "hk.ust.cse.comp107x.shootinggame"
        minSdkVersion 18
        targetSdkVersion 27
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:27.0.2'
    compile 'com.android.support:design:27.0.2'
}

0 个答案:

没有答案