Skip to content

Instantly share code, notes, and snippets.

@1fabiopereira
Last active June 28, 2017 19:44
Show Gist options
  • Save 1fabiopereira/ccb5aed5ee19d10644c1e2de360f4f57 to your computer and use it in GitHub Desktop.
Save 1fabiopereira/ccb5aed5ee19d10644c1e2de360f4f57 to your computer and use it in GitHub Desktop.

Ao compilar o aplicativo com o novo SDK fornecido tenho a seguinte saida de erro no console:

[ERROR] Failed to run dexer:
[ERROR]   
[ERROR] trouble writing output: Too many method references: 70731; max is 65536.
[ERROR] You may try using --multi-dex option.
[ERROR] References by package:
[ERROR]      6 android.accessibilityservice
[ERROR]      9 android.accounts
[ERROR]     13 android.animation
[ERROR]    387 android.app
[ERROR]      9 android.bluetooth
[ERROR]    214 android.content
[ERROR]     36 android.content.pm
[ERROR]    103 android.content.res
[ERROR]     68 android.database
[ERROR]     23 android.database.sqlite
[ERROR]    266 android.graphics
[ERROR]    124 android.graphics.drawable
[ERROR]      3 android.graphics.drawable.shapes
[ERROR]      3 android.graphics.pdf
[ERROR]     38 android.hardware
[ERROR]      3 android.hardware.display
[ERROR]     11 android.hardware.fingerprint
[ERROR]     60 android.location
[ERROR]    200 android.media
[ERROR]     87 android.media.session
[ERROR]     66 android.net
[ERROR]      4 android.net.http
[ERROR]      9 android.net.wifi
[ERROR]    275 android.os
[ERROR]      6 android.preference
[ERROR]     18 android.print
[ERROR]      5 android.print.pdf
[ERROR]     10 android.provider
[ERROR]      8 android.renderscript
[ERROR]      2 android.security
[ERROR]      6 android.speech.tts
[ERROR]     20 android.support.annotation
[ERROR]     41 android.support.v4.accessibilityservice
[ERROR]     62 android.support.v4.animation
[ERROR]   1612 android.support.v4.app
[ERROR]    272 android.support.v4.content
[ERROR]      1 android.support.v4.content.pm
[ERROR]     20 android.support.v4.content.res
[ERROR]      3 android.support.v4.database
[ERROR]     39 android.support.v4.graphics
[ERROR]    192 android.support.v4.graphics.drawable
[ERROR]     19 android.support.v4.hardware.display
[ERROR]     66 android.support.v4.hardware.fingerprint
[ERROR]     74 android.support.v4.internal.view
[ERROR]    456 android.support.v4.media
[ERROR]     96 android.support.v4.media.routing
[ERROR]    830 android.support.v4.media.session
[ERROR]     64 android.support.v4.net
[ERROR]     68 android.support.v4.os
[ERROR]     84 android.support.v4.print
[ERROR]     96 android.support.v4.provider
[ERROR]     14 android.support.v4.speech.tts
[ERROR]    103 android.support.v4.text
[ERROR]    284 android.support.v4.util
[ERROR]   1773 android.support.v4.view
[ERROR]   1116 android.support.v4.view.accessibility
[ERROR]     29 android.support.v4.view.animation
[ERROR]   1381 android.support.v4.widget
[ERROR]    950 android.support.v7.app
[ERROR]     18 android.support.v7.appcompat
[ERROR]     19 android.support.v7.cardview
[ERROR]     71 android.support.v7.graphics.drawable
[ERROR]      1 android.support.v7.recyclerview
[ERROR]      3 android.support.v7.text
[ERROR]      2 android.support.v7.transition
[ERROR]    179 android.support.v7.util
[ERROR]    156 android.support.v7.view
[ERROR]    588 android.support.v7.view.menu
[ERROR]   3969 android.support.v7.widget
[ERROR]    124 android.support.v7.widget.helper
[ERROR]      5 android.support.v7.widget.util
[ERROR]     11 android.telephony
[ERROR]     74 android.text
[ERROR]      2 android.text.format
[ERROR]      8 android.text.method
[ERROR]     15 android.text.style
[ERROR]      1 android.text.util
[ERROR]     24 android.transition
[ERROR]     71 android.util
[ERROR]    751 android.view
[ERROR]    215 android.view.accessibility
[ERROR]     51 android.view.animation
[ERROR]      2 android.view.inputmethod
[ERROR]    150 android.webkit
[ERROR]    901 android.widget
[ERROR]    199 aurelienribon.tweenengine
[ERROR]    119 aurelienribon.tweenengine.equations
[ERROR]      5 aurelienribon.tweenengine.paths
[ERROR]     20 aurelienribon.tweenengine.primitives
[ERROR]    247 bolts
[ERROR]    100 br.com.labcinco.canvas
[ERROR]    110 com.alcoapps.actionbarextras
[ERROR]      6 com.amazon.device.messaging
[ERROR]     43 com.animecyc.animator
[ERROR]    142 com.appcelerator.aps
[ERROR]      3 com.arellomobile.android.push.utils.rich
[ERROR]    666 com.facebook
[ERROR]    359 com.facebook.ads
[ERROR]    158 com.facebook.ads.internal
[ERROR]     21 com.facebook.ads.internal.action
[ERROR]    252 com.facebook.ads.internal.adapters
[ERROR]     42 com.facebook.ads.internal.dto
[ERROR]     65 com.facebook.ads.internal.http
[ERROR]     60 com.facebook.ads.internal.server
[ERROR]      9 com.facebook.ads.internal.ssp
[ERROR]    122 com.facebook.ads.internal.util
[ERROR]    201 com.facebook.ads.internal.view
[ERROR]     23 com.facebook.ads.internal.view.component
[ERROR]     80 com.facebook.ads.internal.view.video
[ERROR]     57 com.facebook.ads.internal.view.video.support
[ERROR]    157 com.facebook.appevents
[ERROR]     33 com.facebook.applinks
[ERROR]    701 com.facebook.internal
[ERROR]    280 com.facebook.login
[ERROR]    176 com.facebook.login.widget
[ERROR]     26 com.facebook.messenger
[ERROR]     76 com.facebook.share
[ERROR]    560 com.facebook.share.internal
[ERROR]    393 com.facebook.share.model
[ERROR]    328 com.facebook.share.widget
[ERROR]     38 com.flurry.android
[ERROR]      7 com.flurry.android.impl.analytics
[ERROR]    695 com.flurry.sdk
[ERROR]     31 com.google.ads
[ERROR]     55 com.google.ads.afma.nano
[ERROR]    108 com.google.ads.mediation
[ERROR]      2 com.google.ads.mediation.admob
[ERROR]     41 com.google.ads.mediation.customevent
[ERROR]     18 com.google.android.gms
[ERROR]      4 com.google.android.gms.actions
[ERROR]    173 com.google.android.gms.ads
[ERROR]     94 com.google.android.gms.ads.doubleclick
[ERROR]    101 com.google.android.gms.ads.formats
[ERROR]     23 com.google.android.gms.ads.identifier
[ERROR]    432 com.google.android.gms.ads.internal
[ERROR]    536 com.google.android.gms.ads.internal.client
[ERROR]    142 com.google.android.gms.ads.internal.formats
[ERROR]    254 com.google.android.gms.ads.internal.overlay
[ERROR]     99 com.google.android.gms.ads.internal.purchase
[ERROR]    192 com.google.android.gms.ads.internal.request
[ERROR]    120 com.google.android.gms.ads.internal.reward.client
[ERROR]     66 com.google.android.gms.ads.internal.reward.mediation.client
[ERROR]     39 com.google.android.gms.ads.internal.util.client
[ERROR]     91 com.google.android.gms.ads.mediation
[ERROR]      2 com.google.android.gms.ads.mediation.admob
[ERROR]     68 com.google.android.gms.ads.mediation.customevent
[ERROR]     16 com.google.android.gms.ads.purchase
[ERROR]     19 com.google.android.gms.ads.reward
[ERROR]     14 com.google.android.gms.ads.reward.mediation
[ERROR]     81 com.google.android.gms.ads.search
[ERROR]    120 com.google.android.gms.auth
[ERROR]      2 com.google.android.gms.auth.api.credentials
[ERROR]    132 com.google.android.gms.auth.api.signin
[ERROR]     46 com.google.android.gms.auth.api.signin.internal
[ERROR]     42 com.google.android.gms.auth.firstparty.shared
[ERROR]     53 com.google.android.gms.clearcut
[ERROR]    188 com.google.android.gms.common
[ERROR]    222 com.google.android.gms.common.api
[ERROR]    472 com.google.android.gms.common.api.internal
[ERROR]    141 com.google.android.gms.common.data
[ERROR]    108 com.google.android.gms.common.images
[ERROR]    574 com.google.android.gms.common.internal
[ERROR]     80 com.google.android.gms.common.internal.safeparcel
[ERROR]     10 com.google.android.gms.common.server
[ERROR]     45 com.google.android.gms.common.server.converter
[ERROR]    132 com.google.android.gms.common.server.response
[ERROR]     87 com.google.android.gms.common.stats
[ERROR]    213 com.google.android.gms.dynamic
[ERROR]      1 com.google.android.gms.dynamite.descriptors.com.google.android.gms.flags
[ERROR]     27 com.google.android.gms.flags.impl
[ERROR]    236 com.google.android.gms.gcm
[ERROR]    114 com.google.android.gms.iid
[ERROR]   3997 com.google.android.gms.internal
[ERROR]    296 com.google.android.gms.location
[ERROR]    395 com.google.android.gms.location.internal
[ERROR]    304 com.google.android.gms.location.places
[ERROR]    421 com.google.android.gms.location.places.internal
[ERROR]     58 com.google.android.gms.location.places.personalized
[ERROR]     60 com.google.android.gms.location.places.ui
[ERROR]    588 com.google.android.gms.maps
[ERROR]    881 com.google.android.gms.maps.internal
[ERROR]    527 com.google.android.gms.maps.model
[ERROR]    464 com.google.android.gms.maps.model.internal
[ERROR]      2 com.google.android.gms.measurement
[ERROR]     75 com.google.android.gms.playlog.internal
[ERROR]     13 com.google.android.gms.security
[ERROR]    145 com.google.android.gms.signin.internal
[ERROR]   5839 com.google.protobuf
[ERROR]     67 com.inlocomedia.android
[ERROR]    308 com.inlocomedia.android.ads
[ERROR]    216 com.inlocomedia.android.ads.core
[ERROR]     31 com.inlocomedia.android.ads.custom
[ERROR]     14 com.inlocomedia.android.ads.exception
[ERROR]     92 com.inlocomedia.android.ads.interstitial
[ERROR]    187 com.inlocomedia.android.ads.mraid
[ERROR]     83 com.inlocomedia.android.ads.nativeads
[ERROR]    139 com.inlocomedia.android.ads.nativeads.adapters
[ERROR]    122 com.inlocomedia.android.ads.notification
[ERROR]    196 com.inlocomedia.android.ads.views
[ERROR]     81 com.inlocomedia.android.core
[ERROR]     74 com.inlocomedia.android.core.communication
[ERROR]      4 com.inlocomedia.android.core.communication.listeners
[ERROR]     38 com.inlocomedia.android.core.exception
[ERROR]     78 com.inlocomedia.android.core.log
[ERROR]     51 com.inlocomedia.android.core.permissions
[ERROR]     82 com.inlocomedia.android.core.resources.ui.views
[ERROR]    312 com.inlocomedia.android.location
[ERROR]     12 com.inlocomedia.android.location.core.communication.listeners
[ERROR]     50 com.inlocomedia.android.location.exception
[ERROR]    348 com.inlocomedia.android.location.geofencing
[ERROR]      4 com.inlocomedia.android.location.listeners
[ERROR]     77 com.inlocomedia.android.location.maps
[ERROR]    240 com.inlocomedia.android.location.maps.views
[ERROR]    322 com.inlocomedia.android.location.models
[ERROR]      3 com.inlocomedia.android.mediation.admob
[ERROR]     35 com.inlocomedia.android.mediation.google
[ERROR]   5788 com.inlocomedia.android.private
[ERROR]     39 com.inlocomedia.android.profile
[ERROR]     10 com.inlocomedia.appcelerator
[ERROR]      4 com.inlocomedia.appcelerator.util
[ERROR]      8 com.inlocomedia.mediation.admob
[ERROR]     45 com.mobimidia.climaTempo
[ERROR]    575 com.mopub.common
[ERROR]    225 com.mopub.common.event
[ERROR]      5 com.mopub.common.factories
[ERROR]     24 com.mopub.common.logging
[ERROR]    165 com.mopub.common.util
[ERROR]      6 com.mopub.exceptions
[ERROR]   1194 com.mopub.mobileads
[ERROR]      1 com.mopub.mobileads.banner
[ERROR]      1 com.mopub.mobileads.base
[ERROR]     31 com.mopub.mobileads.dfp.adapters
[ERROR]     51 com.mopub.mobileads.factories
[ERROR]      1 com.mopub.mobileads.interstitial
[ERROR]     50 com.mopub.mobileads.resource
[ERROR]     35 com.mopub.mobileads.util
[ERROR]    356 com.mopub.mraid
[ERROR]    246 com.mopub.network
[ERROR]    170 com.mopub.volley
[ERROR]    219 com.mopub.volley.toolbox
[ERROR]    417 com.nineoldandroids.animation
[ERROR]     22 com.nineoldandroids.util
[ERROR]    229 com.nineoldandroids.view
[ERROR]     38 com.nineoldandroids.view.animation
[ERROR]    114 com.pushwoosh
[ERROR]     43 com.pushwoosh.beacon
[ERROR]     31 com.pushwoosh.fragment
[ERROR]    185 com.pushwoosh.inapp
[ERROR]     32 com.pushwoosh.internal
[ERROR]     28 com.pushwoosh.internal.registrar
[ERROR]     81 com.pushwoosh.internal.request
[ERROR]    183 com.pushwoosh.internal.utils
[ERROR]     15 com.pushwoosh.local
[ERROR]    117 com.pushwoosh.location
[ERROR]     72 com.pushwoosh.module
[ERROR]    115 com.pushwoosh.notification
[ERROR]    117 com.pushwoosh.richpages
[ERROR]      6 com.pushwoosh.sender
[ERROR]     42 com.pushwoosh.thirdparty.radiusnetworks.bluetooth
[ERROR]     94 com.pushwoosh.thirdparty.radiusnetworks.ibeacon
[ERROR]      8 com.pushwoosh.thirdparty.radiusnetworks.ibeacon.client
[ERROR]    152 com.pushwoosh.thirdparty.radiusnetworks.ibeacon.service
[ERROR]      4 com.pushwoosh.thirdparty.radiusnetworks.ibeacon.simulator
[ERROR]     13 com.pushwoosh.thirdparty.shortcutbadger
[ERROR]     56 com.pushwoosh.thirdparty.shortcutbadger.impl
[ERROR]      2 com.pushwoosh.thirdparty.shortcutbadger.util
[ERROR]      2 com.pushwoosh.thirdparty.support.v4.app
[ERROR]    100 com.tripvi.drawerlayout
[ERROR]      2 dalvik.system
[ERROR]      6 default
[ERROR]     98 facebook
[ERROR]    217 java.io
[ERROR]    439 java.lang
[ERROR]      4 java.lang.ref
[ERROR]     31 java.lang.reflect
[ERROR]     17 java.math
[ERROR]    119 java.net
[ERROR]     38 java.nio
[ERROR]      3 java.nio.channels
[ERROR]      7 java.nio.charset
[ERROR]     34 java.security
[ERROR]      2 java.security.spec
[ERROR]     36 java.text
[ERROR]    398 java.util
[ERROR]    125 java.util.concurrent
[ERROR]     25 java.util.concurrent.atomic
[ERROR]     14 java.util.concurrent.locks
[ERROR]     14 java.util.logging
[ERROR]     20 java.util.regex
[ERROR]     19 java.util.zip
[ERROR]      6 javax.crypto
[ERROR]      2 javax.crypto.spec
[ERROR]     21 javax.net.ssl
[ERROR]     11 javax.xml.parsers
[ERROR]      3 javax.xml.transform
[ERROR]      1 javax.xml.transform.dom
[ERROR]      1 javax.xml.transform.stream
[ERROR]     70 kankan.wheel.widget
[ERROR]      2 org.apache.commons.codec
[ERROR]     23 org.apache.commons.codec.binary
[ERROR]     12 org.apache.commons.codec.digest
[ERROR]     23 org.apache.http
[ERROR]      5 org.apache.http.client
[ERROR]      2 org.apache.http.client.entity
[ERROR]     17 org.apache.http.client.methods
[ERROR]      1 org.apache.http.client.utils
[ERROR]      1 org.apache.http.conn
[ERROR]      4 org.apache.http.conn.params
[ERROR]      4 org.apache.http.conn.scheme
[ERROR]      3 org.apache.http.conn.ssl
[ERROR]     11 org.apache.http.entity
[ERROR]      2 org.apache.http.impl
[ERROR]      9 org.apache.http.impl.client
[ERROR]      1 org.apache.http.impl.conn
[ERROR]      1 org.apache.http.impl.conn.tsccm
[ERROR]      2 org.apache.http.impl.cookie
[ERROR]      6 org.apache.http.message
[ERROR]     12 org.apache.http.params
[ERROR]      2 org.apache.http.protocol
[ERROR]      2 org.apache.http.util
[ERROR]    286 org.appcelerator.kroll
[ERROR]     83 org.appcelerator.kroll.common
[ERROR]     69 org.appcelerator.kroll.runtime.v8
[ERROR]     27 org.appcelerator.kroll.util
[ERROR]    545 org.appcelerator.titanium
[ERROR]      4 org.appcelerator.titanium.analytics
[ERROR]    130 org.appcelerator.titanium.io
[ERROR]     23 org.appcelerator.titanium.kroll
[ERROR]    388 org.appcelerator.titanium.proxy
[ERROR]    516 org.appcelerator.titanium.util
[ERROR]    372 org.appcelerator.titanium.view
[ERROR]    256 org.jaxen
[ERROR]    116 org.jaxen.dom
[ERROR]    403 org.jaxen.expr
[ERROR]     35 org.jaxen.expr.iter
[ERROR]     93 org.jaxen.function
[ERROR]     18 org.jaxen.function.ext
[ERROR]      3 org.jaxen.function.xslt
[ERROR]     48 org.jaxen.javabean
[ERROR]    121 org.jaxen.pattern
[ERROR]     68 org.jaxen.saxpath
[ERROR]     99 org.jaxen.saxpath.base
[ERROR]     48 org.jaxen.saxpath.helpers
[ERROR]     57 org.jaxen.util
[ERROR]     73 org.json
[ERROR]    107 org.w3c.dom
[ERROR]      9 org.xml.sax
[ERROR]      1 org.xml.sax.helpers
[ERROR]     20 org.xmlpull.v1
[ERROR]     54 ti.admob
[ERROR]     50 ti.draggable
[ERROR]     21 ti.flurry
[ERROR]     39 ti.graph
[ERROR]     28 ti.imagefactory
[ERROR]    267 ti.map
[ERROR]     20 ti.map.Shape
[ERROR]     63 ti.modules.titanium
[ERROR]      8 ti.modules.titanium.analytics
[ERROR]     96 ti.modules.titanium.android
[ERROR]     95 ti.modules.titanium.android.calendar
[ERROR]     61 ti.modules.titanium.android.notificationmanager
[ERROR]     45 ti.modules.titanium.app
[ERROR]     15 ti.modules.titanium.app.properties
[ERROR]     13 ti.modules.titanium.codec
[ERROR]     35 ti.modules.titanium.database
[ERROR]     31 ti.modules.titanium.filesystem
[ERROR]     75 ti.modules.titanium.geolocation
[ERROR]     39 ti.modules.titanium.geolocation.android
[ERROR]     12 ti.modules.titanium.gesture
[ERROR]     12 ti.modules.titanium.locale
[ERROR]    379 ti.modules.titanium.media
[ERROR]     15 ti.modules.titanium.media.android
[ERROR]    210 ti.modules.titanium.network
[ERROR]    108 ti.modules.titanium.network.httpurlconnection
[ERROR]     51 ti.modules.titanium.network.socket
[ERROR]     59 ti.modules.titanium.platform
[ERROR]     53 ti.modules.titanium.stream
[ERROR]    637 ti.modules.titanium.ui
[ERROR]      3 ti.modules.titanium.ui.activityindicatorstyle
[ERROR]     39 ti.modules.titanium.ui.android
[ERROR]     13 ti.modules.titanium.ui.clipboard
[ERROR]    528 ti.modules.titanium.ui.widget
[ERROR]    252 ti.modules.titanium.ui.widget.listview
[ERROR]    188 ti.modules.titanium.ui.widget.picker
[ERROR]     15 ti.modules.titanium.ui.widget.searchbar
[ERROR]      9 ti.modules.titanium.ui.widget.searchview
[ERROR]     66 ti.modules.titanium.ui.widget.tabgroup
[ERROR]    177 ti.modules.titanium.ui.widget.tableview
[ERROR]    120 ti.modules.titanium.ui.widget.webview
[ERROR]    193 ti.modules.titanium.xml

Pelo que entendi eu ultrapassei o limite de chamadas de métodos dentro de um aplicativo, para corrigir isso normalmente habilitamos o multi-dex do Android que compila duas versões do App uma para dispositivos 64bits e outra para dispositivos 32bits, o problema é que o Titanium só suporta o multi-dex a partir da versão 6.0.0.GA e como já disse anteriormente a versão que uso é a 5.5.0.GA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment