Android Question [ Solved ] Getting Error while Integrtation Firebase Push Notification

AndroidMadhu

Active Member
Licensed User
Hello,
I am getting error while integration of Firebase push notification.
The below is my manifest details :
B4X:
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
CreateResourceFromFile(Macro, FirebaseNotifications.FirebaseNotifications)

An I am getting error as per screenshot attached...

beeimgtmp-20210409-130728.png


Please advice am I doing any mistake?

Thanks
 

AndroidMadhu

Active Member
Licensed User
Best is to copy the hole compile-window content.
I copy and paste the whole compile window below :
B4X:
B4A Version: 10.2
Java Version: 11
Parsing code.       (0.12s)
Building folders structure.       (0.02s)
Compiling code.       (0.16s)
Compiling layouts code.       (0.01s)
Organizing libraries.       (0.00s)
(AndroidX SDK)
Generating R file.       (0.00s)
Compiling generated Java code.       (1.65s)
Convert byte code - optimized dex.       Error
trouble writing output: Too many method references to fit in one dex file: 69800; 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:
      14 adr.splashfadelibrary
        4 android.accessibilityservice
        5 android.accounts
      74 android.animation
    491 android.app
      23 android.app.job
        2 android.appwidget
    228 android.content
      75 android.content.pm
    113 android.content.res
      68 android.database
      27 android.database.sqlite
    266 android.graphics
    141 android.graphics.drawable
        3 android.graphics.drawable.shapes
      13 android.graphics.fonts
        3 android.graphics.pdf
      31 android.hardware
        3 android.hardware.display
      11 android.hardware.fingerprint
        2 android.icu.text
        3 android.icu.util
      40 android.location
    230 android.media
      18 android.media.browse
      97 android.media.session
      59 android.net
        2 android.net.http
        2 android.net.ssl
      36 android.opengl
    326 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
      27 android.support.v4.app
        3 android.support.v4.graphics.drawable
    298 android.support.v4.media
    931 android.support.v4.media.session
      33 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
    122 android.util
    819 android.view
    259 android.view.accessibility
      52 android.view.animation
      15 android.view.inputmethod
        1 android.view.textclassifier
    104 android.webkit
    843 android.widget
      73 androidx.activity
      54 androidx.annotation
      38 androidx.appcompat
    937 androidx.appcompat.app
      10 androidx.appcompat.content.res
    328 androidx.appcompat.graphics.drawable
      28 androidx.appcompat.res
      15 androidx.appcompat.resources
        3 androidx.appcompat.text
    155 androidx.appcompat.view
    724 androidx.appcompat.view.menu
  2591 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
      72 androidx.core.content
      66 androidx.core.content.pm
    111 androidx.core.content.res
        5 androidx.core.database
        2 androidx.core.database.sqlite
    179 androidx.core.graphics
    187 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
    723 androidx.core.view
    339 androidx.core.view.accessibility
      10 androidx.core.view.animation
      44 androidx.core.view.inputmethod
    342 androidx.core.widget
      70 androidx.cursoradapter.widget
      17 androidx.customview.view
    151 androidx.customview.widget
      95 androidx.documentfile.provider
      15 androidx.drawerlayout
    177 androidx.drawerlayout.widget
      15 androidx.fragment
  1053 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
    119 androidx.slidingpanelayout.widget
      15 androidx.swiperefreshlayout
    256 androidx.swiperefreshlayout.widget
    322 androidx.vectordrawable.graphics.drawable
    240 androidx.versionedparcelable
    279 androidx.viewpager.widget
    213 anywheresoftware.b4a
      25 anywheresoftware.b4a.agraham.byteconverter
    276 anywheresoftware.b4a.agraham.dialogs
      66 anywheresoftware.b4a.agraham.reflection
    110 anywheresoftware.b4a.audio
        1 anywheresoftware.b4a.debug
      55 anywheresoftware.b4a.gps
    279 anywheresoftware.b4a.keywords
      13 anywheresoftware.b4a.keywords.constants
      12 anywheresoftware.b4a.object
  1322 anywheresoftware.b4a.objects
      89 anywheresoftware.b4a.objects.collections
    110 anywheresoftware.b4a.objects.drawable
      81 anywheresoftware.b4a.objects.streams
    254 anywheresoftware.b4a.phone
      30 anywheresoftware.b4a.remotelogger
      47 anywheresoftware.b4a.sql
      65 anywheresoftware.b4h.okhttp
      26 anywheresoftware.b4j.object
      36 anywheresoftware.b4j.objects
    158 b4a.example
      54 b4a.example3
        9 com.android.builder.model
        1 com.android.sdklib
        8 com.android.tools.lint.client.api
      37 com.android.tools.lint.detector.api
      25 com.dlazaro66.qrcodereaderview
      30 com.google.ads
    101 com.google.ads.mediation
        2 com.google.ads.mediation.admob
      40 com.google.ads.mediation.customevent
      37 com.google.android.datatransport
      29 com.google.android.datatransport.cct
    206 com.google.android.datatransport.cct.a
    173 com.google.android.datatransport.runtime
      82 com.google.android.datatransport.runtime.backends
        8 com.google.android.datatransport.runtime.dagger
    105 com.google.android.datatransport.runtime.dagger.internal
        4 com.google.android.datatransport.runtime.dagger.multibindings
        9 com.google.android.datatransport.runtime.logging
        4 com.google.android.datatransport.runtime.retries
      32 com.google.android.datatransport.runtime.scheduling
    118 com.google.android.datatransport.runtime.scheduling.jobscheduling
    246 com.google.android.datatransport.runtime.scheduling.persistence
        3 com.google.android.datatransport.runtime.synchronization
      28 com.google.android.datatransport.runtime.time
        4 com.google.android.datatransport.runtime.util
        4 com.google.android.gms.actions
    325 com.google.android.gms.ads
      28 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
      18 com.google.android.gms.ads.instream
    158 com.google.android.gms.ads.internal
    111 com.google.android.gms.ads.internal.overlay
    202 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.nonagon.transaction.omid
      27 com.google.android.gms.ads.query
      33 com.google.android.gms.ads.reward
      17 com.google.android.gms.ads.reward.mediation
      40 com.google.android.gms.ads.rewarded
      14 com.google.android.gms.ads.rewardedinterstitial
    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
    275 com.google.android.gms.common
    289 com.google.android.gms.common.api
    923 com.google.android.gms.common.api.internal
      29 com.google.android.gms.common.config
    142 com.google.android.gms.common.data
      78 com.google.android.gms.common.images
    504 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
      38 com.google.android.gms.common.stats
    179 com.google.android.gms.common.util
      10 com.google.android.gms.common.util.concurrent
      14 com.google.android.gms.common.wrappers
    205 com.google.android.gms.dynamic
      72 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.flags
        1 com.google.android.gms.dynamite.descriptors.com.google.android.gms.measurement.dynamite
      53 com.google.android.gms.flags
      22 com.google.android.gms.flags.impl
19381 com.google.android.gms.internal.ads
      19 com.google.android.gms.internal.ads_identifier
      75 com.google.android.gms.internal.base
      36 com.google.android.gms.internal.common
      95 com.google.android.gms.internal.crash
      19 com.google.android.gms.internal.firebase-iid
      47 com.google.android.gms.internal.firebase_messaging
      18 com.google.android.gms.internal.flags
    274 com.google.android.gms.internal.location
    379 com.google.android.gms.internal.maps
  3651 com.google.android.gms.internal.measurement
        3 com.google.android.gms.internal.tasks
    363 com.google.android.gms.location
      12 com.google.android.gms.location.places
    626 com.google.android.gms.maps
    556 com.google.android.gms.maps.internal
    542 com.google.android.gms.maps.model
      90 com.google.android.gms.measurement
      32 com.google.android.gms.measurement.api
  2280 com.google.android.gms.measurement.internal
        4 com.google.android.gms.measurement.module
      13 com.google.android.gms.security
      19 com.google.android.gms.signin
      77 com.google.android.gms.signin.internal
      18 com.google.android.gms.stats
    203 com.google.android.gms.tasks
    101 com.google.firebase
      48 com.google.firebase.analytics
      38 com.google.firebase.analytics.connector
      36 com.google.firebase.analytics.connector.internal
    150 com.google.firebase.components
      75 com.google.firebase.crash
        5 com.google.firebase.crash.component
        8 com.google.firebase.datatransport
        3 com.google.firebase.emulators
      21 com.google.firebase.encoders
        2 com.google.firebase.encoders.annotations
        3 com.google.firebase.encoders.config
      70 com.google.firebase.encoders.json
        9 com.google.firebase.events
      22 com.google.firebase.heartbeatinfo
    382 com.google.firebase.iid
        2 com.google.firebase.iid.internal
        1 com.google.firebase.inject
    121 com.google.firebase.installations
        1 com.google.firebase.installations.interop
      11 com.google.firebase.installations.lint
      80 com.google.firebase.installations.local
      99 com.google.firebase.installations.remote
        7 com.google.firebase.internal
    355 com.google.firebase.messaging
      28 com.google.firebase.platforminfo
      10 com.google.firebase.provider
    141 com.google.zxing
      10 com.google.zxing.aztec
      17 com.google.zxing.aztec.decoder
      17 com.google.zxing.aztec.detector
      29 com.google.zxing.aztec.encoder
      38 com.google.zxing.client.android.camera.open
        4 com.google.zxing.client.android.common
        8 com.google.zxing.client.android.common.executor
    273 com.google.zxing.client.result
    102 com.google.zxing.common
      14 com.google.zxing.common.detector
      36 com.google.zxing.common.reedsolomon
      12 com.google.zxing.datamatrix
      59 com.google.zxing.datamatrix.decoder
      19 com.google.zxing.datamatrix.detector
    116 com.google.zxing.datamatrix.encoder
        7 com.google.zxing.maxicode
      18 com.google.zxing.maxicode.decoder
      11 com.google.zxing.multi
        5 com.google.zxing.multi.qrcode
      18 com.google.zxing.multi.qrcode.detector
    169 com.google.zxing.oned
      61 com.google.zxing.oned.rss
      56 com.google.zxing.oned.rss.expanded
    114 com.google.zxing.oned.rss.expanded.decoders
        9 com.google.zxing.pdf417
      29 com.google.zxing.pdf417.decoder
      31 com.google.zxing.pdf417.decoder.ec
      38 com.google.zxing.pdf417.detector
      64 com.google.zxing.pdf417.encoder
      12 com.google.zxing.qrcode
    103 com.google.zxing.qrcode.decoder
      60 com.google.zxing.qrcode.detector
      78 com.google.zxing.qrcode.encoder
        7 com.intellij.psi
        1 com.intellij.psi.util
      26 com.wrapp.floatlabelededittext
        5 dalvik.system
    512 de.amberhome.objects.appcompat
      54 de.amberhome.objects.appcompat.internal
      59 de.amberhome.objects.floatingactionbutton
      81 de.amberhome.objects.floatingactionbutton.internal
    229 de.amberhome.objects.floatingactionbutton.internal.noa
    284 de.amberhome.objects.floatingactionbutton.internal.noa.animation
      22 de.amberhome.objects.floatingactionbutton.internal.noa.util
        4 default
    218 java.io
    444 java.lang
        6 java.lang.ref
      43 java.lang.reflect
      32 java.math
    106 java.net
      76 java.nio
      17 java.nio.channels
        7 java.nio.charset
        2 java.nio.file
      52 java.security
      37 java.security.cert
        4 java.security.interfaces
      21 java.security.spec
      34 java.text
        1 java.time
    444 java.util
    141 java.util.concurrent
      32 java.util.concurrent.atomic
      18 java.util.concurrent.locks
      24 java.util.logging
      28 java.util.regex
      32 java.util.zip
      25 javax.crypto
        4 javax.crypto.spec
        2 javax.inject
      12 javax.microedition.khronos.egl
        2 javax.net
    102 javax.net.ssl
        3 javax.security.auth.x500
        3 kotlin
        7 kotlin.collections
        1 kotlin.jvm.functions
        5 kotlin.jvm.internal
        2 kotlin.sequences
        4 kotlin.text
      19 main.java.com.dlazaro66.qrcodereaderview
      38 main.java.com.google.zxing.client.android.camera.open
        4 main.java.com.google.zxing.client.android.common
        8 main.java.com.google.zxing.client.android.common.executor
    779 okhttp3
      66 okhttp3.internal
      93 okhttp3.internal.cache
      17 okhttp3.internal.cache2
      75 okhttp3.internal.connection
      91 okhttp3.internal.http
      46 okhttp3.internal.http1
    306 okhttp3.internal.http2
      18 okhttp3.internal.io
      95 okhttp3.internal.platform
        3 okhttp3.internal.proxy
        9 okhttp3.internal.publicsuffix
      32 okhttp3.internal.tls
      71 okhttp3.internal.ws
    643 okio
      11 org.conscrypt
    261 org.eclipse.paho.client.mqttv3
    218 org.eclipse.paho.client.mqttv3.internal
      41 org.eclipse.paho.client.mqttv3.internal.security
    162 org.eclipse.paho.client.mqttv3.internal.wire
      72 org.eclipse.paho.client.mqttv3.logging
      28 org.eclipse.paho.client.mqttv3.persist
      21 org.eclipse.paho.client.mqttv3.util
      27 org.jetbrains.uast
        1 org.jetbrains.uast.kotlin
        2 org.jetbrains.uast.visitor
      57 org.json
        6 org.w3c.dom
      15 org.xmlpull.v1
      27 qrcodereaderviewwrapper
      20 sun.misc
        6 uk.co.martinpearman.b4a.android.app
      10 uk.co.martinpearman.b4a.android.graphics
      94 uk.co.martinpearman.b4a.com.google.android.gms.maps
      40 uk.co.martinpearman.b4a.com.google.android.gms.maps.googlemap
    312 uk.co.martinpearman.b4a.com.google.android.gms.maps.model
      84 uk.co.martinpearman.b4a.fusedlocationprovider
      44 uk.co.martinpearman.b4a.googlemapsextras
        9 uk.co.martinpearman.java.android.app
  1129 wito.cab.driver
      24 wito.cab.driver.designerscripts


Thanks
 
Upvote 0

mcqueccu

Well-Known Member
Licensed User
Longtime User
Add multidex = true

 
Upvote 0
Top