Android Studio,不,minSdk(API 14) >deviceSdk(API 1)、moto G、Ubuntu 15.04 [英] Android Studio, No, minSdk(API 14) > deviceSdk(API 1), moto G, Ubuntu 15.04

查看:37
本文介绍了Android Studio,不,minSdk(API 14) >deviceSdk(API 1)、moto G、Ubuntu 15.04的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在 Ubuntu 15.04 (64) 上安装了 Android Studio (v1.4),但无法连接到我的 Moto G (Android 5.0.2) 来运行我根据教程制作的应用程序.

I just installed Android Studio (v1.4) on Ubuntu 15.04 (64) and am unable to connect to my Moto G (Android 5.0.2) to run the application I made from a tutorial.

当被要求选择设备时,我的设备选择如下:
TA9290IPXK [NULL] 否,minSdk(API 14)>deviceSdk(API 1) TA9290IPXK

When asked to choose a device, I get the following choice for my device:
TA9290IPXK [NULL] No, minSdk(API 14)>deviceSdk(API 1) TA9290IPXK

我已经在设备上启用了 USB 调试.运行adb devices"时,我得到???????????????? no permission",在杀死并重新启动 adv 服务器后,它显示正确的序列号,但是当返回 Android Studio 时它仍然如此不工作.

I already enabled USB debugging on the device. when running 'adb devices' I get " ?????????????? no permission " and after killing and restarting the adv server it displays the proper serial ID but when going back to Android Studio it still does not work.

有人遇到过这个问题吗?有人可以提供解决方案的建议吗.

Has anyone encountered this issue ? Can someone provide a suggestion of solution please.

推荐答案

好的我找到了解决方案

事实证明我在不同的路径中安装了 2 个 ADB,而 Android studio 得到了其中一个配置不正确的.我也没有正确设置 udev 规则.

Turns out I had 2 ADB installed in different Paths and Android studio was getting one of them that was not the correctly configured. I also had not properly set up the udev rules.

这是我修复它所采取的步骤
1.删​​除手动安装的ADB
2. 修改 udev 规则以添加设备(结果我的 Nexus 7 和 Moto G 分别不是 Asus 和 Motorolla,而是 Google inc.我使用lsusb"获取了正确的供应商 ID 代码它返回 XXXX:YYYYvendir ID 是 XXXX
3.在path(/Sdk/platform-tools/)中添加右边adb的位置
4.然后重新启动所有设备(计算机和安卓设备),它似乎工作正常.

Here are the step I took to get it fixed
1. Remove ADB that was installed manually
2. Modify the udev rules to add the devices (It turns out that both my Nexus 7 and Moto G were not Asus and Motorolla respectively but Google inc instead. I acquired the right Vendor ID code using "lsusb" It returns XXXX:YYYY the vendir iD is the XXXX
3. Add the location of the right adb to path ( /Sdk/platform-tools/)
4. Then rebooted all of the devices (computer and android devices) and it seems it worked.

很抱歉没有给出输入的所有终端行,作为 Ubuntu 的新手,这可能比帮助更令人困惑.

Sorry for not giving out all the terminal lines that were entered, being novice with Ubuntu it may have been a lot more confusing than helping.

希望它可以帮助处于相同情况的人.

Hopefully it can help someone that is in the same situation.

这篇关于Android Studio,不,minSdk(API 14) >deviceSdk(API 1)、moto G、Ubuntu 15.04的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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