我在VectorAssets上遇到一些问题

时间:2019-09-08 15:08:47

标签: java gradle build.gradle

当我添加“ android.defaultConfig.vectorDrawables.useSupportLibrary = true”时。对于我的Vector Asset to Gradle,这些问题会弹出。请有人告诉我如何解决此问题。

这些是错误: 错误:没有方法签名:java.lang.Boolean.testInstrumentationRunner()适用于参数类型:(字符串)值:[android.support.test.runner.AndroidJUnitRunner]

org.gradle.internal.exceptions.LocationAwareException

org.gradle.api.ProjectConfigurationException:配置项目':app'时出现问题。

apply plugin: 'com.android.application'

android {
            compileSdkVersion 28
    defaultConfig {
        applicationId "com.example.viewassets"
        minSdkVersion 19
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        android.defaultConfig.vectorDrawables.useSupportLibrary = true.
        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'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}

0 个答案:

没有答案