• 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
0

Answer by Reydros · Mar 04, 2020 at 01:17 PM

Not sure if this will help others but what fixed it for me was going to edit->preferences->external tools and then checking the boxes to use the SDK and JDK installed with unity

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 ChangBroot · Jul 01, 2020 at 11:44 PM

I had this problem with Huawei P30 Lite and Samsung Galaxy Tab E. Installed Samsung Driver, Disabled Firewall (McAfee) and still didn't work.

Solution: I had to install Android Studio along with SDK, and during its installation, it tells you where the SDK will be installed (in my case at C:\Users[My Name]\AppData\Local\Android\Sdk). I copied this location, went to Unity -> Edit -> Preferences -> unchecked Android SDK....and replaced this new sdk folder location there. Finally, closed Unity, restarted my computer and it worked.

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 sinjimonkey · Jul 31, 2020 at 03:49 PM

Thanks for this! I had a copy of ADB in a program that allows me to use my phone as a second monitor (XDisplay) and deleting that allowed Unity to compile.

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 unity_03phillipsm · Sep 21, 2020 at 10:09 PM

In my case, I found that the Oculus Developer Hub program came with its own version of ADB, and that copying the following files from my Unity platform-tools folder into the Oculus Developer Hub folder resolved the issue.

Files: - adb.exe - AdbWinApi.dll - AdbWinUsbApi.dll

Unity folder: /Editor/Data/PlaybackEngines/AndroidPlayer/SDK/platform-tools

Oculus Developer Hub folder: C:/Program Files/Oculus Developer Hub/resources/bin,In my case, I found that the Oculus Developer Hub program came with its own version of ADB, and that copying the following files from my Unity platform-tools folder into the Oculus Developer Hub folder resolved the issue.

Files: - adb.exe - AdbWinApi.dll - AdbWinUsbApi.dll

Unity folder: /Editor/Data/PlaybackEngines/AndroidPlayer/SDK/platform-tools

Oculus Developer Hub folder: C:/Program Files/Oculus Developer Hub/resources/bin

Comment
Add comment · Show 1 · 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 IsDon · Nov 24, 2020 at 12:44 PM 0
Share

I hit the same conflict between 2 different adb.exe files (Unity and Oculus Dev Hub) and I just set the Oculus Hub to use Unity's. Worked nicely.

avatar image
0

Answer by ahmedaniss · Dec 09, 2020 at 03:24 AM

problem fixed here : https://youtu.be/9N8a73tewxk

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.

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

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

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

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

adb install: connection reset by peer 3 Answers

MissingMethodException: get_vuforiaEnabled() 3 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