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

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.

主站蜘蛛池模板: 运城市| 通州区| 略阳县| 呼玛县| 五指山市| 中方县| 恩施市| 安丘市| 逊克县| 和政县| 黄平县| 蓬安县| 柳林县| 仲巴县| 奉化市| 新龙县| 太仓市| 宜州市| 双峰县| 白水县| 高淳县| 青海省| 延边| 大田县| 江川县| 鄂尔多斯市| 汉沽区| 仁化县| 望江县| 离岛区| 偃师市| 富源县| 兴海县| 甘肃省| 新源县| 三河市| 招远市| 项城市| 天台县| 潜山县| 土默特左旗|