- Home /
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 !!
Answer by cedimento · May 22, 2013 at 09:09 PM
Hi,
Also you can downgrade the tools version to r21 by installing:
Worked perfectly, unfortunately I can't give thumbs up yet as I am new to the forums and don't have enough reputation.
This works, but is there a way to use the current sdk version?
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.
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
@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.
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
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.
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.
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.
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.