【问题标题】:remove permanant rendring warning in android studio删除 android studio 中的永久渲染警告
【发布时间】:2017-03-28 07:36:15
【问题描述】:

如何永久避免或删除渲染问题警告 我正在使用 Android Studio 2.2.3

我的大多数 XML 文件都出现了渲染问题 我的布局文件没有显示我的任何控件或设计 伙计们帮我解决这个问题 如果可能,请尝试告诉我如何永久阻止这些警告。

这是我的 gradle 文件

apply plugin: 'com.android.application'

android {
    compileSdkVersion 25
    buildToolsVersion '25.0.2'
    defaultConfig {
        applicationId "design.ray.com.finalproject"
        minSdkVersion 15
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    compile 'com.android.support:appcompat-v7:25.1.1'
    compile 'com.android.support:design:25.3.1'
    compile 'de.hdodenhof:circleimageview:2.1.0'
    // compile 'com.android.support:cardview-v7:25.0.1'
    compile 'com.android.support:palette-v7:25.2.0'
    compile 'com.android.support.constraint:constraint-layout:1.0.1'
    compile 'com.github.bumptech.glide:glide:3.7.0'
    //compile 'de.hdodenhof:circleimageview:2.1.0'
    compile 'com.android.support:cardview-v7:25.2.0'
    compile 'com.android.support:recyclerview-v7:25.2.0'
    testCompile 'junit:junit:4.12'
}

【问题讨论】:

    标签: android rendering


    【解决方案1】:

    您可以禁止在 Android Studio 上显示警告。

    Analyze > Inspect Code 找到您要抑制的警告并单击它,然后Alt+Enter 在菜单上找到抑制警告。

    【讨论】:

      猜你喜欢
      • 2010-10-07
      • 1970-01-01
      • 1970-01-01
      • 2016-05-09
      • 2017-03-19
      • 1970-01-01
      • 1970-01-01
      • 2013-10-07
      • 1970-01-01
      相关资源
      最近更新 更多