【问题标题】:React Native app downloaded from play store not working on android 9从 Play 商店下载的 React Native 应用程序无法在 android 9 上运行
【发布时间】:2019-05-24 11:38:21
【问题描述】:

我在 0.59 版本中开发了 react native 应用程序。我在包括 android 9 应用程序在内的每台设备上都使用数据线进行了测试,工作正常。我将应用程序上传到 Play 商店,现在我的应用程序可以在除 android 9 之外的所有设备上运行。我还上传了单个 .apk 文件,为不同的 CPU 架构生成了多个 .apk 文件,最后我生成了 android 应用程序包文件并上传到了 Play 商店,但没有一个这些方法适用于 android 9。我的应用程序安装在 android 9 上,但没有在我的应用程序的主屏幕上获取数据。我使用 axios 来获取数据。

【问题讨论】:

    标签: react-native


    【解决方案1】:

    在您的主 AndroidManifest.xml 中添加代码

    <manifest xmlns:tools="http://schemas.android.com/tools"> .... <application android:usesCleartextTraffic="true" tools:targetApi="28"> ... </application> </manifest>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-03-08
      • 2014-09-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多