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
2
Question by ahasae · Feb 14, 2013 at 12:47 PM · errorplayerbuilding

Error building Player: Exception: android (invokation failed) ERROR: unknown error

Error building Player: Exception: android (invokation failed) ERROR: unknown error cmd:android list target -c stdout; Error occurred during initialization of VM Could not reserve enough space for object heap stderr: Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.

when i try build an android unity project like the original AngryBots game the program ask me to locate the sdk,when i locate the sdk folder this error occurred

please help me !!

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

8 Replies

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

Answer by cedimento · May 22, 2013 at 09:09 PM

Hi,

Also you can downgrade the tools version to r21 by installing:

http://dl.google.com/android/installer_r21-windows.exe

Comment
Add comment · Show 5 · 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 bboysil · Jun 01, 2013 at 06:01 PM 0
Share

Worked perfectly, unfortunately I can't give thumbs up yet as I am new to the forums and don't have enough reputation.

avatar image philjhale · Jun 17, 2013 at 09:37 PM 0
Share

Also worked for me with Unity 4.1.3

avatar image syreinrage · Jul 17, 2013 at 02:45 PM 0
Share

is there a mac downgrade as well?

avatar image Andre Barbosa · Jul 30, 2013 at 01:34 PM 0
Share

This works, but is there a way to use the current sdk version?

avatar image torvic_esh · Mar 20, 2014 at 09:27 AM 0
Share

Thanks, works for me.

avatar image
0

Answer by Platinium · Feb 17, 2013 at 06:13 PM

Hello, i had the same problem a while ago, take a look at this post http://forum.unity3d.com/threads/88119-Could-not-reserve-enough-space-for-object-heap-RESOLVED

It worked for me.

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 G0m0rrah · Jun 02, 2013 at 08:32 AM 0
Share

I did all the above and went on to the link you put up, did everything they said to do but I still can not get it to work. Can someone help please.

I put more information here: http://answers.unity3d.com/questions/466919/cant-push-app-to-android-device.html

avatar image Stephen_O · Jun 08, 2013 at 08:08 PM 0
Share

@G0m0rrah 6 days ago

https://www.youtube.com/playlist?list=PLy0oHZ9DiHn-JsmGYLo8_T7bIvBAm1sZf

I haven't tried the new tools update for 22.01, but I recorded myself going through the "Android Setup Process" if anyone is still having issues. Just skip the part where I downgrade to r21.

avatar image
0

Answer by bboysil · Jun 06, 2013 at 06:35 AM

Just so you know, the tools were updated to 22.01 and it now works with the latest version, no need to downgrade anymore

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 Elecman · Jun 22, 2013 at 01:47 PM

I had 22.01 installed but that still gave me the error. Reverting back to r21 solved it for me.

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
Wiki

Answer by kerr · Jul 10, 2013 at 06:22 AM

If the above fails you like it did me, then try this;

Go into your assets folder (in your os, not unity), then your plugins folder, and find the folder 'Android'. if you have it there then move it to your desktop ( or delete it, your call ). then try to build your project again.

This was the thing that finally solved it for me.

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 pixelsyntax · Jul 16, 2013 at 12:32 AM 0
Share

Could you expand on this a little? What plugins folder are you referring to? Should it be within my project's assets folder? If so I'm not seeing it anywhere, and I'd like to give this method a try.

avatar image kerr · Jul 16, 2013 at 08:04 AM 0
Share

Yes, the plugins folder is located in your projects assets folder ( at least it is for my current project ). '/Assets/Plugins/Android'

disclaimer: to try to solve the above problem i upgraded, downgraded several versions of ADT etc. so potentially in my case my plugin may have become corrupt or mismatched in terms of version etc.

So again, if you have that folder DO NOT $$anonymous$$ETE, just move it to check if that will help you.

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

Follow this Question

Answers Answers and Comments

26 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

Related Questions

Error building Player: CommandInvokationFailure: Failed to re-package resources. 1 Answer

Apk file isn't building?,Apk file isn't buliding 1 Answer

Error when building for Android 2 Answers

Error building Player: Win32Exception: 0 Answers

My game wont start after i click a button 1 Answer


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