大家好,我是Android Studio中的新手,我的gradle项目有问题,它会显示此消息; 无法获得未知的财产''对于DefaultExternalModuleDependency {group =' com.android.support',name =' animated-vector-drawable',version =' 25.2.0',configuration =&# 39;默认'}类型为org.gradle.api.internal.artifacts.dependencies.DefaultExternalModuleDependency.Kindly Assist。 app level gradle build的代码
android {
compileSdkVersion 26
buildToolsVersion "26.0.0"
defaultConfig {
applicationId "com.example.sarah_njeri.theroscaapp"
minSdkVersion 15
targetSdkVersion 26
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 'com.android.support:animated-vector-drawable:25.2.0'''
compile 'com.android.support-compact:25.3.1'
compile 'com.google.android.gms:play-services:10.0.1'
compile 'com.google.firebase:firebase-database:10.0.1'
compile 'com.android.support:support-vector-drawable:26.3.1'
}
apply plugin: 'com.google.gms.google-services'

答案 0 :(得分:1)
compile 'com.android.support:animated-vector-drawable:25.2.0'''
你已经添加了两个额外的'
,只需删除它
compile 'com.android.support:animated-vector-drawable:25.2.0'