Android Projects Troubleshooting

Hey guys,

I am trying to Build & Run one of my projects on my Android phone (Lolipop, BLU Studio 6.0 HD). I have enabled USB debugging and it shows up once connected to the laptop. However, whenever I try to Build & Run the editor gets stuck on checking for connected devices and reports an error. I have been able to copy the APK file to my phone and work from there. However, I would like to be able to run updates to my phone faster.

I appreciate all the advice.

What is the error that appears?

Also have to TOGGLE Security> Unknown Sources

“No Android device found!”
I have the Unknown Sources enabled.

Yes, but the console does not show a message saying why not have found the device? It is usually shown something.

"UnityException: Couldn’t find Android device
No Android devices found. If you are sure that device is attached then it might be USB driver problem, for details please check Android SDK Setup section in Unity devial.

UnityEditor.Android.PostProcessAndroidPlayer.ShowErrDlgAndThrow (System.String title, System.String message, System.Exception ex)
UnityEditor.Android.PostProcessAndroidPlayer.ShowErrDlgAndThrow (System.String title, System.String message)
UnityEditor.Android.PostProcessAndroidPlayer.FindDevice ()
UnityEditor.Android.PostProcessAndroidPlayer.PostProcessInternal (BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options)
UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (BuildPostProcessArgs args)
UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, System.String downloadWebplayerUrl, System.String manualDownloadWebplayerUrl, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:316)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()"

“Error building Player: UnityException: Couldn’t find Android device
No Android devices found. If you are sure that device is attached then it might be USB driver problem, for details please check Android SDK Setup section in Unity devial.”

The phone shows indicators of USB Debugging when connected to the laptop.

First thing to do would be to run ‘adb devices’ to see if the issue is with Unity or not.

I’ve had similar problem and it was a headache to solve, Try updating the device drivers.

If updating the drives does not work.

  • Disconnect the device from your computer, go to developer options and click “Revoke USB debugging authorization”.
  • Disable USB Debugging and disable Developer Options.
  • Enable Developer Options and USB Debugging again.
  • Plug the device into the computer again, the device should show something like this image, but in your language.
    See the Image

Select “Always Allow Starting This Computer” and press ok.

If it still does not work, try Restart ADB Server.

In Command Prompt
“AppData\Local\Android\sdk\platform-tools\adb” It is the path where the SDK is installed on my computer
csharp** **AppData\Local\Android\sdk\platform-tools\adb kill-server** **
csharp** **AppData\Local\Android\sdk\platform-tools\adb start-server** **

To find out if your device is being recognized. “The device must be connected to the computer”

AppData\Local\Android\sdk\platform-tools\adb devices

You should see the list of devices. Something like this:

That solved the problem for me. If not work for you, I do not know what can be.

Make sure you plug in the device BEFORE you run unity. Unity, for whatever reason, doesn’t detect new devices most of the time (I say most because I think it did one time but I might have had it plugged in, unplugged it, and plugged it back in while unity was still running and I just think that unity detected it, haha).

  1. Plug in device.
  2. Open Unity.
  3. ???
  4. Profit.

Hey guys,

Sorry for replying after so long. Unfortunately, I tried all the suggestions you gave and I still can’t get Unity to see the device. I am going to settle for manually uploading versions to my phone. If anyone has anymore feedback, please share.

Very Respectfully,

Volk