eclipse 三星 Galaxy S3 的 Linux 开发/部署
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11734963/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Linux Development/Deployment for Samsung Galaxy S3
提问by Blake Beaupain
I'm using a Linux system (Xubuntu) to develop an Android app. I am using Eclipse to develop this app. I would like to be able to test on my Samsung Galaxy S3, but Eclipse cannot seem to find my device. There is nothing listed under the "Choose a running Android device" section.
我正在使用 Linux 系统 (Xubuntu) 来开发 Android 应用程序。我正在使用 Eclipse 来开发这个应用程序。我希望能够在我的 Samsung Galaxy S3 上进行测试,但 Eclipse 似乎找不到我的设备。“选择正在运行的 Android 设备”部分下没有列出任何内容。
I searched Samsung's website for USB drivers to the Galaxy S3, but I found none for Linux - only Windows and Mac. Where's the love for us Linux users? It seems absurd that there would be no USB driver for a Linux system to communicate with a Linux-based device. Is there a driver that I can use?
我在三星的网站上搜索了 Galaxy S3 的 USB 驱动程序,但我没有找到适用于 Linux 的驱动程序——只有 Windows 和 Mac。我们 Linux 用户的爱在哪里?Linux 系统没有 USB 驱动程序与基于 Linux 的设备进行通信,这似乎很荒谬。有我可以使用的驱动程序吗?
采纳答案by Andro Selva
Did you try
你试过了吗
adb kill-server
adb start-server
adb 杀死服务器
adb 启动服务器
It is required to do the above in Linux. And also you should be logged in as root user,
需要在 Linux 中执行上述操作。而且你应该以root用户身份登录,
https://stackoverflow.com/a/3129903/603744
https://stackoverflow.com/a/3129903/603744
Or if by any chance you haven't seen this question ,
或者,如果您有机会没有看到这个问题,
Samsung Galaxy 7" (GT-P6210) not detecting for USB debugging?
回答by nandeesh
回答by Rajesh J Advani
USB Drivers aren't required for Linux, which is why you can't find them.
Linux 不需要 USB 驱动程序,这就是您找不到它们的原因。
To be able to deploy your application to your S3, you need to enable USB Debugging mode.
为了能够将您的应用程序部署到您的 S3,您需要启用 USB 调试模式。
Home Screen -> Apps -> Settings -> Choose Developer options -> USB debugging
主屏幕 -> 应用程序 -> 设置 -> 选择开发者选项 -> USB 调试
Home Screen -> Apps -> Settings -> Security -> Disable debug mode (turn this off)
主屏幕 -> 应用程序 -> 设置 -> 安全 -> 禁用调试模式(将其关闭)
Now connect your phone, and then run this command:
现在连接您的手机,然后运行以下命令:
adb devices
It should list your device. Also, your Android notification area should show that debugging mode is enabled.
它应该列出您的设备。此外,您的 Android 通知区域应显示已启用调试模式。
You'll now be able to deploy applications to it.
您现在可以向其部署应用程序。