Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 LIBennage · Apr 10, 2017 at 12:43 PM · build-errorsdk

Probably stupid simple - Unable to build android apps

Hi all, I'm sure this is a stupidly simple issue that's going to make me look like a total noob (which I am), but I don't seem to be able to build android apps at all. This problem seems to occur on both the Windows and Mac versions of Unity 5.6.0f3.

I have the latest versions of both the Android SDK and JDK installed on both machines, but keep getting the below error when I try to build:

Error building Player: CommandInvokationFailure: Unable to list target platforms. Please make sure the android sdk path is correct. See the Console for more details. /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/bin/java -Xmx2048M -Dcom.android.sdkmanager.toolsdir="/Users/Bennage/Library/Android/sdk/tools" -Dfile.encoding=UTF8 -jar "/Applications/Unity/PlaybackEngines/AndroidPlayer/Tools/sdktools.jar" -

What am I missing? If I point Unity at the latest JDK (8.0_121) then I get the error: "Invalid JDK home selected"

If I download the older 7.0_80, it seems to accept it, but then fails to build with the above error.

Any advice much appreciated. Sorry if this is simple to fix, but I've tried searching for answers everywhere with no luck.

TIA

Comment
Add comment · Show 1
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 SohailBukhari · Apr 10, 2017 at 01:49 PM 0
Share

Set the JD$$anonymous$$_HO$$anonymous$$E and JAVA_HO$$anonymous$$E in your environmental variables.

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by danmw3 · Apr 10, 2017 at 03:10 PM

Make sure you have the latest JDK installed and make sure your JDK_HOME and JAVA_HOME environment variables are set. Here is a guide for setting up the environment variables.

https://www.java.com/en/download/help/path.xml

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 LIBennage · Apr 11, 2017 at 04:19 PM

I had already done that. However I found the solution elsewhere.

I replaced the 'tools' folder in the SDK with the tools in "tools_r25.2.3-[OSX/WINDOWS/LINUX.zip" at the bottom of this website: https://developer.android.com/studio/index.html

All sorted now. Thanks anyway!

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Error building scripts: Cached player destination differs from selected player destination. Please disable scripts only build and build again before attempting another scripts only build 0 Answers

Build Error "Failed to compile resources with the following parameters: -bootclasspath" 3 Answers

Build error 0 Answers

While trying to build my .apk for a VR Google Carboard in my local desktop folder, the following error is being flashed. 0 Answers

Android sdk build error 10 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