Android乱码

android {
    compileSdkVersion 18
    buildToolsVersion "23.0.1"
    android {compileOptions.encoding = "GBK"}  //在build.gradle加上

    defaultConfig {
        minSdkVersion 10
        targetSdkVersion 15
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }
}

你可能感兴趣的:(android,乱码,Android)