Android Question Another upgrade problem

Robert Valentino

Well-Known Member
Licensed User
Longtime User
on another one of my Apps I get the following when compiling

B4X:
B4A Version: 9.30
Java Version: 8
Parsing code.    (1.53s)
Building folders structure.    (0.02s)
Compiling code.    (0.67s)
Compiling layouts code.    (0.03s)
Organizing libraries.    (0.04s)
   (AndroidX SDK)
Generating R file.    (1.56s)
Compiling generated Java code.    (6.65s)
Convert byte code - optimized dex.    Error
trouble writing output: Too many method references to fit in one dex file: 66905; max is 65536.
You may try using multi-dex. If multi-dex is enabled then the list of classes for the main dex list is too large.
References by package:
     4 android.accessibilityservice
     5 android.accounts
    36 android.animation
   401 android.app
    17 android.app.job
     2 android.appwidget
    19 android.bluetooth
   214 android.content
    50 android.content.pm
    70 android.content.res
    66 android.database
    25 android.database.sqlite
   227 android.graphics
    98 android.graphics.drawable
     3 android.graphics.drawable.shapes
     1 android.graphics.fonts
    11 android.graphics.pdf
     8 android.hardware
     3 android.hardware.display
    11 android.hardware.fingerprint
     2 android.icu.text
     4 android.location
   257 android.media
    18 android.media.browse
    99 android.media.session
    54 android.net
     2 android.net.http
    36 android.opengl
   299 android.os
     1 android.preference
    28 android.print
     5 android.print.pdf
    15 android.provider
     8 android.renderscript
     2 android.security
    11 android.service.media
    70 android.support.customtabs
    17 android.support.v4.app
     3 android.support.v4.graphics.drawable
   338 android.support.v4.media
  1090 android.support.v4.media.session
    28 android.support.v4.os
     3 android.system
    17 android.telephony
    83 android.text
     5 android.text.method
    18 android.text.style
    10 android.text.util
    18 android.transition
   109 android.util
   618 android.view
   248 android.view.accessibility
    35 android.view.animation
    13 android.view.inputmethod
   105 android.webkit
   500 android.widget
    54 androidx.annotation
    25 androidx.arch.core.executor
    53 androidx.arch.core.internal
     1 androidx.arch.core.util
    20 androidx.asynclayoutinflater.view
    14 androidx.browser
    55 androidx.browser.browseractions
   129 androidx.browser.customtabs
   307 androidx.collection
    14 androidx.coordinatorlayout
   217 androidx.coordinatorlayout.widget
    14 androidx.core
     6 androidx.core.accessibilityservice
   707 androidx.core.app
    68 androidx.core.content
    32 androidx.core.content.pm
   101 androidx.core.content.res
     5 androidx.core.database
     2 androidx.core.database.sqlite
   139 androidx.core.graphics
   186 androidx.core.graphics.drawable
     6 androidx.core.hardware.display
    27 androidx.core.hardware.fingerprint
    24 androidx.core.internal.view
     4 androidx.core.math
    30 androidx.core.net
   127 androidx.core.os
    86 androidx.core.provider
   119 androidx.core.text
    35 androidx.core.text.util
    70 androidx.core.util
   533 androidx.core.view
   289 androidx.core.view.accessibility
    10 androidx.core.view.animation
    43 androidx.core.view.inputmethod
   320 androidx.core.widget
    66 androidx.cursoradapter.widget
    17 androidx.customview.view
   146 androidx.customview.widget
    95 androidx.documentfile.provider
   170 androidx.drawerlayout.widget
   926 androidx.fragment.app
    11 androidx.interpolator.view.animation
    30 androidx.legacy.app
     4 androidx.legacy.content
    11 androidx.legacy.widget
   191 androidx.lifecycle
    62 androidx.loader.app
   138 androidx.loader.content
    13 androidx.localbroadcastmanager.content
   370 androidx.media
    31 androidx.media.app
    15 androidx.media.session
    48 androidx.print
   117 androidx.slidingpanelayout.widget
   230 androidx.swiperefreshlayout.widget
   219 androidx.versionedparcelable
   281 androidx.viewpager.widget
   216 anywheresoftware.b4a
    89 anywheresoftware.b4a.admobwrapper
    25 anywheresoftware.b4a.agraham.byteconverter
   276 anywheresoftware.b4a.agraham.dialogs
    66 anywheresoftware.b4a.agraham.reflection
    51 anywheresoftware.b4a.agraham.richstring
   110 anywheresoftware.b4a.audio
     1 anywheresoftware.b4a.debug
    32 anywheresoftware.b4a.inappbilling3
   279 anywheresoftware.b4a.keywords
    14 anywheresoftware.b4a.keywords.constants
   121 anywheresoftware.b4a.net
     3 anywheresoftware.b4a.object
  1302 anywheresoftware.b4a.objects
    72 anywheresoftware.b4a.objects.collections
   111 anywheresoftware.b4a.objects.drawable
    82 anywheresoftware.b4a.objects.streams
   254 anywheresoftware.b4a.phone
   150 anywheresoftware.b4a.randomaccessfile
    30 anywheresoftware.b4a.remotelogger
    13 anywheresoftware.b4a.specci48.spdialogs
    55 anywheresoftware.b4a.sql
    65 anywheresoftware.b4h.okhttp
    26 anywheresoftware.b4j.object
   158 b4a.example
    54 b4a.example3
  3542 com.BOBs.BBS
    56 com.BOBs.BBS.designerscripts
   597 com.BOBs.BOBsCommon
    23 com.android.vending.billing
    30 com.google.ads
   134 com.google.ads.consent
   101 com.google.ads.mediation
     2 com.google.ads.mediation.admob
    40 com.google.ads.mediation.customevent
     4 com.google.android.gms.actions
   242 com.google.android.gms.ads
    96 com.google.android.gms.ads.doubleclick
   244 com.google.android.gms.ads.formats
    32 com.google.android.gms.ads.identifier
    14 com.google.android.gms.ads.impl
    81 com.google.android.gms.ads.internal
   111 com.google.android.gms.ads.internal.overlay
   195 com.google.android.gms.ads.mediation
     2 com.google.android.gms.ads.mediation.admob
    64 com.google.android.gms.ads.mediation.customevent
     9 com.google.android.gms.ads.mediation.rtb
    32 com.google.android.gms.ads.reward
    17 com.google.android.gms.ads.reward.mediation
    36 com.google.android.gms.ads.rewarded
   122 com.google.android.gms.ads.search
    81 com.google.android.gms.auth.api.signin
    28 com.google.android.gms.auth.api.signin.internal
    14 com.google.android.gms.base
   235 com.google.android.gms.common
   282 com.google.android.gms.common.api
   930 com.google.android.gms.common.api.internal
    29 com.google.android.gms.common.config
   142 com.google.android.gms.common.data
    82 com.google.android.gms.common.images
   549 com.google.android.gms.common.internal
   152 com.google.android.gms.common.internal.safeparcel
    28 com.google.android.gms.common.internal.service
    12 com.google.android.gms.common.logging
     5 com.google.android.gms.common.providers
     7 com.google.android.gms.common.server
    28 com.google.android.gms.common.server.converter
   209 com.google.android.gms.common.server.response
    10 com.google.android.gms.common.sqlite
    40 com.google.android.gms.common.stats
   176 com.google.android.gms.common.util
    10 com.google.android.gms.common.util.concurrent
    16 com.google.android.gms.common.wrappers
   205 com.google.android.gms.dynamic
    65 com.google.android.gms.dynamite
     1 com.google.android.gms.dynamite.descriptors.com.google.android.gms.ads.dynamite
     1 com.google.android.gms.dynamite.descriptors.com.google.android.gms.measurement.dynamite
 16601 com.google.android.gms.internal.ads
    19 com.google.android.gms.internal.ads_identifier
    71 com.google.android.gms.internal.base
    30 com.google.android.gms.internal.common
    32 com.google.android.gms.internal.firebase_messaging
  3225 com.google.android.gms.internal.measurement
    94 com.google.android.gms.measurement
    29 com.google.android.gms.measurement.api
  2094 com.google.android.gms.measurement.internal
     4 com.google.android.gms.measurement.module
    13 com.google.android.gms.security
    23 com.google.android.gms.signin
    67 com.google.android.gms.signin.internal
    18 com.google.android.gms.stats
   194 com.google.android.gms.tasks
     2 com.google.auto.value
   100 com.google.firebase
    49 com.google.firebase.analytics
    38 com.google.firebase.analytics.connector
    35 com.google.firebase.analytics.connector.internal
   144 com.google.firebase.components
     9 com.google.firebase.events
   291 com.google.firebase.iid
     2 com.google.firebase.iid.internal
     1 com.google.firebase.inject
     5 com.google.firebase.internal
    26 com.google.firebase.platforminfo
    10 com.google.firebase.provider
   309 com.google.gson
     8 com.google.gson.annotations
   292 com.google.gson.internal
   332 com.google.gson.internal.bind
    10 com.google.gson.internal.bind.util
    11 com.google.gson.internal.reflect
    20 com.google.gson.reflect
    86 com.google.gson.stream
   126 com.itextpdf.awt
   570 com.itextpdf.awt.geom
    30 com.itextpdf.awt.geom.gl
    52 com.itextpdf.awt.geom.misc
   126 com.itextpdf.testutils
  1139 com.itextpdf.text
    11 com.itextpdf.text.api
    11 com.itextpdf.text.error_messages
    10 com.itextpdf.text.exceptions
    17 com.itextpdf.text.factories
    25 com.itextpdf.text.html
   157 com.itextpdf.text.html.simpleparser
   102 com.itextpdf.text.io
    68 com.itextpdf.text.log
  4735 com.itextpdf.text.pdf
   324 com.itextpdf.text.pdf.codec
    77 com.itextpdf.text.pdf.codec.wmf
    46 com.itextpdf.text.pdf.collection
    16 com.itextpdf.text.pdf.crypto
    31 com.itextpdf.text.pdf.draw
    56 com.itextpdf.text.pdf.events
     1 com.itextpdf.text.pdf.fonts
    71 com.itextpdf.text.pdf.fonts.cmaps
    54 com.itextpdf.text.pdf.fonts.otf
   115 com.itextpdf.text.pdf.hyphenation
    37 com.itextpdf.text.pdf.interfaces
    43 com.itextpdf.text.pdf.internal
    47 com.itextpdf.text.pdf.languages
   569 com.itextpdf.text.pdf.parser
   318 com.itextpdf.text.pdf.parser.clipper
   221 com.itextpdf.text.pdf.qrcode
   288 com.itextpdf.text.pdf.security
    25 com.itextpdf.text.xml
    32 com.itextpdf.text.xml.simpleparser
     4 com.itextpdf.text.xml.simpleparser.handler
   100 com.itextpdf.text.xml.xmp
   167 com.itextpdf.xmp
   412 com.itextpdf.xmp.impl
    26 com.itextpdf.xmp.impl.xpath
   143 com.itextpdf.xmp.options
    11 com.itextpdf.xmp.properties
     7 com.simplysoftware.base64convert
     4 dalvik.system
   138 de.amberhome.viewpager
   230 de.amberhome.viewpager.internal
     7 default
     3 devilapp.pdftotext
    89 flm.b4a.maskededittext
   166 flm.b4a.scrollview2d
    37 flm.media.browser
    79 java.awt
     1 java.awt.color
     3 java.awt.font
    41 java.awt.geom
    27 java.awt.image
     1 java.awt.image.renderable
   245 java.io
   470 java.lang
     6 java.lang.ref
    54 java.lang.reflect
    34 java.math
   178 java.net
    95 java.nio
    20 java.nio.channels
    10 java.nio.charset
     2 java.nio.file
    65 java.security
    35 java.security.cert
     4 java.security.interfaces
    19 java.security.spec
     3 java.sql
    55 java.text
   476 java.util
   127 java.util.concurrent
    35 java.util.concurrent.atomic
    12 java.util.concurrent.locks
     9 java.util.logging
    26 java.util.regex
    47 java.util.zip
    34 javax.crypto
     5 javax.crypto.spec
     9 javax.imageio
     1 javax.imageio.plugins.jpeg
     1 javax.imageio.stream
    12 javax.microedition.khronos.egl
     6 javax.net
    98 javax.net.ssl
     4 javax.security.auth.x500
     1 javax.xml.crypto.dom
    10 javax.xml.crypto.dsig
     3 javax.xml.crypto.dsig.dom
     3 javax.xml.crypto.dsig.keyinfo
     2 javax.xml.crypto.dsig.spec
    15 javax.xml.parsers
     6 javax.xml.transform
     1 javax.xml.transform.dom
     3 javax.xml.transform.stream
     4 libcore.io
   720 okhttp3
    57 okhttp3.internal
    93 okhttp3.internal.cache
    17 okhttp3.internal.cache2
    66 okhttp3.internal.connection
    73 okhttp3.internal.http
    45 okhttp3.internal.http1
   287 okhttp3.internal.http2
   197 okhttp3.internal.huc
    18 okhttp3.internal.io
    61 okhttp3.internal.platform
    39 okhttp3.internal.tls
    73 okhttp3.internal.ws
   588 okio
   104 org.apache.commons.net
   433 org.apache.commons.net.ftp
   123 org.apache.commons.net.ftp.parser
    75 org.apache.commons.net.io
    92 org.apache.commons.net.pop3
   120 org.apache.commons.net.smtp
   121 org.apache.commons.net.util
     9 org.apache.http
     1 org.apache.http.conn
     3 org.apache.http.entity
     5 org.apache.http.message
    35 org.apache.james.mime4j.codec
     7 org.apache.james.mime4j.util
     7 org.apache.jcp.xml.dsig.internal.dom
     1 org.apache.xml.security.utils
    52 org.bouncycastle.asn1
     1 org.bouncycastle.asn1.cmp
    13 org.bouncycastle.asn1.cms
     5 org.bouncycastle.asn1.esf
     7 org.bouncycastle.asn1.ess
     1 org.bouncycastle.asn1.ocsp
     2 org.bouncycastle.asn1.tsp
    19 org.bouncycastle.asn1.x509
     1 org.bouncycastle.cert
     3 org.bouncycastle.cert.jcajce
    22 org.bouncycastle.cert.ocsp
     7 org.bouncycastle.cms
     5 org.bouncycastle.cms.jcajce
     3 org.bouncycastle.crypto
     1 org.bouncycastle.crypto.engines
     1 org.bouncycastle.crypto.modes
     6 org.bouncycastle.crypto.paddings
     2 org.bouncycastle.crypto.params
    11 org.bouncycastle.jcajce.provider.digest
     2 org.bouncycastle.jce
     4 org.bouncycastle.jce.provider
     1 org.bouncycastle.operator
     1 org.bouncycastle.operator.bc
     5 org.bouncycastle.operator.jcajce
    17 org.bouncycastle.tsp
    52 org.json
    55 org.w3c.dom
     2 org.xml.sax
     8 org.xmlpull.v1
    20 sun.misc

In the previous B4A multi-dex would fail but the program would finish compiling
 

Robert Valentino

Well-Known Member
Licensed User
Longtime User
I had tried the opposite (set to false) (thinking Multidex was on by default) setting it to True fixed the problem.
 
Upvote 0
Top