使用 Eclipse 在 Dell Venue 7 上调试 Android 应用程序
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/20751643/
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
Debugging Android Apps on Dell Venue 7 using Eclipse
提问by CSC
I recently bought Dell Venue 7 tablet. I am planning to use that for testing and debugging android apps. Unfortunately the usb driver for that device does not exits. I checked the dell website and they say that the driver for that device is not hosted on their website. They haven't provided information regarding where i can get the drivers for that device.
我最近买了戴尔 Venue 7 平板电脑。我打算用它来测试和调试 android 应用程序。不幸的是,该设备的 USB 驱动程序没有退出。我查看了戴尔网站,他们说该设备的驱动程序未托管在他们的网站上。他们没有提供有关我可以从哪里获得该设备驱动程序的信息。
I had Samsung Galaxy tab 3 and for that device i was able to download the device driver from Samsung website and test and debug applications using eclipse. Dell Venue 7 does not have device drivers.
我有三星 Galaxy tab 3,对于那个设备,我可以从三星网站下载设备驱动程序,并使用 eclipse 测试和调试应用程序。Dell Venue 7 没有设备驱动程序。
Any help regarding how i can test and debug applications on Dell Venue 7 would be greatly appreciated.
任何有关我如何在 Dell Venue 7 上测试和调试应用程序的帮助将不胜感激。
回答by lenrok258
sonicbabbler's solution did not work out well for me. I was still not able to force windows to recognize tablet and therefore adb was blind.
sonicbabbler 的解决方案对我来说效果不佳。我仍然无法强制 Windows 识别平板电脑,因此 adb 是盲人。
I've found solution here: http://opensource.dell.com/releases/venue8/developer-edition/Dell%20Tablet%20Install%20Instructions.pdfin section "Install the USB driver for adb mode".
我在这里找到了解决方案:http: //opensource.dell.com/releases/venue8/developer-edition/Dell%20Tablet%20Install%20Instructions.pdf在“为 adb 模式安装 USB 驱动程序”部分。
Steps that need to be taken:
需要采取的步骤:
- Turn on “USB debugging” on your tablet (Settings -> System -> Developer Options)
- Connect the Tablet to your computer
- Open the device manager (Control Panel -> System and Security -> Device Manager)
- Right Click on unrecognized device (in my case that was: “Other Device / Android”) -> Properties
- Select the “Details” tab then choose “Hardware Ids” from the drop down list
- Copy the two values from the window
- Navigate to the location where Android SDK is installed (if you have Android Studio installed it is usually in {android_studio_dir}\sdk)
- Edit the file sdk->extras->google->usb_driver->android_winusb.inf file (if you are missing such path - install google usb driver using Android SDK Manager)
- Add the ID's that you copied into the file and save the file. Make sure that you add the entries to both the 32-bit section ([Google.NTx86]) and the 64-bit section ([Google.NTamd64]) of the file
- Back to the “Device Manager” Window, Right Click on “Android” and select “Update Driver Software”
- Select “Browse my computer for Driver software”
- Click the “Browse” button
- Browse to the location of the “sdk->extras->google->usb_driver” in the SDK
- Select “Next”, Select “Install this driver software anyway”
- The success screen will be displayed, click “Close”
- 在平板电脑上打开“USB 调试”(设置 -> 系统 -> 开发人员选项)
- 将平板电脑连接到您的计算机
- 打开设备管理器(控制面板 -> 系统和安全 -> 设备管理器)
- 右键单击无法识别的设备(在我的情况下是:“其他设备/Android”)-> 属性
- 选择“详细信息”选项卡,然后从下拉列表中选择“硬件 ID”
- 从窗口复制两个值
- 导航到安装 Android SDK 的位置(如果您安装了 Android Studio,它通常在 {android_studio_dir}\sdk 中)
- 编辑文件 sdk->extras->google->usb_driver->android_winusb.inf 文件(如果您缺少这样的路径 - 使用 Android SDK Manager 安装 google usb 驱动程序)
- 添加您复制到文件中的 ID 并保存文件。确保将条目添加到文件的 32 位部分 ([Google.NTx86]) 和 64 位部分 ([Google.NTamd64])
- 返回“设备管理器”窗口,右键单击“Android”并选择“更新驱动程序软件”
- 选择“浏览我的计算机以查找驱动程序软件”
- 点击“浏览”按钮
- 浏览到SDK中“sdk->extras->google->usb_driver”所在的位置
- 选择“下一步”,选择“始终安装此驱动程序软件”
- 将显示成功屏幕,单击“关闭”
回答by sonicbabbler
I just got a Venue 8 and was able to get this working. Here is what I did.
我刚刚得到了一个 Venue 8 并且能够让它工作。这是我所做的。
- Put the Venue in developer mode - SETTINGS > ABOUT > tap the Build Number seven times.
- Go to SETTINGS > DEVELOPER OPTIONS > and check the USB Debugging option
- Plug it into your computer - I'm using Windows 8.1.
- Open the Device Manager and locate the Android ? device.
- Download the Intel Android driver, I used v1.1.5 https://secure-software.intel.com/es-es/protected-download/385047/494732
- The install will fail on Win8.1, extract the EXE with 7zip
- In the device manager right click on Android-Phone > Browse my computer for driver software > Choose Let me pick from a list of device drivers on my computer > Select Android device > Have Disk > Navigate to the folder you unpacked the exe and select "android_winusb.inf" > Select Android Bootloader Interface > Press OK on the warning to proceed
- In the device manager it will show up at "Android Phone/Android Bootloader Interface"
- Open Eclipse and browse to the Android Device Chooser and under Choose a running Android device, the option Dell-venue_8_3830-DellVenue8... should show up.
- I was able to successfully deploy an app to the device.
- 将 Venue 置于开发者模式 - 设置 > 关于 > 点击内部版本号七次。
- 转到设置 > 开发人员选项 > 并检查 USB 调试选项
- 将其插入您的计算机 - 我使用的是 Windows 8.1。
- 打开设备管理器并找到 Android ? 设备。
- 下载Intel Android驱动,我用的是v1.1.5 https://secure-software.intel.com/es-es/protected-download/385047/494732
- 在Win8.1上安装会失败,用7zip解压EXE
- 在设备管理器中右键单击 Android 手机 > 浏览我的计算机以查找驱动程序软件 > 选择让我从计算机上的设备驱动程序列表中选择 > 选择 Android 设备 > 从磁盘安装 > 导航到您解压 exe 的文件夹并选择“ android_winusb.inf" > 选择 Android Bootloader 界面 > 在警告上按 OK 继续
- 在设备管理器中,它将显示在“Android Phone/Android Bootloader Interface”
- 打开 Eclipse 并浏览到 Android 设备选择器,在选择正在运行的 Android 设备下,应该会显示选项 Dell-venue_8_3830-DellVenue8...。
- 我能够成功地将应用程序部署到设备上。
回答by Woceyth
I did this before, while having the same issue on my Windows 8.1 Computer:
我以前这样做过,但在我的 Windows 8.1 计算机上遇到了同样的问题:
- Right click on the EXE, select "Properties".
- Select the tab "Compatibility".
- Enable the check box "Execute this program in compatibility mode for" and select "Windows 7" and click "Accept".
- 右键单击 EXE,选择“属性”。
- 选择选项卡“兼容性”。
- 启用复选框“以兼容模式执行此程序”并选择“Windows 7”并单击“接受”。
It should be working.
它应该工作。
回答by Alex Byrth
I'm using Dell Venue 7 with Android 4.4.4. To allow Eclipse Adt debuggin I followed about tips, and get the MTP driver's hardware id at Windows' Device Manager. It is slightly different from ID above. perhaps because I'm using a newer/updated Venue 7. On "About Tablet", I have the following: Software Version: Venue7 3740_V2.10_141224-NoModem Version Number: YTP802A142000
我使用的是带 Android 4.4.4 的 Dell Venue 7。为了允许 Eclipse Adt 调试,我遵循了一些提示,并在 Windows 的设备管理器中获取 MTP 驱动程序的硬件 ID。它与上面的 ID 略有不同。也许是因为我使用的是更新/更新的 Venue 7。在“关于平板电脑”上,我有以下内容: 软件版本:Venue7 3740_V2.10_141224-NoModem 版本号:YTP802A142000
So I added the following lines to my android_winusb.inf file at folder C:\Android\ADT\sdk\extras\google\usb_driver, in both sections [Google.NTx86] and [Google.NTamd64]
因此,我在文件夹 C:\Android\ADT\sdk\extras\google\usb_driver 的 android_winusb.inf 文件中添加了以下几行 [Google.NTx86] 和 [Google.NTamd64]
;Dell Venue 7 3740 - Android 4.4.4 - software version Venue7 3740_V2.10_141224-NoModem
%CompositeAdbInterface% = USB_Install, USB\VID_413C&PID_B133&REV_????&MI_01
%CompositeAdbInterface% = USB_Install, USB\VID_413C&PID_B133&MI_01
I got those values from Device Manager, as stated on steps 3 to 5 from leram258 post. After the update, I went back to Device Manager and forced the unrecognised device MTP to updated drivers, just as described at step 10 and forward, from lerom258 post.
我从设备管理器中获得了这些值,如 leram258 帖子的第 3 到 5 步所述。更新后,我回到设备管理器并强制无法识别的设备 MTP 更新驱动程序,正如 lerom258 帖子中第 10 步及以后所述。
Works just fine.
工作得很好。