Android Question Too many method references to fit in one dex file

Alberto Michelis

Well-Known Member
Licensed User
Hi, adding to my App the Alerter Libary I get this error.
Added: #AdditionalJar: androidx.appcompat:appcompat
Libraries in use are shown in the attached pic.
Any way to solve this?

B4A Versión: 9.80
Java Versión: 8
Parseando código. (2.90s)
Building folders structure. (0.26s)
Compilando código. (2.70s)
Compilado códigos de diseños. (0.08s)
Organizando librerías. (0.11s)
(AndroidX SDK)
Generando el fichero R. (0.00s)
Compilando el código Java generado. (36.99s)
Convirtiendo byte code a dex optimizado. Error
trouble writing output: Too many method references to fit in one dex file: 70863; 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
71 android.animation
486 android.app
17 android.app.job
2 android.appwidget
230 android.content
77 android.content.pm
108 android.content.res
68 android.database
25 android.database.sqlite
249 android.graphics
137 android.graphics.drawable
3 android.graphics.drawable.shapes
12 android.graphics.fonts
3 android.graphics.pdf
8 android.hardware
3 android.hardware.display
11 android.hardware.fingerprint
2 android.icu.text
3 android.icu.util
8 android.location
230 android.media
18 android.media.browse
97 android.media.session
58 android.net
2 android.net.http
36 android.opengl
328 android.os
1 android.preference
28 android.print
5 android.print.pdf
13 android.provider
8 android.renderscript
2 android.security
11 android.service.media
70 android.support.customtabs
20 android.support.v4.app
3 android.support.v4.graphics.drawable
298 android.support.v4.media
931 android.support.v4.media.session
28 android.support.v4.os
3 android.system
17 android.telephony
2 android.telephony.mbms
109 android.text
1 android.text.format
6 android.text.method
16 android.text.style
10 android.text.util
18 android.transition
120 android.util
800 android.view
259 android.view.accessibility
32 android.view.animation
15 android.view.inputmethod
1 android.view.textclassifier
105 android.webkit
860 android.widget
73 androidx.activity
54 androidx.annotation
15 androidx.appcompat
916 androidx.appcompat.app
10 androidx.appcompat.content.res
328 androidx.appcompat.graphics.drawable
15 androidx.appcompat.resources
3 androidx.appcompat.text
155 androidx.appcompat.view
724 androidx.appcompat.view.menu
2547 androidx.appcompat.widget
25 androidx.arch.core.executor
53 androidx.arch.core.internal
1 androidx.arch.core.util
20 androidx.asynclayoutinflater.view
15 androidx.browser
55 androidx.browser.browseractions
129 androidx.browser.customtabs
307 androidx.collection
15 androidx.coordinatorlayout
220 androidx.coordinatorlayout.widget
15 androidx.core
6 androidx.core.accessibilityservice
788 androidx.core.app
70 androidx.core.content
66 androidx.core.content.pm
105 androidx.core.content.res
5 androidx.core.database
2 androidx.core.database.sqlite
177 androidx.core.graphics
183 androidx.core.graphics.drawable
6 androidx.core.hardware.display
27 androidx.core.hardware.fingerprint
90 androidx.core.internal.view
2 androidx.core.location
5 androidx.core.math
32 androidx.core.net
108 androidx.core.os
87 androidx.core.provider
2 androidx.core.telephony.mbms
118 androidx.core.text
35 androidx.core.text.util
59 androidx.core.util
622 androidx.core.view
340 androidx.core.view.accessibility
10 androidx.core.view.animation
44 androidx.core.view.inputmethod
339 androidx.core.widget
70 androidx.cursoradapter.widget
17 androidx.customview.view
146 androidx.customview.widget
95 androidx.documentfile.provider
170 androidx.drawerlayout.widget
15 androidx.fragment
1051 androidx.fragment.app
84 androidx.fragment.lint
11 androidx.interpolator.view.animation
30 androidx.legacy.app
4 androidx.legacy.content
11 androidx.legacy.widget
238 androidx.lifecycle
62 androidx.loader.app
122 androidx.loader.content
13 androidx.localbroadcastmanager.content
392 androidx.media
31 androidx.media.app
15 androidx.media.session
48 androidx.print
25 androidx.savedstate
117 androidx.slidingpanelayout.widget
230 androidx.swiperefreshlayout.widget
322 androidx.vectordrawable.graphics.drawable
240 androidx.versionedparcelable
279 androidx.viewpager.widget
216 anywheresoftware.b4a
91 anywheresoftware.b4a.admobwrapper
191 anywheresoftware.b4a.agraham.dialogs
66 anywheresoftware.b4a.agraham.reflection
110 anywheresoftware.b4a.audio
1 anywheresoftware.b4a.debug
29 anywheresoftware.b4a.inappbilling3
279 anywheresoftware.b4a.keywords
13 anywheresoftware.b4a.keywords.constants
124 anywheresoftware.b4a.net
994 anywheresoftware.b4a.objects
72 anywheresoftware.b4a.objects.collections
110 anywheresoftware.b4a.objects.drawable
82 anywheresoftware.b4a.objects.streams
254 anywheresoftware.b4a.phone
30 anywheresoftware.b4a.remotelogger
48 anywheresoftware.b4a.sql
65 anywheresoftware.b4h.okhttp
26 anywheresoftware.b4j.object
1902 armi.portit
70 armi.portit.designerscripts
25 b4a.example
5 com.android.tools.lint.client.api
23 com.android.tools.lint.detector.api
23 com.android.vending.billing
83 com.astuetz
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
309 com.google.android.gms.ads
27 com.google.android.gms.ads.appopen
99 com.google.android.gms.ads.doubleclick
268 com.google.android.gms.ads.formats
32 com.google.android.gms.ads.identifier
15 com.google.android.gms.ads.impl
10 com.google.android.gms.ads.initialization
17 com.google.android.gms.ads.instream
156 com.google.android.gms.ads.internal
111 com.google.android.gms.ads.internal.overlay
200 com.google.android.gms.ads.mediation
2 com.google.android.gms.ads.mediation.admob
64 com.google.android.gms.ads.mediation.customevent
10 com.google.android.gms.ads.mediation.rtb
10 com.google.android.gms.ads.query
33 com.google.android.gms.ads.reward
17 com.google.android.gms.ads.reward.mediation
38 com.google.android.gms.ads.rewarded
122 com.google.android.gms.ads.search
84 com.google.android.gms.auth.api.signin
28 com.google.android.gms.auth.api.signin.internal
15 com.google.android.gms.base
278 com.google.android.gms.common
292 com.google.android.gms.common.api
966 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
559 com.google.android.gms.common.internal
152 com.google.android.gms.common.internal.safeparcel
28 com.google.android.gms.common.internal.service
15 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
210 com.google.android.gms.common.server.response
10 com.google.android.gms.common.sqlite
41 com.google.android.gms.common.stats
182 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
67 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
18416 com.google.android.gms.internal.ads
19 com.google.android.gms.internal.ads_identifier
74 com.google.android.gms.internal.base
37 com.google.android.gms.internal.common
32 com.google.android.gms.internal.firebase_messaging
3347 com.google.android.gms.internal.measurement
4 com.google.android.gms.internal.tasks
94 com.google.android.gms.measurement
29 com.google.android.gms.measurement.api
2256 com.google.android.gms.measurement.internal
4 com.google.android.gms.measurement.module
13 com.google.android.gms.security
29 com.google.android.gms.signin
77 com.google.android.gms.signin.internal
18 com.google.android.gms.stats
201 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
36 com.google.firebase.analytics.connector.internal
150 com.google.firebase.components
9 com.google.firebase.events
22 com.google.firebase.heartbeatinfo
300 com.google.firebase.iid
2 com.google.firebase.iid.internal
1 com.google.firebase.inject
5 com.google.firebase.internal
28 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
7 com.intellij.psi
1 com.intellij.psi.util
46 com.pendrush.alerter.wrapper
198 com.rootsoft.pdfwriter
236 com.tapadoo.alerter
2 com.tapadoo.alerter.utils
5 dalvik.system
96 de.amberhome.actionbarhelper
12 de.donmanfred
6 default
46 flm.b4a.gesturedetector
157 flm.b4a.scrollview2d
234 java.io
508 java.lang
1 java.lang.annotation
6 java.lang.ref
57 java.lang.reflect
49 java.math
166 java.net
74 java.nio
19 java.nio.channels
19 java.nio.charset
2 java.nio.file
50 java.security
15 java.security.cert
4 java.security.interfaces
19 java.security.spec
3 java.sql
52 java.text
506 java.util
136 java.util.concurrent
39 java.util.concurrent.atomic
23 java.util.concurrent.locks
6 java.util.logging
37 java.util.regex
32 java.util.zip
26 javax.crypto
4 javax.crypto.spec
12 javax.microedition.khronos.egl
6 javax.net
98 javax.net.ssl
3 javax.security.auth.x500
3 javax.xml.parsers
789 kotlin
12 kotlin.annotation
3118 kotlin.collections
651 kotlin.collections.unsigned
138 kotlin.comparisons
31 kotlin.concurrent
12 kotlin.contracts
102 kotlin.coroutines
106 kotlin.coroutines.experimental
31 kotlin.coroutines.experimental.intrinsics
10 kotlin.coroutines.experimental.jvm.internal
57 kotlin.coroutines.experimental.migration
33 kotlin.coroutines.intrinsics
72 kotlin.coroutines.jvm.internal
8 kotlin.experimental
30 kotlin.internal
280 kotlin.io
1 kotlin.js
19 kotlin.jvm
25 kotlin.jvm.functions
598 kotlin.jvm.internal
2 kotlin.jvm.internal.unsafe
121 kotlin.math
20 kotlin.properties
101 kotlin.random
439 kotlin.ranges
149 kotlin.reflect
518 kotlin.sequences
3 kotlin.system
910 kotlin.text
196 kotlin.time
4 libcore.io
21 njdude.fontawesome.lib
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
105 org.apache.commons.net
435 org.apache.commons.net.ftp
123 org.apache.commons.net.ftp.parser
75 org.apache.commons.net.io
92 org.apache.commons.net.pop3
121 org.apache.commons.net.smtp
121 org.apache.commons.net.util
35 org.apache.james.mime4j.codec
7 org.apache.james.mime4j.util
24 org.jetbrains.uast
1 org.jetbrains.uast.kotlin
2 org.jetbrains.uast.visitor
54 org.json
8 org.xml.sax
1 org.xml.sax.helpers
15 org.xmlpull.v1
22 sun.misc
 

Attachments

  • 1.png
    1.png
    103.2 KB · Views: 44
Last edited:
Top