Android模拟器中的应用程序错误问题“存在网络错误” [英] Application error issue in android emulator "There was an network error"
本文介绍了Android模拟器中的应用程序错误问题“存在网络错误”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Android上运行离子应用程序后添加平台android我运行它
i run the ionic app on android after adding platform android i run it through
ionic emulate android -l -c
我不知道为什么会这样,它的android清单文件是:
I am not getting why this is coming, its android manifest file is:
<?xml version='1.0' encoding='utf-8'?>
<manifest android:hardwareAccelerated="true" android:versionCode="1" android:versionName="0.0.1" package="com.greatdevelopers.hrstop" xmlns:android="http://schemas.android.com/apk/res/android">
<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<application android:hardwareAccelerated="true" android:icon="@drawable/icon" android:label="@string/app_name" android:supportsRtl="true">
<activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/activity_name" android:launchMode="singleTop" android:name="MainActivity" android:screenOrientation="portrait" android:theme="@android:style/Theme.Black.NoTitleBar" android:windowSoftInputMode="adjustResize">
<intent-filter android:label="@string/launcher_name">
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:label="@string/multi_app_name" android:name="com.synconset.MultiImageChooserActivity" android:theme="@android:style/Theme.Holo.Light" />
</application>
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="22" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
</manifest>
它向我展示了这个问题。任何解决方案请告诉我。
its showing me this issue. Any solution of this please tell me.
推荐答案
您需要在项目下添加cordova白名单。尝试以下方法 -
You need to add cordova whitelist under your project. Try the following -
$ cordova插件添加cordova-plugin-whitelist
$ cordova plugin add cordova-plugin-whitelist
这篇关于Android模拟器中的应用程序错误问题“存在网络错误”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文