离子应用说,在Android模拟器运行,但不 [英] Ionic app says running in Android emulator, but is not

查看:296
本文介绍了离子应用说,在Android模拟器运行,但不的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我试图让在Genymotion虚拟设备工作离子应用。这里的命令离子运行Android的

I have an Ionic app that I'm trying to get to work in a Genymotion Virtual Device. Here's what's in my command prompt after I input the command "ionic run android"

Updated the hooks directory to have execute permissions
Running command: "c:\Program Files (x86)\nodejs\node.exe" c:\Users\username\git\mobile\hooks\after_prepare\010_add_platform_class.js c:/Users/username/git/mobile
add to body class: platform-android
Running command: c:\Users\username\git\mobile\platforms\android\cordova\run.bat
ANDROID_HOME=c:\Program Files (x86)\Android\android-sdk
JAVA_HOME=C:\Program Files (x86)\java\jdk1.8.0_45
WARNING: No target specified, deploying to device '192.168.56.101:5555'.
Running: c:\Users\username\git\mobile\platforms\android\gradlew cdvBuildDebug -b c:\Users\username\git\mobile\platforms\android\build.gradle -PcdvBuildArch=x86 -Dorg.gradle.daemon=true
:preBuild
:compileDebugNdk UP-TO-DATE
:preDebugBuild
:checkDebugManifest
:CordovaLib:compileLint
:CordovaLib:copyDebugLint UP-TO-DATE
:CordovaLib:mergeDebugProguardFiles UP-TO-DATE
:CordovaLib:preBuild
:CordovaLib:preDebugBuild
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugAidl UP-TO-DATE
:CordovaLib:compileDebugRenderscript UP-TO-DATE
:CordovaLib:generateDebugBuildConfig UP-TO-DATE
:CordovaLib:generateDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugAssets UP-TO-DATE 
:CordovaLib:generateDebugResValues UP-TO-DATE
:CordovaLib:generateDebugResources UP-TO-DATE
:CordovaLib:packageDebugResources UP-TO-DATE
:CordovaLib:processDebugManifest UP-TO-DATE
:CordovaLib:processDebugResources UP-TO-DATE
:CordovaLib:generateDebugSources UP-TO-DATE
:CordovaLib:compileDebugJava UP-TO-DATE
:CordovaLib:processDebugJavaRes UP-TO-DATE
:CordovaLib:packageDebugJar UP-TO-DATE
:CordovaLib:compileDebugNdk UP-TO-DATE
:CordovaLib:packageDebugJniLibs UP-TO-DATE
:CordovaLib:packageDebugLocalJar UP-TO-DATE
:CordovaLib:packageDebugRenderscript UP-TO-DATE
:CordovaLib:bundleDebug UP-TO-DATE
:prepareAndroidCordovaLibUnspecifiedDebugLibrary UP-TO-DATE
:prepareDebugDependencies
:compileDebugAidl UP-TO-DATE
:compileDebugRenderscript UP-TO-DATE
:generateDebugBuildConfig UP-TO-DATE
:generateDebugAssets UP-TO-DATE
:mergeDebugAssets UP-TO-DATE
:generateDebugResValues UP-TO-DATE
:generateDebugResources UP-TO-DATE
:mergeDebugResources UP-TO-DATE
:processDebugManifest UP-TO-DATE
:processDebugResources UP-TO-DATE
:generateDebugSources UP-TO-DATE
:compileDebugJava UP-TO-DATE
:preDexDebug UP-TO-DATE
:dexDebug UP-TO-DATE
:processDebugJavaRes UP-TO-DATE
:validateDebugSigning
:packageDebug UP-TO-DATE
:zipalignDebug UP-TO-DATE
:assembleDebug UP-TO-DATE
:cdvBuildDebug UP-TO-DATE 

BUILD SUCCESSFUL

Total time: 27.114 secs
Built the following apk(s):
c:\Users\username\git\mobile\platforms\android\build\outputs\apk\android-debug.apk
 Using apk: c:\Users\username\git\mobile\platforms\android\build\outputs\apk\android-debug.apk
Installing app on device...
Launching application...
LAUNCH SUCCESS

我还要提到的命令完成后,还有我的设备上的一个小的变化。一个小菜单弹出,有三个选项,墙纸,管理应用程序和系统设置。但是,应用程序未启动,也没有出现在已安装的应用程序列表中。

I should also mention that after the commands finish, there IS a small change on my device. A small menu pops up, with three options, "Wallpaper", "Manage apps", and "System settings". However, the app does not launch, nor does it appear in the list of installed apps.

推荐答案

固定它在我自己的:原来,虚拟设备的类型是问题。我一直在使用谷歌一Galaxy Nexus的4.1.1 API 16的设备,切换到谷歌Nexus 4 5.1.0 API 22修好了!

Fixed it on my own: turns out, the type of virtual device was the problem. I had been using a Google Galaxy Nexus 4.1.1 API 16 device, switching to Google Nexus 4 5.1.0 API 22 fixed it!

这篇关于离子应用说,在Android模拟器运行,但不的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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