我正在使用Android studio 2.3,gradle 3.3并不断收到像
这样的错误错误:(4)检索项目的父项时出错:找不到与给定名称“android:TextAppearance.Material.Widget.Button.Inverse”匹配的资源。 错误:(34)检索项目的父项时出错:找不到与给定名称“android:Widget.Material.Button.Colored”匹配的资源。 ...
app build.gradle包含
minSdkVersion 17,targetSdkVersion 23,compileSdkVersion 25
完成build.gradle:
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
//apply plugin: 'io.fabric'
android {
compileSdkVersion 25
buildToolsVersion '25.0.2'
defaultConfig {
applicationId "<appname>"
minSdkVersion 17
targetSdkVersion 23
versionCode 6
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
debug {
//applicationIdSuffix '.debug'
//versionNameSuffix '-DEBUG'
// debug and dev have the same apk signature,
// so they can share an authority name
resValue "string", "content_provider", "<appname>.debug.fileprovider"
resValue "string", "fb_provider_id", "com.facebook.app.FacebookContentProvider<providerid>"
}
release {
shrinkResources true // https://developer.android.com/studio/build/shrink-code.html#keep-code
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
// debug and dev have the same apk signature,
// so they can share an authority name
resValue "string", "content_provider", "<appname>.fileprovider"
resValue "string", "fb_provider_id", "com.facebook.app.FacebookContentProvider<providerid>"
}
}
}
repositories {
mavenCentral()
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
compile files('lib/commons-net-3.5.jar')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile('com.twitter.sdk.android:twitter:2.3.1@aar') {
transitive = true;
}
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:design:25.3.1'
compile 'com.github.clans:fab:1.6.4'
compile 'com.android.support:recyclerview-v7:25.3.1'
compile 'com.android.support:cardview-v7:25.3.1'
compile 'com.google.firebase:firebase-core:10.0.1'
compile 'com.facebook.android:facebook-android-sdk:[4,5)'
compile 'com.google.firebase:firebase-invites:10.0.1'
// https://github.com/wasabeef/glide-transformations
compile 'jp.wasabeef:glide-transformations:2.0.1'
compile 'com.google.firebase:firebase-ads:10.0.1'
testCompile 'junit:junit:4.12'
compile 'com.android.support.constraint:constraint-layout:1.0.1'
compile 'com.android.support:animated-vector-drawable:25.3.1'
compile 'com.android.support:customtabs:25.3.1'
}
apply plugin: 'com.google.gms.google-services'
我已经搜索过了,但我无法解决这个问题(由我自己解决),所以如果能解决问题以及如何确定究竟是什么问题,我将不胜感激。