使用 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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 21:25:23  来源:igfitidea点击:

Debugging Android Apps on Dell Venue 7 using Eclipse

androideclipse

提问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:

需要采取的步骤:

  1. Turn on “USB debugging” on your tablet (Settings -> System -> Developer Options)
  2. Connect the Tablet to your computer
  3. Open the device manager (Control Panel -> System and Security -> Device Manager)
  4. Right Click on unrecognized device (in my case that was: “Other Device / Android”) -> Properties
  5. Select the “Details” tab then choose “Hardware Ids” from the drop down list
  6. Copy the two values from the window
  7. Navigate to the location where Android SDK is installed (if you have Android Studio installed it is usually in {android_studio_dir}\sdk)
  8. 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)
  9. 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
  10. Back to the “Device Manager” Window, Right Click on “Android” and select “Update Driver Software”
  11. Select “Browse my computer for Driver software”
  12. Click the “Browse” button
  13. Browse to the location of the “sdk->extras->google->usb_driver” in the SDK
  14. Select “Next”, Select “Install this driver software anyway”
  15. The success screen will be displayed, click “Close”
  1. 在平板电脑上打开“USB 调试”(设置 -> 系统 -> 开发人员选项)
  2. 将平板电脑连接到您的计算机
  3. 打开设备管理器(控制面板 -> 系统和安全 -> 设备管理器)
  4. 右键单击无法识别的设备(在我的情况下是:“其他设备/Android”)-> 属性
  5. 选择“详细信息”选项卡,然后从下拉列表中选择“硬件 ID”
  6. 从窗口复制两个值
  7. 导航到安装 Android SDK 的位置(如果您安装了 Android Studio,它通常在 {android_studio_dir}\sdk 中)
  8. 编辑文件 sdk->extras->google->usb_driver->android_winusb.inf 文件(如果您缺少这样的路径 - 使用 Android SDK Manager 安装 google usb 驱动程序)
  9. 添加您复制到文件中的 ID 并保存文件。确保将条目添加到文件的 32 位部分 ([Google.NTx86]) 和 64 位部分 ([Google.NTamd64])
  10. 返回“设备管理器”窗口,右键单击“Android”并选择“更新驱动程序软件”
  11. 选择“浏览我的计算机以查找驱动程序软件”
  12. 点击“浏览”按钮
  13. 浏览到SDK中“sdk->extras->google->usb_driver”所在的位置
  14. 选择“下一步”,选择“始终安装此驱动程序软件”
  15. 将显示成功屏幕,单击“关闭”

回答by sonicbabbler

I just got a Venue 8 and was able to get this working. Here is what I did.

我刚刚得到了一个 Venue 8 并且能够让它工作。这是我所做的。

  1. Put the Venue in developer mode - SETTINGS > ABOUT > tap the Build Number seven times.
  2. Go to SETTINGS > DEVELOPER OPTIONS > and check the USB Debugging option
  3. Plug it into your computer - I'm using Windows 8.1.
  4. Open the Device Manager and locate the Android ? device.
  5. Download the Intel Android driver, I used v1.1.5 https://secure-software.intel.com/es-es/protected-download/385047/494732
  6. The install will fail on Win8.1, extract the EXE with 7zip
  7. 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
  8. In the device manager it will show up at "Android Phone/Android Bootloader Interface"
  9. 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.
  10. I was able to successfully deploy an app to the device.
  1. 将 Venue 置于开发者模式 - 设置 > 关于 > 点击内部版本号七次。
  2. 转到设置 > 开发人员选项 > 并检查 USB 调试选项
  3. 将其插入您的计算机 - 我使用的是 Windows 8.1。
  4. 打开设备管理器并找到 Android ? 设备。
  5. 下载Intel Android驱动,我用的是v1.1.5 https://secure-software.intel.com/es-es/protected-download/385047/494732
  6. 在Win8.1上安装会失败,用7zip解压EXE
  7. 在设备管理器中右键单击 Android 手机 > 浏览我的计算机以查找驱动程序软件 > 选择让我从计算机上的设备驱动程序列表中选择 > 选择 Android 设备 > 从磁盘安装 > 导航到您解压 exe 的文件夹并选择“ android_winusb.inf" > 选择 Android Bootloader 界面 > 在警告上按 OK 继续
  8. 在设备管理器中,它将显示在“Android Phone/Android Bootloader Interface”
  9. 打开 Eclipse 并浏览到 Android 设备选择器,在选择正在运行的 Android 设备下,应该会显示选项 Dell-venue_8_3830-DellVenue8...。
  10. 我能够成功地将应用程序部署到设备上。

回答by Woceyth

I did this before, while having the same issue on my Windows 8.1 Computer:

我以前这样做过,但在我的 Windows 8.1 计算机上遇到了同样的问题:

  1. Right click on the EXE, select "Properties".
  2. Select the tab "Compatibility".
  3. Enable the check box "Execute this program in compatibility mode for" and select "Windows 7" and click "Accept".
  1. 右键单击 EXE,选择“属性”。
  2. 选择选项卡“兼容性”。
  3. 启用复选框“以兼容模式执行此程序”并选择“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.

工作得很好。