官术网_书友最值得收藏!

Time for action – configuring the USB driver on Windows

The file we need to edit on Windows operating systems is found at C:\Development\adt-bundle-windows-x86_64\sdk\extras\google\usb_driver\android_winusb.inf. Perform the following steps to edit the driver file:

  1. Double-click on the file to open it in Notepad and find the section that begins with [Google.NTx86]. You'll see a list of devices already below this header; after the last device, add the highlighted text shown in the following screenshot:
    Time for action – configuring the USB driver on Windows
  2. Add the same block of text in the same place under the similar section [Google.NTamd64], then save the document, and close Notepad.

    Tip

    The values that you entered shouldn't have a blank space after them, including any spaces or returns. Make sure that each line ends with the final character to avoid errors.

  3. Next, open the Windows Command Prompt and run the following commands:
    adb kill-server
    echo 0x2836 >> "%USERPROFILE%\.android\adb_usb.ini"
    adb start-server
  4. Close the command prompt and right-click on Computer in your Start menu. Select Properties, and in the window that opens select Device Manager. Locate the OUYA Console on the list—most likely under Portable Devices—right-click on it and select Update Driver Software…, as shown in the following screenshot:
    Time for action – configuring the USB driver on Windows
  5. Choose Browse my computer for the driver software and then select Let me pick from a list of device drivers on my computer. Click on Show All Devices if available and then on Have Disk on the resulting screen. Navigate to the directory that contains your edited driver file, accept the driver, and exit. Your computer is now ready to recognize your console.

Tip

Your computer may warn you that the device driver isn't signed. In this case, you can go ahead and ignore it because the driver is safe. The fact that the driver is unsigned is the reason we had to manually point to its location, but other than that it won't have any impact on what you need to do.

What just happened?

You downloaded the USB driver for general Android devices, but the driver needed a little more tweaking before it was ready to communicate with the OUYA. To fix this, you added an OUYA entry to the driver, making it recognizable by your computer.

Having the correct drivers is important because you'll be sending code from your Unity development environment directly to the OUYA console to build and debug via USB, and without that additional entry in the driver file it would result in an error.

主站蜘蛛池模板: 东至县| 阿坝县| 米泉市| 黎平县| 久治县| 宿迁市| 库尔勒市| 龙州县| 万宁市| 宝应县| 视频| 碌曲县| 靖宇县| 大庆市| 新津县| 萍乡市| 盐山县| 郁南县| 兴安县| 阿图什市| 滁州市| 徐闻县| 青岛市| 四子王旗| 迁西县| 塔城市| 措勤县| 南通市| 京山县| 松桃| 米林县| 阿拉善盟| 宜丰县| 民和| 沐川县| 凌源市| 大邑县| 于田县| 重庆市| 太保市| 策勒县|