科尔多瓦运行Android执行罚款。但是Android 4.1.2不启动应用程序科尔、应用程序、多瓦、Android

由网友(谁説陪我地老天荒)分享简介:我开始开发和利用科尔多瓦5.0.0 Android应用程序(科尔多瓦-v打印5.0.0),并采用Android 4.1.2测试它在MOTO RAZR D1。在Windows 7,顺便说一句。I'm starting to develop and android app using Cordova 5.0.0 (co...

我开始开发和利用科尔多瓦5.0.0 Android应用程序(科尔多瓦-v打印5.0.0),并采用Android 4.1.2测试它在MOTO RAZR D1。 在Windows 7,顺便说一句。

I'm starting to develop and android app using Cordova 5.0.0 (cordova -v prints 5.0.0), and testing it on a Moto Razr D1 with Android 4.1.2. Under Windows 7, btw.

cordova build 

和手动复制平台/安卓/建设/输出/ APK / Android的degug.apk到SD和安装工作正常。

and manually copying the platforms/android/build/output/apk/android-degug.apk to the SD and installing works fine.

cordova emulate android 

运行良好的模拟器有Android版本> 4.1.2

runs fine on emulator with android version >4.1.2

cordova run android 

建立成功,说用APK平台/安卓/建设/输出/ APK / Android的debugger.apk,这似乎确定, 安装应用程序,发射和发射成功。但是,你可以在这个截图看

builds successfully, says using apk platforms/android/build/output/apk/android-debugger.apk, which seems ok, installing app, launching and LAUNCH SUCCESS. however as you can see in this screenshot

Razr手机截图

这壁纸/管理/设置的事情发生,仅此而已。

This "WALLPAPER/MANAGE/SETTINGS" thing happens, and that's it.

如果我执行:

cordova emulate android

在一个模拟器采用Android 4.1.2果冻,等输出

On an emulator with Android 4.1.2 Jelly, an equal output

BUILD SUCCESSFUL

Total time: 6.352 secs
Built the following apk(s):
    C:androidSomeplatformsandroidbuildoutputsapkandroid-debug.apk
Installing app on emulator...
Using apk: C:androidSomeplatformsandroidbuildoutputsapkandroid-debug.apk
Launching application...
LAUNCH SUCCESS

同样的WALLPAPAER /管理/设置,这里的另一个截图模拟器截图

任何想法如何解决这个问题呢?在此先感谢...

Any ideas how to solve this issue? Thanks in advance...

PS:如果我已经安装了APK previously,Razr手机将启动,而不是墙纸的旧版本,/管理/设置的东西。所以我试图运行科尔多瓦运行命令之前将其卸载。

PS: If I've installed the apk previously, the Razr will startup the old version, instead of the WALLPAPER/MANAGE/SETTINGS thing. So I have to uninstall it before trying to run the cordova run commands.

推荐答案

我遇到了同样的问题(Cordova "世界你好"应用程序将不会显示),并找到一种方法,通过它(但我真的不明白的根本原因)

I met the same problem (Cordova "hello world" app won't display) and found a way to pass through it (but I don't really understand the underlying causes).

问题似乎在安装APK时发生的。在科尔多瓦5.0.0,亚行命令来安装的APK可以在文件平台机器人科尔多瓦 LIB device.js(和平台311线机器人科尔多瓦 lib目录 emulator.js的科尔多瓦101线发现仿真机器人):

Problem seemed to occur when installing the apk. On Cordova 5.0.0, adb commands to install the apk can be found at line 101 of file platformsandroidcordovalibdevice.js (and at line 311 of platformsandroidcordovalibemulator.js for cordova emulate android):

亚行-s+ resolvedTarget.target +安装-r -d+ apk_path +'

当前命令返回对​​我说:错误:未知的选项-d!

Current command returns to me: "Error: unknown option -d"!

如果你只是删除了-d选项,应用程序与科尔多瓦运行Android正常运行。

-d 应该直接亚洲开发银行之后来(如 - 设备),而不是安装之后。所以,你可以将它去除它有吧。

The -d is supposed to come directly after adb (as in --device) instead of after install. So you can just move it there instead of removing it.

另外,这里是Apache科尔多瓦问题跟踪器打开的问题

阅读全文

相关推荐

最新文章