Can't build directly to Android device

Hi there,

I recently managed to get one of my projects working with my android device. When I click build and run the project automatically builds straight to my phone.

I’ve since started a new project and when I click build and run it instead takes me to a dialog where I can save my .apk. It’s almost as if this project doesn’t recognise my phone.

Am I missing something here? My device is definitely connected as the other project still builds straight to phone. I assume all settings are saved across projects as the sdk and jdk still point to the right place.

Thanks for your help!

Click “Build And Run” (or Ctrl-B on Win, Cmd+B on Mac). It will ask you for the apk name, specify the name and click OK - it will build the apk, and then upload it to the device. APK itself won’t be deleted after installed to the device.

Tip: Ctrl-B or Cmd+B will ask for APK name only the first time, and will reuse that name later. So second time it will not ask you anything.

Try again set the android SDK tool. And check if your mobile have USB debbuging and if you in unity choosed android platform…

alt text

It will always ask for a name the first time.

But here’s the thing:

If you go through the file menu and hit Build & Run it will build directly thereafter.

If you hit the Build And Run button in the Build Settings through the file menu it will always ask you for a name. (5.1.1f1)