Android的工作室通过LAN连接到设备 [英] Connect Android Studio to device via LAN

查看:306
本文介绍了Android的工作室通过LAN连接到设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Debian 8.1,Android的工作室1.2.2和Android的根深蒂固电视盒采用Android 4.2.2

I am using Debian 8.1, Android Studio 1.2.2 and a rooted Android TV Box with Android 4.2.2

现在我想通过局域网电视盒连接到Android的工作室,直接测试,我开发的应用程序。

Now I am trying to connect the TV Box to Android Studio via LAN, to directly test the app that I am developing.

我的电脑和Android箱是相同的网络。我也可以通过在Linux控制台连接到框:

My PC and the Android Box are in the same network. Also I can connect to the box in the Linux-console via:

adb connect 192.168.50.104

它说:

connected to 192.168.50.104:5555

我完全可以通过ADB命令来访问Android的电视盒在控制台中。

I can fully access the Android TV Box via adb commands in the console.

不过遗憾的是Android的Studio不找到设备...当我尝试编译应用程序,Android的工作室给我了选择对话框,在那里我可以启动模拟器,或者选择一个正在运行的设备。但是,运行设备说:没什么可显示

But unfortunately Android Studio does not find the device... When I try to compile the app, Android Studio gives me the "Chooser Dialog", where I can Launch the Emulator, or choose a running device. But "running devices" says "nothing to show"

这是什么问题?

更新1:
这是设备BTW:
http://www.geniatech.com/pa/atv1200.asp

更新2:
在Windows中它完美!亚行连接192.168.50.104,瞧!该装置中示出在列表中的Andr​​oid工作室...

UPDATE 2: in Windows it works perfectly! Adb connect 192.168.50.104 and voila! The device is shown in the list in Android Studio...

推荐答案

我终于找到了解决问题的办法。

I finally found the solution to the problem.

在Linux系统我改名,与包经理来到亚洲开发银行

On the linux system I renamed the adb that came with the package-manager

cd /usr/bin/
sudo mv adb backup_adb

比我创建了一个符号链接到亚行中,提供了Android SDK工作室:

Than I created a symlink to the adb, that is provided with the Android Studio SDK:

sudo ln -s ~/Android/Sdk/platform-tools/adb /usr/bin/adb

重新启动亚行和重新连接到设备,它终于在Android Studio中显示出来。

Restart adb and reconnect to the device and it finally shows up in Android Studio.

而不是重命名ADB文件的,你很可能只是删除它,用你的包管理器。

Instead of renaming the adb-file you could probably just remove it, with your package manager.

这篇关于Android的工作室通过LAN连接到设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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