Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. The following error occurred while executing this line; Error occurred during initialization of VM
QtWS25 Last Chance

The following error occurred while executing this line; Error occurred during initialization of VM

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 3 Posters 4.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MXXIV
    wrote on last edited by
    #1

    I get some very unhelpful errors from Qt creator, which I have just installed using tutorial on Qt website.

    -dex:
          [dex] input: D:\techsys\build-androidtest-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_1-Debug\android-build\bin\classes
          [dex] input: D:\techsys\build-androidtest-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_1-Debug\android-build\libs\QtAndroid-bundled.jar
          [dex] input: D:\techsys\build-androidtest-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_1-Debug\android-build\libs\QtAndroidAccessibility-bundled.jar
          [dex] Pre-Dexing D:\techsys\build-androidtest-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_1-Debug\android-build\libs\QtAndroid-bundled.jar -> QtAndroid-bundled-15710ac48ee3b8e0790e2c0724eced85.jar
           [dx] Error occurred during initialization of VM
           [dx] Could not reserve enough space for object heap
           [dx] Error: Could not create the Java Virtual Machine.
           [dx] Error: A fatal exception has occurred. Program will exit.
    
    BUILD FAILED
    C:\Users\mareda\AppData\Local\Android\android-sdk\tools\ant\build.xml:888: The following error occurred while executing this line:
    C:\Users\mareda\AppData\Local\Android\android-sdk\tools\ant\build.xml:890: The following error occurred while executing this line:
    C:\Users\mareda\AppData\Local\Android\android-sdk\tools\ant\build.xml:902: The following error occurred while executing this line:
    C:\Users\mareda\AppData\Local\Android\android-sdk\tools\ant\build.xml:283: null returned: 1
    
    Total time: 1 second
    Building the android package failed!
      -- For more information, run this command with --verbose.
    11:50:50: The process "C:\Qt\android.5.5.1\5.5\android_armv7\bin\androiddeployqt.exe" exited with code 14.
    Error while building/deploying project androidtest (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.5.1))
    When executing step "Build Android APK"
    11:50:50: Elapsed time: 00:05.
    

    I don't really get what does it mean. This is my configuration:

    image description

    I also tried selecting Use graddle instead of Ant. it didn't affect anything. What expecially freaks me out is the awkward error: The following error occurred while executing this line: without mentioning any actual error.

    1 Reply Last reply
    0
    • BonganiB Offline
      BonganiB Offline
      Bongani
      wrote on last edited by
      #2

      @MXXIV , did you finnaly find a solution for this problem ?

      O 1 Reply Last reply
      0
      • BonganiB Bongani

        @MXXIV , did you finnaly find a solution for this problem ?

        O Offline
        O Offline
        Olexandr T
        wrote on last edited by
        #3

        @Bongani , I got the same problem:

        build.xml:888: The following error occurred while executing this line
        .....
        I made an updating JDK 1.7 to 1.8 and the problem was solved

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved