No android device found in unity

前端 未结 11 2170
花落未央
花落未央 2020-12-06 05:26

When I am building a game for android, I get this message:

No Android device found! Make sure USB debugging has been enabled. Check your device. I

相关标签:
11条回答
  • 2020-12-06 06:01

    Manually installing the drivers for your phone worked for me.

    I did it through this link: https://developer.samsung.com/galaxy/others/android-usb-driver-for-windows. Even though it is a link from 2015, it worked perfectly fine with my Galaxy S8.

    0 讨论(0)
  • 2020-12-06 06:04

    I had this problem. In my case, the usb driver was not installed by default with the AndroidSDK. I dunno why this is even optional, but it sure screwed me up.

    Open Android Studio, click Configure->SDK Manager. In the center area, next to SDK Platforms, click the SDK Tools frame. Near the bottom is "Google USB Driver", which for me was unchecked and said Not Installed. Check the box and click Apply. It should download the usb driver. For me, it was put into C:\Users\my_name\AppData\Local\Android\Sdk\extras\google\usb_driver

    Now I can actually follow the almost-correct instructions found here: https://developer.android.com/studio/run/oem-usb.html

    0 讨论(0)
  • 2020-12-06 06:07

    1. Install the driver for Android device on your computer.

    2. Enable DEBUGGING in your Android device.

    For Unity to be able to detect your Android device, it must be recognizable by the ADB program.

    Open command prompt with cmd the change your directory to AndroidSDK\platform-tools with cd /d G:\AppDev\AndroidSDK\platform-tools .

    Replace G:\AppDev\AndroidSDK\platform-tools with your android SDK location. then type adb devices. If no device is found then Unity wont' recognize it. Reboot your computer and try it again.

    Once you see a device number, like in the picture below, then it will work in Unity.

    0 讨论(0)
  • 2020-12-06 06:07

    Changing a USB cable worked for me. Ironically, from an expensive fancy one to a super-simple cheap one.

    0 讨论(0)
  • 2020-12-06 06:10

    if @Programmer or @kamran-bigdely solutions didn't work, then go to Edit > Project Settings > Editor, and change "Device" option to "Any Android Device". Best of Luck!

    0 讨论(0)
  • 2020-12-06 06:10

    I had the same issue, it works for me

    Check ARMv7

    Unchek Android TV Compatibility

    0 讨论(0)
提交回复
热议问题