• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by brag42 · Jan 15, 2014 at 04:22 AM · androidbuilddeviceruneclipse

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.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

9 Replies

· Add your reply
  • Sort: 
avatar image
5
Best Answer

Answer by sanmn19 · Jan 15, 2014 at 04:28 AM

These question may help you figure out the problem:

  1. Have you installed the latest Android SDK? If yes, re-download it. (I know this seems irrelevant but sometimes it works)

  2. 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.

Comment
Add comment · Show 6 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image brag42 · Jan 15, 2014 at 04:40 AM 0
Share

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.

avatar image brag42 · Jan 15, 2014 at 04:44 AM 0
Share

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.

avatar image sanmn19 · Jan 15, 2014 at 06:30 AM 2
Share

Try this link :http://developer.android.com/tools/extras/oem-usb.html to install the required drivers to detect your phone in developer mode.

avatar image brag42 · Jan 16, 2014 at 06:09 AM 0
Share

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!

avatar image Nims · Jul 28, 2014 at 11:20 AM 0
Share

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?

Show more comments
avatar image
5

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.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image brag42 · Dec 16, 2014 at 08:27 PM 0
Share

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.

avatar image IgorAherne · Jan 18, 2019 at 03:15 PM 0
Share

On windows 10 we should ter$$anonymous$$ate a process through 'Resource $$anonymous$$onitor' utility

avatar image
1

Answer by jongbeomk · Oct 19, 2014 at 06:04 AM

your anti virus could cause it too..

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
1

Answer by alex narvas · Dec 19, 2014 at 08:10 PM

I followed the steps in

https://nookdeveloper.zendesk.com/entries/21943338-NOOK-Developer-Start-Up-Guide#_Install_NOOK_SDK_Addon

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.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by alex narvas · Dec 19, 2014 at 08:10 PM

It took a few hours to figure it out

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
  • 1
  • 2
  • ›

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

29 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Trying to locate a suitable Android device... 1 Answer

Build & Run on two Android devices without replugging 1 Answer

WHY WON'T MY GAME LOAD ON MY DEVICE? 0 Answers

Unity app not running in Android phone. 0 Answers

Can the Samsung Galaxy Prevail be used with Unity? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges