Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/179.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 安装react native fbsdk后gradle生成失败,错误为检索项的父项时出错:未找到与给定名称匹配的资源_Android_React Native_Fbsdk - Fatal编程技术网

Android 安装react native fbsdk后gradle生成失败,错误为检索项的父项时出错:未找到与给定名称匹配的资源

Android 安装react native fbsdk后gradle生成失败,错误为检索项的父项时出错:未找到与给定名称匹配的资源,android,react-native,fbsdk,Android,React Native,Fbsdk,我在安装fbsdk后尝试编译react本机android项目,遇到以下错误: /Users/ethanwang/Github/reactnative/Glever_RNI/Glever/android/app/build/intermediates/res/merged/debug/values-v24/values-v24.xml Error:(3) Error retrieving parent for item: No resource found that matches the giv

我在安装fbsdk后尝试编译react本机android项目,遇到以下错误:

/Users/ethanwang/Github/reactnative/Glever_RNI/Glever/android/app/build/intermediates/res/merged/debug/values-v24/values-v24.xml
Error:(3) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.
Error:(4) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.
Error:(3) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.
Error:(4) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.
/Users/ethanwang/Github/reactnative/Glever_RNI/Glever/android/app/build/intermediates/res/merged/debug/values-v26/values-v26.xml
Error:(15, 21) No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.
Error:(15, 21) No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
我已经确保appcompact的版本与gradle中的sdk版本匹配

我也关注过这个帖子 要强制使用“com.facebook.android:facebook android sdk:4.22.1”:


还有什么可能导致这个问题?

我通过升级到sdk 26修复了它

 compileSdkVersion 26
 buildToolsVersion "26.0.1"
和appcompat:

dependencies {
    compile "com.android.support:appcompat-v7:26.0.1"

我通过升级到sdk 26修复了它

 compileSdkVersion 26
 buildToolsVersion "26.0.1"
和appcompat:

dependencies {
    compile "com.android.support:appcompat-v7:26.0.1"

试着重建。只需删除所有构建文件夹或执行“gradlew clean”并重试again@ByteHamster是的,我试过了,但还是没有运气…试着重建。只需删除所有构建文件夹或执行“gradlew clean”并重试again@ByteHamster是的,我试过了,但还是没有运气…谢谢,这很有效,但我有一个
DexException:无法将新索引65536合并到一个非巨型指令中,该指令已用这里的答案修复,谢谢,这是可行的,但我遇到了一个
DexException:无法将新索引65536合并到一条非巨型指令中
,这条指令用这里的答案修复