phonegap运行android无法正常工作,并且没有错误消息 [英] phonegap run android not working and no error message

查看:57
本文介绍了phonegap运行android无法正常工作,并且没有错误消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Phonegap上工作了一段时间,效果很好,但是昨天我在使用命令行将应用程序安装到设备上时遇到了问题:

I had worked with Phonegap for a period of time and it workd good but yesterday I got stuck in a problem with installing the app on my device using command line:

\>>phonegap run android  
it return
[phonegap] executing 'cordova run android'...
[phonegap] completed 'cordova run android'
and no error message

但是该应用程序没有任何反应,因为它没有安装在我的设备中,也没有打开模拟器.

But nothing happened the app as it does not get installed in my device nor open the emulator.

我尝试创建新项目,更新Phonegap,更新android平台,更新SDK并卸载phonegap并重新安装它,但没有任何更改.

I try to create new project, update Phonegap, update android platform, update SDK and uninstall the phonegap and re-install it but nothing changed.

推荐答案

我遇到了完全相同的问题.将此行添加到config.xml文件中可以为我解决此问题:

I was having the exact same problem. Adding this line to the config.xml file solved it for me:

<preference name="android-minSdkVersion" value="10" />

以科尔多瓦命令cordova run android而不是Phonegap命令运行它后,我找到了此解决方案. Cordova命令给出了以下错误信息:

I found this solution after running it as a Cordova command cordova run android instead of a Phonegap command. The Cordova command gave the error below error:

清单合并失败:uses-sdk:minSdkVersion 7不能小于库C:\ Users \ ecarriger \ Desktop \ test \ platforms \ android \ build \ intermediates \ exploded-aar \ android \ CordovaLib \ unspecified中声明的版本10 \ debug \ AndroidManifest.xml

Manifest merger failed : uses-sdk:minSdkVersion 7 cannot be smaller than version 10 declared in library C:\Users\ecarriger\Desktop\test\platforms\android\build\intermediates\exploded-aar\android\CordovaLib\unspecified\debug\AndroidManifest.xml

在Android中将minSdkVersion更改为10,表明所指出的错误不起作用,因为运行进程将其覆盖.

Changing the minSdkVersion to 10 in the Android manifest that the error pointed to didn't work because the run process overwrites it.

这篇关于phonegap运行android无法正常工作,并且没有错误消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆