小编DUK*_*UKE的帖子

错误:':'不是有效的资源名称字符

我已将我的eclipse项目导入到android studio.I谷歌搜索但没有得到正确的答案.发生这些错误 -

D:\***\app\src\main\res\values\strings.xml
Error:Error: ':' is not a valid resource name character
:app:mergeDebugResources FAILED
Error:Execution failed for task ':app:mergeDebugResources'.
> D:\****\app\src\main\res\values\strings.xml: Error: ':' is not a valid resource name character
Run Code Online (Sandbox Code Playgroud)

我的bulid gradle应用程序代码是

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "com.******.***"
        minSdkVersion 21
        targetSdkVersion 22
        multiDexEnabled true     }

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

repositories { mavenCentral() }

dependencies {
    compile 'com.android.support:appcompat-v7:23.1.1'
    compile 'com.android.support:design:23.1.1'
    compile 'com.android.support:support-v4:23.1.1'
    compile 'com.google.android.gms:play-services:+'
    compile …
Run Code Online (Sandbox Code Playgroud)

r.java-file android-studio

8
推荐指数
2
解决办法
2万
查看次数

标签 统计

android-studio ×1

r.java-file ×1