简体   繁体   English

"Ionic 4 应用程序未在 Android 9 和低于 7 的 Android 版本中运行"

[英]Ionic 4 app not running in Android 9 and Android version lower then 7

I am working on ionic 4 project when i build my project for uploading on playstore i faced some issues.当我构建用于上传到 Playstore 的项目时,我正在研究 ionic 4 项目,但我遇到了一些问题。 I add latest android platform in ionic app and build my app but when i run my app it only run on some specific versions of android like 7.1 and 8.0.我在 ionic 应用程序中添加了最新的 android 平台并构建了我的应用程序,但是当我运行我的应用程序时,它只能在某些特定版本的 android 上运行,例如 7.1 和 8.0。 App is not working on android 9 and Android version lower the 7.应用程序不适用于 android 9 和 Android 版本低于 7。

Here is my Ionic info.这是我的离子信息。

Ionic:

   Ionic CLI                     : 5.2.0 (C:\Users\Muhammad Yaseen\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework               : @ionic/angular 4.4.2
   @angular-devkit/build-angular : 0.13.9
   @angular-devkit/schematics    : 7.3.9
   @angular/cli                  : 7.3.9
   @ionic/angular-toolkit        : 1.5.1

Cordova:

   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : android 8.0.0
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.1.1, (and 7 other plugins)

Utility:

   cordova-res : 0.5.2
   native-run  : not installed

System:

   Android SDK Tools : 26.1.1 (C:\Users\Muhammad Yaseen\AppData\Local\Android\Sdk)
   NodeJS            : v10.15.3 (C:\Program Files\nodejs\node.exe)
   npm               : 6.9.0
   OS                : Windows 10

Try adding android:usesCleartextTraffic="true" to the <application> in the AndroidManifest.xml or as below using config.xml 尝试使用config.xmlandroid:usesCleartextTraffic="true"AndroidManifest.xml或以下的<application>

<platform name="android">
  <edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
      <application android:usesCleartextTraffic="true" />
  </edit-config>
</platform>

Did you manage to solve the issue?你设法解决了这个问题吗? Because I am facing the same issue with new android versions, when trying to post or get data using http, it keeps loading with progress bar and nothing happens.因为我在使用新的 android 版本时面临同样的问题,所以在尝试使用 http 发布或获取数据时,它会一直加载进度条,但什么也没有发生。 Any solution?有什么解决办法吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM