Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 Jun 22
sparklines
Close Help
  • 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
2
Question by Samuel014 · Aug 25, 2019 at 01:59 PM · errorandroid builderror buildandroid sdkadb

Build Project to Android Error: Unable to start ADB server.

Hello, When I try to build my Unity project to my android device, it gives the error: Unable to start ADB server. Please make sure the Android SDK is installed and is properly configured in the Editor. See the Console for more details. I have the Android SDK, NDK and JDK all set up. I have looked up for the error, but I really can't find a solution. I'm in Unity 2019.3.0a11, is it possible I have this error because I'm in an alpha version? Does anyone have a link with the steps to build Unity projects to Android? Or does anyone know how to fix this error?

Thanks in case

Comment
Add comment · Show 3
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 xxmariofer · Aug 25, 2019 at 08:38 PM 0
Share

can you try running adb manually? go to the sdk path, there will be a platform-tools foler oopen the ter$$anonymous$$al there and try running this command

adb devices

see if any errors prompt

avatar image DaveG · Sep 04, 2019 at 05:47 PM 0
Share

Around this same time, I also started getting this error. I installed Unity 2019.2.2 and everything was fine the first day. I went home and installed there on a new PC and it worked there. Came back to my office and this error started.

I tried upgrading today to 2019.2.3 and still receive the same error. I'm not sure if Windows is blocking the program or if it has something to do with Android Studio.

I can run ADB manually.

avatar image xxmariofer DaveG · Sep 05, 2019 at 06:12 AM 0
Share

you are getting the same adb server error? i think that in 2019 there is a togle of "use unity sdk" or something like that (i have never used that version) in the prference window, untogle and go to the path where you know you have sdk installed, also i would try starting the server manually, using for example "adb start-server" in case you are getting the same error that should fix it and maybe give you a new one if something is wrong with your sdk, also some of the build tools versions dont work well with unity, the next step i would go is to install a version a bit older of that folder

11 Replies

· Add your reply
  • Sort: 
avatar image
3

Answer by jimmy_huang · Mar 05, 2020 at 01:11 PM

@Samuel014 Hi, I solved this error just yet! it caused by overlap between the two adb.exe : one at the SDK folder that you instruct Unity to search, the other one at your phone's driver folder-->remove this one! Then you can use cmd to check if the right adb.exe is detected. you can see the figure that I attached. Hope this is useful to you. alt text


如何讓untiy正確讀到手機.png (285.7 kB)
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
2

Answer by BootySmashDeluxe · Dec 31, 2020 at 11:15 PM

My solution was to close my android emulator, Nox.

Took me a very long time to realize I just needed to close it :)

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 DaveG · Sep 05, 2019 at 02:15 PM

My issue appears to be that the ADB server is not starting up automatically... or that the wrong one is starting. I'm not yet sure which.

Unity tools will install its own Android toolset.

My resolve was to: - open the Windows console as admin (cmd... run as admin) - type the following: "C:\Program Files\Unity\Hub\Editor\2019.2.3f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\adb.exe" kill-server - type the following: "C:\Program Files\Unity\Hub\Editor\2019.2.3f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\adb.exe" start-server

Note that your path to adb may be different.

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 Samuel014 · Oct 14, 2019 at 01:13 PM

Thanks for the replies. I tried all of it but keep getting the same error in the command prompt: "adb server version (39) doesn't match this client (40); killing... could not read ok from ADB Server * failed to start daemon error: cannot connect to daemon", I really don't know what this means. I'm only 14 years old but I did build a game and know how to code, but I barely understand anything about all the other stuff on how to set it up like what SDK's and ADB and all of this is. So now I'm trying to build my game for an Android tablet so I can test it of course. But like I said above, I keep getting the same errors, and when I look them up, I can't find anything to solve it. So does anyone know a detailed tutorial or something on how to do this or on how to solve this errors?

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 jojue · Jan 10, 2020 at 03:02 PM

I was able to solve the problem by closing Unity, connecting the android device, restarting Unity, enter play mode once, exit playmode and then build and run to the device.

Seems the 2019.3 release version is still a bit buggy.

EDIT: In the end it was also the HTC manager, that was installed by my phone, that started up it's own ADB server, instead of the Unity ADB server. Deleted the HTC Sync Manager and all was working normally again. To find to out if there is another adb starting up, just plug your phone into the PC (with Unity closed) and check the Task manager for a running adb.

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
  • 3
  • ›

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.

Follow this Question

Answers Answers and Comments

153 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 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 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 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 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Android Builds ends up with error 2 Answers

I got This error when i was trind to build a apk file in unity plz Help,I was trying to build a apk and then i got this error plz Help 0 Answers

4 errors after implementing unity ads in my game. 0 Answers

MissingMethodException: get_vuforiaEnabled() 3 Answers

Multiple errors: Gradle/SDK/JDK related. Unity android build 5 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