- Nexus One - Build Play?

Hello all,

Has anyone gotten Unity to build play the the Android device?

When I build play it appears that the .apk is being made and delivered to the phone, but nothing happens on the phone and then the .apk can not be found on the local drive or the phone. FYI - using the Nexus One.

I can use build then copy the.apk to the phone and install but something doesn’t seem right with the B&P feature.

Any insight would be much appreciated!

Cheers,

How do you copy the apk to the phone? Did you unable USB Debugging under Settings / Application / Development? If using Windows; did you update the drivers to enable the ‘ADB Composite Device’ (have a look under the Device Manager in Windows)? Does ‘adb devices’ from command line list Nexus device (the adb command is part of the Android SDK)? Does ‘adb install ’ work? Does removing the app completely prior to Build&Run make any difference? Does ‘adb logcat’ show anything useful (ie something indicating what the problem might be)?

Yea i posted this same problem in a few threads back cause I was unable to figure out a way to get it to work but I was able to get it to work at one point in time but not since then.

Did you try to answer the previous questions? Quite possibly is your device not recognized by the system, and then Unity can’t do much. Or, something is failing when trying to install the. apk (could be a number of reasons for that; not enough free space / sdcard not ready etc).

Thanks Erique,

Phone: Nexus One (new straight from the box - no service - a dev device only) should have plenty of card space.

I have not updated the Windows drivers (Win XP Service Pack 3) – I’ll try that – thanks.

So then B&P SHOULD deploy direct to phone – Now that I know that it should work I’ll debug more :slight_smile:

Cheers,

When installing the Android SDK you have an option to download ADB drivers; those drivers will add ADB support for Nexus One.

Yes, Build&Run show definitely work.

I checked all the questions you asked Erique. And all looks good, I can even deploy my game by using ‘adb install ’. However if I use ‘Build and Run’ I get:

Error building Player: Win32Exception: ApplicationName=‘C:/android-sdk-windows\tools\adb.exe’, CommandLine=‘start-server’, CurrentDirectory=‘’
UnityEditor.HostView:OnGUI()

Any help is appreciated.

I’m guessing you updated to the just released OS 2.3 Gingerbread SDK? Then you got bitten by this.