发现Android Studio意外的元数据类型

时间:2019-03-28 21:47:50

标签: android gradle android-gradle metadata

我在android studio中遇到Unexpected metadata type found错误。我不知道它为什么起源。

当我应用下面的代码时,该程序无法正常工作。

lintOptions {
    checkReleaseBuilds false}

下面是我的构建gradle。

apply plugin: 'com.android.application'

  android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "com.example.notapp"
        minSdkVersion 14
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }

    }

}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support.constraint:constraint- 
    layout:1.1.3'
    testİmplementation 'junit:junit:4.12'
    androidTestİmplementation 'com.android.support.test:runner:1.0.2'
    androidTestİmplementation 'com.android.support.test.espresso:espresso- 
    core:3.0.2'
    implementation 'com.android.support:gridlayout-v7:28.0.0'
    implementation 'com.android.support:recyclerview-v7:28.0.0'
    implementation 'com.android.support:support-v4:28.0.0'
    implementation 'com.android.support:cardview-v7:28.0.0'
    implementation 'com.android.support:design:28.0.0'
}

0 个答案:

没有答案