Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9088501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T21:55:10+00:00 2026-06-16T21:55:10+00:00

Similarly to this question , I received the following error: [INFO] — android-maven-plugin:3.3.0:dex (default-dex)

  • 0

Similarly to this question, I received the following error:

[INFO] --- android-maven-plugin:3.3.0:dex (default-dex) @ betodef-android ---
[INFO] /usr/lib/jvm/java-6-sun-1.6.0.32/jre/bin/java [-Xmx1024M, {snip}
[INFO] 
[INFO] UNEXPECTED TOP-LEVEL ERROR:
[INFO] java.lang.OutOfMemoryError: GC overhead limit exceeded

This occurred after I added several dependencies, including fastutil, to my Android project. However, increasing the memory available for dex does not solve the problem.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T21:55:11+00:00Added an answer on June 16, 2026 at 9:55 pm

    The problem lies in a limit of the dex format, specifically the 65536 limit on the number of method references.

    To diagnose the problem, increase the memory to a much larger amount (enabling debugging/verbose output doesn’t help, curiously enough). In my case, I added the following to the android-maven-plugin configuration:

    <dex>
        <jvmArguments>
            <jvmArgument>-Xmx4096M</jvmArgument>
        </jvmArguments>
    </dex>
    

    After choosing a large-enough heap size, the message changes to include something like this:

    [INFO] trouble writing output: Too many methods: 172296; max is 65536. By package:
    [INFO]     20 android.app
    [INFO]     18 android.content
    [INFO]      1 android.content.pm
    [INFO]      7 android.content.res
    [INFO]      7 android.hardware
    [INFO]     38 android.media
    [INFO]     20 android.opengl
    [INFO]     11 android.os
    [INFO]      1 android.text.method
    [INFO]      8 android.util
    [INFO]     38 android.view
    [INFO]      2 android.view.inputmethod
    [INFO]     21 android.widget
    ...
    [INFO]      3 com.google.common.annotations
    [INFO]    746 com.google.common.base
    [INFO]      9 com.google.common.base.internal
    [INFO]    833 com.google.common.cache
    [INFO]   8478 com.google.common.collect
    [INFO]     50 com.google.common.eventbus
    [INFO]    385 com.google.common.hash
    [INFO]    597 com.google.common.io
    [INFO]     92 com.google.common.math
    [INFO]    134 com.google.common.net
    [INFO]    521 com.google.common.primitives
    [INFO]    404 com.google.common.reflect
    [INFO]    954 com.google.common.util.concurrent
    [INFO]     16 default
    [INFO]    227 it.unimi.dsi.fastutil
    [INFO]   1370 it.unimi.dsi.fastutil.booleans
    [INFO]  17249 it.unimi.dsi.fastutil.bytes
    [INFO]  17249 it.unimi.dsi.fastutil.chars
    [INFO]  17279 it.unimi.dsi.fastutil.doubles
    [INFO]  17263 it.unimi.dsi.fastutil.floats
    [INFO]  17309 it.unimi.dsi.fastutil.ints
    [INFO]    628 it.unimi.dsi.fastutil.io
    [INFO]  17315 it.unimi.dsi.fastutil.longs
    [INFO]  26514 it.unimi.dsi.fastutil.objects
    [INFO]  17257 it.unimi.dsi.fastutil.shorts
    [INFO]      2 java.awt
    [INFO]      5 java.awt.datatransfer
    [INFO]    206 java.io
    [INFO]    346 java.lang
    [INFO]     10 java.lang.ref
    [INFO]     71 java.lang.reflect
    [INFO]     27 java.math
    [INFO]     26 java.net
    [INFO]    108 java.nio
    [INFO]      6 java.nio.channels
    [INFO]      2 java.nio.charset
    [INFO]     13 java.security
    [INFO]      2 java.text
    [INFO]    382 java.util
    [INFO]    128 java.util.concurrent
    [INFO]     33 java.util.concurrent.atomic
    [INFO]     40 java.util.concurrent.locks
    [INFO]      6 java.util.jar
    [INFO]      6 java.util.logging
    [INFO]     10 java.util.regex
    [INFO]     20 java.util.zip
    [INFO]     26 javax.microedition.khronos.egl
    [INFO]    188 javax.microedition.khronos.opengles
    [INFO]      7 sun.misc
    

    As you can see, there is a huge amount of references in the fastutil classes.

    There are two possible solutions of this problem:

    1. Use an alternative to the problematic dependency (duh).
    2. Use an optimizer such as Proguard (general Android, Maven-specific).
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using the following code I received an error: TypeError: POST data should be bytes
I asked a similar question in the android developers group but haven't received a
Similar to this question I am using a custom VirtualPathProvider to retrieve views that
Similar to this question asking about relatively light-weight data entry / editor application development,
Similar to this question only the other way of flow. Insert Picture into SQL
Similar to this question: link However I have already mastered that. My problem is
Similar to this question , except the console program being wrapped up in the
Similar to this question I have a custom subclass of UITableViewCell that has a
This question is similar to this one, but with an extra wrinkle: Auto-removing all
This question is similar to this one How do I add options to a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.