No android device found in unity

前端 未结 11 2216
花落未央
花落未央 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: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.

提交回复
热议问题