android–config.xml中没有列出Cordova平台.没什么好准备的

android–config.xml中没有列出Cordova平台.没什么好准备的,第1张

概述我试图在模拟器中运行我的ionic1项目,但我得到标题中显示的消息.这很奇怪.这就是我在我的系统中所拥有的.clipackages:(/usr/local/libode_modules)@ionic/cli-utils:1.9.2ionic(IonicCLI):3.9.2globalpackages:CordovaCLI:7.0.1localpackages:Cordo

我试图在模拟器中运行我的ionic1项目,但我得到标题中显示的消息.这很奇怪.这就是我在我的系统中所拥有的.

cli packages: (/usr/local/lib/node_modules)@ionic/cli-utils  : 1.9.2ionic (Ionic Cli) : 3.9.2global packages:Cordova Cli : 7.0.1 local packages:Cordova Platforms : androID 6.2.3Ionic Framework   : ionic1 1.3.3System:Node : v6.11.1npm  : 3.10.10 OS   : macOS SIErra

一切都按原样安装.

config.xml中

        <?xml version='1.0' enCoding='utf-8'?>    <Widget ID="io.ionic.starter" version="0.0.1" xmlns="http://www.w3.org/ns/Widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">        <feature name="Camera">            <param name="androID-package" value="org.apache.cordova.camera.CameraLauncher" />        </feature>        <feature name="Device">            <param name="androID-package" value="org.apache.cordova.device.Device" />        </feature>        <feature name="SplashScreen">            <param name="androID-package" value="org.apache.cordova.splashscreen.SplashScreen" />            <param name="onload" value="true" />        </feature>        <feature name="Statusbar">            <param name="androID-package" value="org.apache.cordova.statusbar.Statusbar" />            <param name="onload" value="true" />        </feature>        <feature name="WhiteList">            <param name="androID-package" value="org.apache.cordova.whiteList.WhiteListPlugin" />            <param name="onload" value="true" />        </feature>        <feature name="Keyboard">            <param name="androID-package" value="io.ionic.keyboard.IonicKeyboard" />            <param name="onload" value="true" />        </feature>        <name>MyApp</name>        <description>An awesome Ionic/Cordova app.</description>        <author email="hi@ionicframework" href="http://ionicframework.com/">Ionic Framework Team</author>        <content src="index.HTML" />        <access origin="*" />        <allow-navigation href="http://ionic.local/*" />        <allow-intent href="http://*/*" />        <allow-intent href="https://*/*" />        <allow-intent href="tel:*" />        <allow-intent href="sms:*" />        <allow-intent href="mailto:*" />        <allow-intent href="geo:*" />        <allow-intent href="market:*" />        <icon density="ldpi" src="resources/androID/icon/drawable-ldpi-icon.png" />        <icon density="mdpi" src="resources/androID/icon/drawable-mdpi-icon.png" />        <icon density="hdpi" src="resources/androID/icon/drawable-hdpi-icon.png" />        <icon density="xhdpi" src="resources/androID/icon/drawable-xhdpi-icon.png" />        <icon density="xxhdpi" src="resources/androID/icon/drawable-xxhdpi-icon.png" />        <icon density="xxxhdpi" src="resources/androID/icon/drawable-xxxhdpi-icon.png" />        <splash density="land-ldpi" src="resources/androID/splash/drawable-land-ldpi-screen.png" />        <splash density="land-mdpi" src="resources/androID/splash/drawable-land-mdpi-screen.png" />        <splash density="land-hdpi" src="resources/androID/splash/drawable-land-hdpi-screen.png" />        <splash density="land-xhdpi" src="resources/androID/splash/drawable-land-xhdpi-screen.png" />        <splash density="land-xxhdpi" src="resources/androID/splash/drawable-land-xxhdpi-screen.png" />        <splash density="land-xxxhdpi" src="resources/androID/splash/drawable-land-xxxhdpi-screen.png" />        <splash density="port-ldpi" src="resources/androID/splash/drawable-port-ldpi-screen.png" />        <splash density="port-mdpi" src="resources/androID/splash/drawable-port-mdpi-screen.png" />        <splash density="port-hdpi" src="resources/androID/splash/drawable-port-hdpi-screen.png" />        <splash density="port-xhdpi" src="resources/androID/splash/drawable-port-xhdpi-screen.png" />        <splash density="port-xxhdpi" src="resources/androID/splash/drawable-port-xxhdpi-screen.png" />        <splash density="port-xxxhdpi" src="resources/androID/splash/drawable-port-xxxhdpi-screen.png" />        <preference name="loglevel" value="DEBUG" />        <preference name="webvIEwbounce" value="false" />        <preference name="UIWebVIEwBounce" value="false" />        <preference name="disallowOverscroll" value="true" />        <preference name="androID-minSdkVersion" value="16" />        <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="autoHIDeSplashScreen" value="true" />        <preference name="SplashScreenDelay" value="3000" />    </Widget>

为什么会这样?

谢谢,

西奥.

解决方法:

由于某些原因,可能这行没有添加到你的config.xml中(这是用于androID):

<engine name="androID" spec="^6.2.3" />

添加这样的东西取决于您的平台并重建.

总结

以上是内存溢出为你收集整理的android – config.xml中没有列出Cordova平台.没什么好准备的全部内容,希望文章能够帮你解决android – config.xml中没有列出Cordova平台.没什么好准备的所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1118452.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-29
下一篇 2022-05-29

发表评论

登录后才能评论

评论列表(0条)

保存