警告:未指定目标,部署到模拟器 [英] WARNING : No target specified, deploying to emulator

查看:791
本文介绍了警告:未指定目标,部署到模拟器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在手机上运行离子应用程序(Android 4.4.2)。
USB-Debugging已激活。

I'm trying to run an ionic app on my mobile phone (Android 4.4.2). USB-Debugging is activated.

当我运行命令离子模拟android时,一切正常,应用程序已打开在模拟器中。

When i run the command "ionic emulate android" everything works fine and the app is opend in the emulator.

但是当我运行commad 离子运行android时,我收到以下警告:

But when I run the commad "ionic run android" I get following warning:

警告:未指定目标,部署到模拟器

并且应用程序在虚拟设备上启动...

and the app is started on the virtual device...

该应用程序不应该在我的手机上运行吗?我究竟做错了什么?
如何指定目标?

Shouldn't the app run on my mobile phone? What am I doing wrong? How can I specify the target?

PS:当我将.apk文件复制到手机时,我可以运行该应用程序。

P.S.: When I copy the .apk file to the phone I can run the app.

推荐答案

我解决了这个问题。

这是我做的:
我键入命令行: adb devices (位于Android SDK中的platform-tools文件夹中),它返回一个空列表。

Here is what I did: I typed into the command line: adb devices (located in the "platform-tools" folder in the Android SDK) which returned me an empty list.

所以我安装了我从手机主页下载的手机驱动程序。

So I installed my phone's drivers, which I downloaded from the vendors homepage.

现在该列表包含我的设备并且应用程序已启动我的手机。

Now the list contains my device and the app is started on my mobile phone.

这篇关于警告:未指定目标,部署到模拟器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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