Can't build & run for android (can adb install apk)

On Windows Unity 4.3, when I build use build & run, it stopped showing “No Android device found”

Here’s the console output
[21066-unnamed+qq+screenshot20140123175849.jpg|21066]

But I can build a apk, and use adb install test.apk to install to the Nexus 7. And adb devices lists the device.

I’m not sure what caused Unity not to recognize the device and build & run automatically. I can manually uninstall and build and install every time, but it’s not very efficient.

BTW the build & run works fine on my Mac machine. Here’s the environments where it won’t work:

  • Windows x64
  • Unity v 4.3.3f1
  • Android SDK Tools r22.3
  • device is Nexus 7 (2013), updated to Android 4.4.2

Thanks to any thoughts on this!

First, make sure unity knows where Android SDK is. If you’r sure it’s correct than open up the cmd and go to the directory you installed Android.

go to the folder “platform-tools” like this

cd c:\Android\platform-tools

and execute this command next

adb devices -l

if your phone does not show up the phone is not connected to the computer, you might lack the drivers for it or your cable might be loose.

Also, Unity connects to the device by connecting to the adb manager, so your firewall might be blocking it.

You can also check if Unity can see the phone quickly if you install the Unity remote application from Google Play.

Did anyone manage to solve this problem?