react-native未在Android发布更新上运行 [英] react-native not running on Android post update

查看:81
本文介绍了react-native未在Android发布更新上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天进行了react-native-git-upgrade.然后我最终遇到了以下错误.

Did a react-native-git-upgrade today. And then I ended up with below errors.

: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'.

已经讨论过的建议此处此处

任何帮助将不胜感激.我的build.gradle有

Any help will be greatly appreciated. My build.gradle has

compileSdkVersion 23
buildToolsVersion "23.0.1"

还有

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

推荐答案

在此处提供信用:.

您已经在上面链接了此内容,但似乎没有表明您已经尝试了解决方案.

You've already linked this above, but don't seem to have indicated that you've tried the solution(s).

这是 react-native-fbsdk 的问题,在他们解决该问题之前,您需要执行以下操作:

This is an issue with react-native-fbsdk, until they fix it you'll need to do the following:

android/build.gradle :

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

android/app/build.gradle :

compileSdkVersion 24
buildToolsVersion "24.0.2"

以上内容适用于我们的项目,请尝试一下.当然,您将需要v24 SDK,构建工具和支持存储库.

The above works for our project, please give it a try. You'll of course need the v24 SDK, Build Tools and Support Repository.

这篇关于react-native未在Android发布更新上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆