- Home /
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!
Have you tried saving the AP$$anonymous$$? Its got to make the file to upload it.
Yeah I basically ended up saving the apk in the default location that Unity goes to and that worked fine.
Answer by Yury-Habets · Jul 10, 2015 at 12:05 PM
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.
Answer by MrJohny · Jul 10, 2015 at 11:00 AM
Try again set the android SDK tool. And check if your mobile have USB debbuging and if you in unity choosed android platform...
Answer by meat5000 · Jul 11, 2015 at 12:22 AM
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)
Your answer

Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Set build player to android, unity reverts to web player on restart. 0 Answers
Signing the android apk with a cryptographic key? 1 Answer
Can't build into Android 2 Answers
Problem with android build ! 0 Answers