Android Question Error in Compiling " Dex "

MJA_Hack

New Member
hi @Erel please help me ...
I wrote a program two years ago that took me a long time.
When Android X came, I wanted to update the program, but I encountered many problems, but updating the SDK and the main libraries did not solve another problem, which was related to the AHViewPager library.
I read in the forum that you said to add the library to the addlibrary, but it still gave an error, I finally decided to use TabStrip and fortunately that error was fixed but there was another error while compiling, please help because I really can not Do all this coding again.😫

and I'm sorry, I do not speak English well 🙏

error:
B4A Version: 9.50
Java Version: 11
Parsing code.    (0.09s)
Building folders structure.    (0.02s)
Compiling code.    (0.14s)
Compiling layouts code.    (0.03s)
Organizing libraries.    (0.00s)
    (AndroidX SDK)
Generating R file.    (0.00s)
Compiling generated Java code.    (1.31s)
Convert byte code - optimized dex.    Error
trouble writing output: Too many field references to fit in one dex file: ?????; max is ?????.
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:
    ?? android.app
    ?? android.content.pm
    ?? android.content.res
   ??? android.graphics
     ? android.hardware
     ? android.media
     ? android.media.browse
     ? android.net
    ?? android.os
     ? android.print
     ? android.provider
     ? android.support.v4.app
   ??? android.support.v4.media
   ??? android.support.v4.media.session
    ?? android.support.v4.os
     ? android.support.v4.widget
     ? android.system
    ?? android.text
     ? android.text.util
     ? android.transition
    ?? android.util
    ?? android.view
    ?? android.view.accessibility
     ? android.view.inputmethod
     ? android.view.textclassifier
    ?? android.widget
    ?? androidx.activity
    ?? androidx.annotation
     ? androidx.annotation.experimental
     ? androidx.annotation.experimental.lint
  ???? androidx.appcompat
   ??? androidx.appcompat.app
     ? androidx.appcompat.content.res
   ??? androidx.appcompat.graphics.drawable
     ? androidx.appcompat.res
  ???? androidx.appcompat.resources
     ? androidx.appcompat.text
    ?? androidx.appcompat.view
   ??? androidx.appcompat.view.menu
   ??? androidx.appcompat.widget
    ?? androidx.arch.core.executor
    ?? androidx.arch.core.internal
    ?? androidx.asynclayoutinflater.view
  ???? androidx.cardview
    ?? androidx.cardview.widget
    ?? androidx.collection
  ???? androidx.coordinatorlayout
    ?? androidx.coordinatorlayout.widget
  ???? androidx.core
    ?? androidx.core.accessibilityservice
   ??? androidx.core.app
    ?? androidx.core.content
    ?? androidx.core.content.pm
    ?? androidx.core.content.res
   ??? androidx.core.graphics
    ?? androidx.core.graphics.drawable
     ? androidx.core.hardware.display
     ? androidx.core.hardware.fingerprint
    ?? androidx.core.internal.view
     ? androidx.core.net
    ?? androidx.core.os
    ?? androidx.core.provider
    ?? androidx.core.text
    ?? androidx.core.text.util
    ?? androidx.core.util
   ??? androidx.core.view
   ??? androidx.core.view.accessibility
     ? androidx.core.view.animation
    ?? androidx.core.view.inputmethod
   ??? androidx.core.widget
    ?? androidx.cursoradapter.widget
     ? androidx.customview.view
    ?? androidx.customview.widget
     ? androidx.documentfile.provider
  ???? androidx.drawerlayout
    ?? androidx.drawerlayout.widget
  ???? androidx.fragment
   ??? androidx.fragment.app
    ?? androidx.fragment.lint
     ? androidx.interpolator.view.animation
    ?? androidx.legacy.app
     ? androidx.legacy.content
   ??? androidx.lifecycle
    ?? androidx.loader.app
    ?? androidx.loader.content
    ?? androidx.localbroadcastmanager.content
  ???? androidx.media
     ? androidx.media.app
     ? androidx.media.session
     ? androidx.media.utils
    ?? androidx.print
  ???? androidx.recyclerview
   ??? androidx.recyclerview.widget
    ?? androidx.savedstate
    ?? androidx.slidingpanelayout.widget
  ???? androidx.swiperefreshlayout
   ??? androidx.swiperefreshlayout.widget
  ???? androidx.transition
   ??? androidx.vectordrawable.graphics.drawable
    ?? androidx.versionedparcelable
   ??? androidx.viewpager.widget
  ???? androidx.viewpager2
    ?? androidx.viewpager2.adapter
    ?? androidx.viewpager2.widget
   ??? anywheresoftware.b4a
    ?? anywheresoftware.b4a.keywords
   ??? anywheresoftware.b4a.keywords.constants
   ??? anywheresoftware.b4a.net
  ???? anywheresoftware.b4a.objects
    ?? anywheresoftware.b4a.objects.collections
    ?? anywheresoftware.b4a.objects.drawable
    ?? anywheresoftware.b4a.objects.streams
   ??? anywheresoftware.b4a.phone
    ?? anywheresoftware.b4a.sql
    ?? anywheresoftware.b4a.student
    ?? anywheresoftware.b4h.okhttp
   ??? aria.gp.listview.array.adapter
     ? b4a.example
     ? com.android.resources
     ? com.android.tools.lint.detector.api
    ?? com.astuetz
  ???? com.google.android.material
    ?? com.google.android.material.animation
   ??? com.google.android.material.appbar
    ?? com.google.android.material.badge
    ?? com.google.android.material.behavior
    ?? com.google.android.material.bottomappbar
    ?? com.google.android.material.bottomnavigation
    ?? com.google.android.material.bottomsheet
    ?? com.google.android.material.button
    ?? com.google.android.material.card
     ? com.google.android.material.checkbox
   ??? com.google.android.material.chip
    ?? com.google.android.material.circularreveal
     ? com.google.android.material.circularreveal.cardview
     ? com.google.android.material.circularreveal.coordinatorlayout
     ? com.google.android.material.color
   ??? com.google.android.material.datepicker
     ? com.google.android.material.dialog
     ? com.google.android.material.elevation
     ? com.google.android.material.expandable
   ??? com.google.android.material.floatingactionbutton
    ?? com.google.android.material.imageview
   ??? com.google.android.material.internal
     ? com.google.android.material.math
    ?? com.google.android.material.navigation
     ? com.google.android.material.radiobutton
    ?? com.google.android.material.resources
    ?? com.google.android.material.ripple
    ?? com.google.android.material.shadow
   ??? com.google.android.material.shape
    ?? com.google.android.material.slider
   ??? com.google.android.material.snackbar
     ? com.google.android.material.stateful
     ? com.google.android.material.switchmaterial
   ??? com.google.android.material.tabs
   ??? com.google.android.material.textfield
     ? com.google.android.material.theme.overlay
    ?? com.google.android.material.tooltip
    ?? com.google.android.material.transformation
   ??? com.google.android.material.transition
   ??? com.google.android.material.transition.platform
    ?? com.maximussoft.msmaterialdrawer
   ??? com.mikepenz.google_material_typeface_library
    ?? com.mikepenz.iconics
   ??? com.mikepenz.iconics.typeface
     ? com.mikepenz.iconics.utils
     ? com.mikepenz.iconics.view
   ??? com.mikepenz.materialdrawer
    ?? com.mikepenz.materialdrawer.accountswitcher
     ? com.mikepenz.materialdrawer.adapter
   ??? com.mikepenz.materialdrawer.model
    ?? com.mikepenz.materialdrawer.util
    ?? com.mikepenz.materialdrawer.view
  ???? com.persian.recycler
    ?? com.persian.recycler.adapter
    ?? com.persian.recycler.animator
   ??? com.persian.recycler.constant
   ??? com.persian.recycler.core
    ?? com.persian.recycler.enums
     ? com.persian.recycler.holder
    ?? com.persian.recycler.libs.alphabetsindexfastscrollrecycler
    ?? com.persian.recycler.libs.cardlayoutmanager
    ?? com.persian.recycler.libs.carousellayoutmanager
    ?? com.persian.recycler.libs.discretescrollview
    ?? com.persian.recycler.libs.discretescrollview.transform
     ? com.persian.recycler.libs.discretescrollview.util
    ?? com.persian.recycler.libs.fanlayoutmanager
     ? com.persian.recycler.libs.fanlayoutmanager.callbacks
    ?? com.persian.recycler.libs.fastindicator.views
   ??? com.persian.recycler.libs.flexbox
    ?? com.persian.recycler.libs.graphview
    ?? com.persian.recycler.libs.graphview.energy
    ?? com.persian.recycler.libs.graphview.tree
    ?? com.persian.recycler.libs.graphview.zoom
    ?? com.persian.recycler.libs.ladderlayoutmanager
     ? com.persian.recycler.libs.pickerlayoutmanager
    ?? com.persian.recycler.libs.rippleeffect
    ?? com.persian.recycler.libs.smartheaderfooter
    ?? com.persian.recycler.libs.snap
    ?? com.persian.recycler.libs.stacklayoutmanager
    ?? com.persian.recycler.libs.stickyheder
    ?? com.persian.recycler.libs.swipedeletview
    ?? com.persian.recycler.libs.tablayout
    ?? com.persian.recycler.libs.treerecyclerview
    ?? com.persian.recycler.libs.turnlayoutmanager
     ? com.persian.recycler.libs.vegalayoutmanager
   ??? com.persian.recycler.libs.viewpagerlayoutmanager
    ?? com.persian.recycler.utils
     ? com.persian.recycler.views
     ? com.squareup.okhttp
   ??? com.squareup.picasso
    ?? de.amberhome.objects
    ?? de.amberhome.objects.appcompat
     ? de.amberhome.objects.appcompat.internal
    ?? de.amberhome.viewpager
   ??? de.amberhome.viewpager.internal
     ? ir.EditTextPlus.pejman
  ???? ir.zarandapp.zisco.ioc
    ?? java.lang
    ?? java.lang.annotation
     ? java.math
     ? java.net
     ? java.nio
     ? java.nio.channels
     ? java.util
     ? java.util.concurrent
     ? java.util.logging
   ??? okhttp3
    ?? okhttp3.internal
    ?? okhttp3.internal.cache
    ?? okhttp3.internal.cache2
    ?? okhttp3.internal.connection
    ?? okhttp3.internal.http
    ?? okhttp3.internal.http1
   ??? okhttp3.internal.http2
    ?? okhttp3.internal.huc
     ? okhttp3.internal.io
    ?? okhttp3.internal.platform
    ?? okhttp3.internal.tls
    ?? okhttp3.internal.ws
   ??? okio
    ?? org.apache.commons.net
   ??? org.apache.commons.net.ftp
    ?? org.apache.commons.net.ftp.parser
    ?? org.apache.commons.net.io
    ?? org.apache.commons.net.pop3
    ?? org.apache.commons.net.smtp
    ?? org.apache.commons.net.util
    ?? org.apache.james.mime4j.codec
     ? org.apache.james.mime4j.util
     ? org.json
 
Top