- Home /
How do I set up an Android device for Build & Run?
I successfully ran Build on my project and loaded it manually on my phone. It installed and loaded successfully.
When I try to do a Build & Run, I get an error about my phone not being set up. I have tried to set up my device in Eclipse, but am not sure if I'm on the right track.
In Build & Run I get to this step:
"Getting list of attached devices"
"Trying locate a suitable Android device..." (Yes, the typo is in the message.)
And then I get this Build failure message:
"Unable to kill the adb server. Please make sure the Android SDK is installed and is properly configured in the Editor. See the Console for more details."
In the Console it says:
C:/.../sdk/platform-tools/adb.exe kill-server
stderr[ server not running ]
stdout[ ]
Any help setting up my phone for Build & Run would be very appreciated.
Answer by sanmn19 · Jan 15, 2014 at 04:28 AM
These question may help you figure out the problem:
Have you installed the latest Android SDK? If yes, re-download it. (I know this seems irrelevant but sometimes it works)
Locate //Platform-tools/adb.exe. Go to the installed SDK location in command prompt. Type "adb devices". Check if you see your device in the list. Try these steps and let me know the result.
EDIT: It says adb server not running. So "adb devices" will automatically restart server.
Thanks, @sanmn19.
I am downloading the Android SD$$anonymous$$ now and will try again once it loads.
After typing "adb devices" in the adb.exe directory, it says:
"daemon not running. starting it now on port 5037"
"daemon started successfully"
"List of devices attached"
...and then it brings up the next prompt. No devices are listed.
Should I set up an Android Virtual Device or Create a new device? I hoped it would recognize my phone via USB, but it didn't.
Try this link :http://developer.android.com/tools/extras/oem-usb.html to install the required drivers to detect your phone in developer mode.
Thanks again, @sanmn19! I installed the latest SD$$anonymous$$ and set up the USB driver for my phone. The Build & Run ran successfully and pushed the build to my phone. Thank you, thank you!
I am getting a similar problem - "Unable to retrieve device properties..." on "Build & Run" but successful on using build alone. Running "adb devices" I get a single item in the list of attached devices with a status saying it's offline. The device is my tablet nexus 7...Any advice?
Answer by najeebullah_shah · Dec 14, 2014 at 02:09 PM
Plug off your data cable and press alt+ctrl+delete and then select 'Processes' kill the process by the name 'adb.exe' and then plug in the data cable of your device. Now 'Build and Run' will work. Hope this helps.
Thanks, @najeebullah_shah. This also works when Unity freezes for other reasons. $$anonymous$$illing adb.exe gets Unity back to doing whatever it was doing.
On windows 10 we should ter$$anonymous$$ate a process through 'Resource $$anonymous$$onitor' utility
Answer by alex narvas · Dec 19, 2014 at 08:10 PM
I followed the steps in
but even then, I had to troubleshoot getting windows to see the device, I had to uninstall and then get the update from the nook developer website. it all explains it in that link above.