• 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 rickb123 · Mar 06, 2012 at 11:29 PM · androidexportar

android export dex failed error

Hi, i have been trying to figure out for days now why i cannot export qualcomm AR application from their standard package to my samsung galaxy 10.1 device without cause the following error:

 


Building DEX Failed!

C:\Softs Projects Documents\Unity3D\Unity3D_Android_XX6\Temp/StagingArea> java -Xmx1024M -Djava.ext.dirs="C:/Development/Android/android-sdk-windows\platform-tools/lib/" -jar "C:/Development/Android/android-sdk-windows\platform-tools/lib/dx.jar" --dex --verbose --output=bin/classes.dex bin/classes.jar plugins

Error occurred during initialization of VM

Could not reserve enough space for object heap

Could not create the Java virtual machine.

 

UnityEngine.Debug:LogError(Object)

PostProcessAndroidPlayer:BuildDex(String, String, Single, Single&) (at C:/BuildAgent/work/842f9557127e852/Editor/Mono/BuildPipeline/PostProcessAndroidPlayer.cs:573)

PostProcessAndroidPlayer:PostProcess(BuildTarget, String, String, String, String, String, String, BuildOptions) (at C:/BuildAgent/work/842f9557127e852/Editor/Mono/BuildPipeline/PostProcessAndroidPlayer.cs:166)

UnityEditor.HostView:OnGUI()


 

For the very few forums that i read on this issue we need to have the latest java installed which it is.Otherwise there is not much to say if only that i can export standard android application with no AR features attached to it.

 

Can someone help.

Tks

Rick

 

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

4 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by anilgautam · Aug 07, 2012 at 04:25 AM

I have same problem

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 Karasukun · Oct 12, 2012 at 04:59 PM

This fixed it for me;

http://forum.unity3d.com/threads/88119-Could-not-reserve-enough-space-for-object-heap-RESOLVED

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 Karasukun · Oct 12, 2012 at 03:07 PM

This fixed it for me;

http://forum.unity3d.com/threads/88119-Could-not-reserve-enough-space-for-object-heap-RESOLVED

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 uldvey · Jun 30, 2013 at 04:04 PM

buildt DEX failed issue: i had the same issue. the problem was, that i worked with an older version of unity (3.5) and the actual android sdk version did´nt fit to this old unity version. upgrade unity to newest version and the problem should be solved. (it worked with me)

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 uldvey · Jun 30, 2013 at 04:04 PM 0
Share

the issue with the java installation was solved by using the ccleaner tool. http://www.ccleaner.de/ open tool: go to registry and search for problems. the cleaning should help to reinstall java

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

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

7 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Export & Install APK on Android 5 Answers

Export to Android with transparent background for unity 2020.1? 0 Answers

Is there a way to modify the exported code to android or Iphone? 0 Answers

Creating apk with Android Studio and split OBB 1 Answer

Android Export issues, in Unit prefenrences is no sdk path 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges