ios和android上的白色屏幕

ios和android上的白色屏幕,android,cordova,ionic-framework,cocoapods,capacitor,Android,Cordova,Ionic Framework,Cocoapods,Capacitor,我什么都试过了,结果都糟透了 我已经在谷歌搜索中尝试过了,但没有任何效果 我不确定问题出在哪里,但我在运行命令“cordova run android”时出错 Command failed with exit code 1: /Users/aminaibrahim/Desktop/ionic_pro/platforms/android/gradlew cdvBuildDebug -b /Users/aminaibrahim/Desktop/ionic_pro/platforms/android/

我什么都试过了,结果都糟透了

我已经在谷歌搜索中尝试过了,但没有任何效果

我不确定问题出在哪里,但我在运行命令“cordova run android”时出错

Command failed with exit code 1: /Users/aminaibrahim/Desktop/ionic_pro/platforms/android/gradlew cdvBuildDebug -b /Users/aminaibrahim/Desktop/ionic_pro/platforms/android/build.gradle
这个命令‘cordova run android--prod’给了我另一个代码错误,但我无法更改它,比如这个错误“组件‘LoginPage’由多个模块声明”

这是我的initializeApp函数

initializeApp() {
    this.platform.ready().then(() => {
      this.statusBar.styleDefault();
      // Commenting splashScreen Hide, so it won't hide splashScreen before auth check
      this.splashScreen.hide();
      this.authService.getToken();
    });
  }
config.xml

<preference name="loadUrlTimeoutValue" value="700000" />
    <preference name="ScrollEnabled" value="false" />
    <preference name="BackupWebStorage" value="none" />
    <preference name="SplashMaintainAspectRatio" value="true" />
    <preference name="FadeSplashScreenDuration" value="300" />
    <preference name="SplashShowOnlyFirstTime" value="false" />
    <preference name="SplashScreen" value="screen" />
    <preference name="SplashScreenDelay" value="3000" />
    <preference name="AutoHideSplashScreen" value="false" />
    <preference name="ShowSplashScreen" value="true" />
    <preference name="ShowSplashScreenSpinner" value="false" />
    <preference name="FadeSplashScreen" value="true" />
CDVWKWebView引擎应重新加载WebView

这表明您可能需要inappbrowser插件

对于iOS,请确保已将inappbrowser添加到cordova项目中。在终端更改目录中,更改为Cordova项目的根目录:

cordova plugin add cordova-plugin-inappbrowser
还要确保config.xml中iOS的部署目标为11

<preference name="deployment-target" value="11.0" />

科尔多瓦-ios@6利用方案功能解决WKWebView中的许多跨来源问题,这需要iOS 11

<preference name="deployment-target" value="11.0" />