Keine Ressource gefunden, die dem angegebenen Namen entspricht (bei 'cardBackgroundColor' mit Wert '? Android: attr / colorBackgroundFloating')
Bin ich immer diese beiden Fehlermeldungen, wenn Sie versuchen zu kompilieren:
/Users/dericw/coding/myApplication/lfdate/android/app/build/intermediates/exploded-aar/com.android.support/cardview-v7/23.2.1/res/values-v23/values-v23.xml
Error:(3, 5) No resource found that matches the given name (at 'cardBackgroundColor' with value '?android:attr/colorBackgroundFloating').
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Users/dericw/Library/Android/sdk/build-tools/23.0.2/aapt'' finished with non-zero exit value 1
Android Studio dann öffnet sich v23/values-23.xml
mit diesem Stil:
<style name="CardView" parent="Base.CardView">
<item name="cardBackgroundColor">?android:attr/colorBackgroundFloating</item>
</style>
Aber ich habe nicht definiert, dass irgendwo in meinem app. Es ist eine generierte Datei, gibt mir die Fehlermeldung. Ich bin ziemlich ratlos, wie dieses Problem zu beheben? Hat jemand alle erlebt? Wie kann ich dieses Problem beheben?
Projekt-Build-File
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
classpath 'com.google.gms:google-services:2.0.0-alpha6'
}
}
allprojects {
repositories {
jcenter()
}
}
App Build-Datei
buildscript {
repositories {
mavenCentral()
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 22
buildToolsVersion '23.0.2'
defaultConfig {
applicationId "com.something.myapp"
minSdkVersion 16
targetSdkVersion 22
versionCode 200
versionName "1.7.1"
}
buildTypes {
debug {
versionNameSuffix '-debug'
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
zipAlignEnabled true
}
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
sourceSets {
androidTest.setRoot('src/test')
}
}
repositories {
mavenCentral()
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots/'
}
maven {
url 'https://maven.fabric.io/public'
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile('com.crashlytics.sdk.android:crashlytics:2.4.0@aar') {
transitive = true;
}
compile('org.apache.httpcomponents:httpmime:4.3.6') {
exclude module: 'httpclient'
}
compile project(':viewPagerIndicator')
compile 'com.android.support:appcompat-v7:22.2.1'
compile 'com.android.support:cardview-v7:22.2.1'
compile 'com.android.support:recyclerview-v7:22.2.1'
compile 'com.android.support:design:22.2.1'
compile 'com.facebook.android:facebook-android-sdk:4.+'
compile 'com.mcxiaoke.volley:library:1.+'
compile 'com.parse.bolts:bolts-android:1.+'
compile 'com.parse:parse-android:1.+'
compile 'com.google.android.gms:play-services-gcm:8.3.0'
compile 'com.google.android.gms:play-services-analytics:8.3.0'
compile 'joda-time:joda-time:2.+'
compile 'com.koushikdutta.async:androidasync:2.+'
compile 'com.edmodo:rangebar:1.+'
compile 'org.lucasr.twowayview:twowayview:0.+'
compile 'com.github.amlcurran.showcaseview:library:5.4.+'
compile 'com.nostra13.universalimageloader:universal-image-loader:1.+'
compile 'com.getbase:floatingactionbutton:1.+'
compile 'com.mixpanel.android:mixpanel-android:4.+'
compile 'org.apache.httpcomponents:httpclient-android:4.3.5'
compile 'com.wefika:flowlayout:0.+'
compile 'com.hudomju:swipe-to-dismiss-undo:1.+'
compile 'com.soundcloud.android:android-crop:1.0.1@aar'
compile 'com.squareup.picasso:picasso:2.+'
}
apply plugin: 'com.google.gms.google-services'
InformationsquelleAutor der Frage The Nomad | 2016-03-12
Du musst angemeldet sein, um einen Kommentar abzugeben.
compile 'com.facebook.android:facebook-android-sdk:4.+' muss V-23
Ändern des facebook SDK-version zu 4.8.0 dann wird es nicht zu verwenden, dass die Ressource-Datei. Dann wird sich der code bis & Betrieb/
InformationsquelleAutor der Antwort Jatin Jha
Hatte ich auch dieses Problem. Ich löste, indem er eine ältere version der Karten-Ansicht der Bibliothek, wie das Problem ist.
War das Thema mit 23.2.1 der Karte anzeigen, die Facebook-SDK verwendet diese Bibliothek.
InformationsquelleAutor der Antwort sfreeman
Wenn du mit "cordova-plugin-facebook4" - plugin, bitte entfernen Sie das plugin von Ihrem Projekt, und ziehen Sie es wieder (die neueste version), dann fügen Sie es zurück zu Ihrem Projekt.
Zur gleichen Zeit, überprüfen Sie bitte die xml-Datei, welche ist suchen Sie bei
yourCordovaProject/plugin/cordova-plugin-facebook4/plugin.xml
um line No. 64, es muss4.8.+
:<framework src="com.facebook.android:facebook-android-sdk:4.8.+"/>
InformationsquelleAutor der Antwort infinitysky
InformationsquelleAutor der Antwort Wils
Für Phonegap Build-Benutzer, versuchen Sie dies. Es funktionierte für mich.
InformationsquelleAutor der Antwort ZoM
mein system bereits 23 installiert. von Projekt-panel, Application -> Öffnen-Modul-Einstellung (F4) -> application -> Registerkarte "Eigenschaften". Ich hatte Compile Sdk Version Android 5.50 (lollipop). Also wechselte ich zu API-23+ - und es funktionierte.
Also habe ich überprüft-Anwendung erstellen.gradle geändert
von compileSdkVersion 21
buildToolsVersion "23.0.3"
zu
compileSdkVersion 'android-N'
buildToolsVersion "23.0.3"
also ich"m raten, Sie einfach zu ändern compoileSdkVersion zu Ihrem buildTollVersion.
InformationsquelleAutor der Antwort user3865096
Habe ich es behoben, entfernen Sie das plugin:
Und installieren Sie es erneut aus diesem commit:
cordova plugin add https://github.com/jeduan/cordova-plugin-facebook4\#aff9a08a86cc6c6a18019f7adc2896ddf97c11cd --save --variable APP_ID="YOUR_FB_APP_ID" --variable APP_NAME="YOUR_FB_APP_NAME"
InformationsquelleAutor der Antwort Agu Dondo