No resource found that matches the given name (at 'cardBackgroundColor' with value '?android:attr/colorBackgroundFloating')

前端 未结 7 1369
梦如初夏
梦如初夏 2021-01-03 20:42

I am getting these two error messages when trying to compile:

/Users/dericw/coding/myApplication/lfdate/android/app/build/intermediates/exploded-aar/com.andr         


        
相关标签:
7条回答
  • 2021-01-03 21:18

    If you are using the "cordova-plugin-facebook4" plugin, please remove the plugin from your project and pull it again (the latest version), then add it back to your project.

    At the same time, please check the xml file, which is locate at yourCordovaProject/plugin/cordova-plugin-facebook4/plugin.xml around line No. 64, it must be 4.8.+ :

    <framework src="com.facebook.android:facebook-android-sdk:4.8.+"/>

    0 讨论(0)
  • 2021-01-03 21:21

    my system already had 23 installed. from project panel, Application -> Open module setting (F4) -> application -> Properties tab. I had Compile Sdk Version Android 5.50 (lollipop). So I changed to API 23+ and it worked. So I checked Application build.gradle changed
    from compileSdkVersion 21
    buildToolsVersion "23.0.3"
    to
    compileSdkVersion 'android-N'
    buildToolsVersion "23.0.3"

    so I"m guessing you can simply change compoileSdkVersion to your buildTollVersion.

    0 讨论(0)
  • 2021-01-03 21:22

    I've fixed it removing the plugin:

     cordova plugin remove cordova-plugin-facebook4
    

    And installing it again from this 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"

    0 讨论(0)
  • 2021-01-03 21:25
    1. For a temporary fix I solved my issue changing the project.properties:

    vi platforms/android/project.properties

    and changed from target=android-22 to target=android-23

    1. For a permanent fix you just need to update the android platform:

    cordova platform update android --save

    0 讨论(0)
  • 2021-01-03 21:33

    I also had this issue. I solved by forcing an older version of the card view library as the issue is with that.

    compile('com.android.support:cardview-v7:23.2.0') {
        force = true
    }
    

    The issue was with 23.2.1 of card view, the Facebook SDK uses this library.

    0 讨论(0)
  • 2021-01-03 21:34

    For Phonegap Build users, try this. It worked for me.

    <plugin spec="https://github.com/jeduan/cordova-plugin-facebook4#aff9a08a86cc6c6a18019f7adc2896ddf97c11cd" source="git" >
    
    0 讨论(0)
提交回复
热议问题