我无法运行Groceries app / tutorial
我把所有事情都准备就绪,当我跑步时
tns run android --emulator
模拟器启动,但o app已安装。在终端我得到:
Project successfully prepared
:config phase: createDefaultIncludeFiles
+found plugins: tns-core-modules-widgets
{
"F0" {
dimension "tnscoremoduleswidgets"
}
} }
:config phase: createPluginsConfigFile
Creating product flavors include.gradle file in /Users/luka/projects/sample-Groceries/platforms/android/configurations folder...
:config phase: pluginExtend
+applying configuration from: /Users/luka/projects/sample-Groceries/platforms/android/configurations/include.gradle
+applying configuration from: /Users/luka/projects/sample-Groceries/platforms/android/configurations/tns-core-modules-widgets/include.gradle
:config phase: copyAarDependencies
:config phase: addAarDependencies
+adding dependency: /Users/luka/projects/sample-Groceries/platforms/android/libs/aar/widgets-release.aar
:preBuild UP-TO-DATE
:preF0DebugBuild UP-TO-DATE
...
...
BUILD SUCCESSFUL
Total time: 23.229 secs
This build could be faster, please consider using the Gradle Daemon: https://docs.gradle.org/2.8/userguide/gradle_daemon.html
Project successfully built
Successfully deployed on device with identifier 'emulator-5554'.
在模拟器上我看不到应用程序:(
注意通过运行:
使用genymotion设备tns livesync android --watch
我有同样的问题......
修改
我通过更改模拟器设备几次来完成工作)
我最终切换到Genymotion(快得多)
答案 0 :(得分:4)
有时Android模拟器可能有点难以开始工作。我通常使用Genymotion。如果您使用Genymotion,请确保在尝试使用lifeync之前模拟器已打开并正在运行。这是你在做什么?