Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
0
Question by Arishtanemi1998 · Feb 10, 2015 at 02:31 PM · androidbuildprojectandroid sdktools

Getting error while building a project for android

hey i am trying to build an android apk with unity . i have both java(in c or system drive)and android sdk(in an other drive)downloaded and installed. the error that is raised is:-

Error building Player: CommandInvokationFailure: Unable to list target platforms. Please make sure the android sdk path is correct. See the Console for more details. C:\Program Files (x86)\Java\jdk1.8.0\bin\java.exe -Xmx1024M -Dcom.android.sdkmanager.toolsdir="E:/files/android sdk\tools" -Dfile.encoding=UTF8 -jar "E:/Editor/Data/BuildTargetTools/AndroidPlayer\sdktools.jar" -

stderr[ Error:Invalid command android ] stdout[

please help!

Comment
Add comment · Show 4
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 giulio-pierucci · Feb 10, 2015 at 03:50 PM 0
Share

Did you already read this?

http://answers.unity3d.com/questions/675074/android-error-building-player-commandinvokationfai.html

avatar image Arishtanemi1998 · Feb 11, 2015 at 01:58 PM 0
Share

nope i tried all still it does not fix

avatar image giulio-pierucci · Feb 11, 2015 at 04:55 PM 0
Share

Can you post UNITY EDITOR LOGFILE?

http://docs.unity3d.com/$$anonymous$$anual/LogFiles.html

avatar image Arishtanemi1998 · Feb 12, 2015 at 02:16 PM 0
Share

i dont have it since i didnt do any build yet!

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by hexagonius · Feb 11, 2015 at 05:06 PM

I know this error from architecture mismatches. Make sure you have Java 32 bit installed, not 64 bit.

Comment
Add comment · Show 4 · 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 Arishtanemi1998 · Feb 12, 2015 at 02:14 PM 0
Share

thats what i have installed,still not working

avatar image giulio-pierucci · Feb 12, 2015 at 02:35 PM 0
Share

If you open a dos command and try to lauch ADB.exe from command line, it runs?

Or return unrecognized command?

avatar image Arishtanemi1998 · Feb 13, 2015 at 06:07 AM 0
Share

it runs that way

avatar image hexagonius · Feb 13, 2015 at 07:20 AM 0
Share

Have you checked the path of that ADB.exe in Unity? $$anonymous$$aybe you run 2 Java versions and reference the wrong one

avatar image
1

Answer by koolevil · Mar 05, 2017 at 03:26 PM

@ mihirtheboss its too late but still for others who need help Got the same issue, answer is given in the following thread.....

http://stackoverflow.com/questions/42538433/not-finding-android-sdk-unity#

mine solved perfectly, also don't forget to copy zip align from one of the build tools(Android/sdk/buildtools) to the tools(Android/sdk/tools) folder, though newer versions might work without it, but still...!

hope this helps..!!

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

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

22 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

Related Questions

Cannot build an android game after updating unity. 1 Answer

Unity 2017.3.0f3 / Android SDK Tools incompatibility 0 Answers

Unity project building stuck, need help. 1 Answer

Unity can't detect SDK tools thougt I've installed them! 0 Answers

I am having trouble building the project for android (i can't build) 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