2017-06-02 47 views
0

今天做了react-native-git-upgrade。然後我結束了以下錯誤。react-native未在Android發佈更新

:app:processDebugResources 
/../android/app/build/intermediates/res/merged/debug/values-v24/values-v24.xml:3: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'. 

/../app/build/intermediates/res/merged/debug/values-v24/values-v24.xml:4: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'. 

/../android/app/build/intermediates/res/merged/debug/values-v24/values-v24.xml:3: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'. 

/../app/build/intermediates/res/merged/debug/values-v24/values-v24.xml:4: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'. 

的建議已經討論herehere

任何幫助將不勝感激。我的build.gradle在這裏有

compileSdkVersion 23 
buildToolsVersion "23.0.1" 

而且

compile "com.android.support:appcompat-v7:23.0.1" 
compile "com.facebook.android:facebook-android-sdk:[4,5)" 

回答

0

來源:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'

您已經將上述內容鏈接起來,但似乎沒有表明您已嘗試解決方案。

這是react-native-fbsdk一個問題,直到他們解決它,你需要做到以下幾點:

android/build.gradle

project(':react-native-fbsdk') { 
    configurations.all { 
    resolutionStrategy { 
     force 'com.facebook.android:facebook-android-sdk:4.22.1' 
    } 
    } 
} 

​​:

compileSdkVersion 24 
buildToolsVersion "24.0.2" 

上述作品我們的項目,請試試看。您當然需要v24 SDK,Build Tools和Support Repository。

+0

謝謝,隨着buildToolsVersion 25.0.2,它的工作。 –

+0

是的,沒問題,應該使用24.0以上的任何東西。你需要重寫項目嗎? – G0dsquad