Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Android plugins integration conflict (too many field references)

Discussion in 'Android' started by Prophet6989, Oct 26, 2016.

  1. Prophet6989

    Prophet6989

    Joined:
    Jul 8, 2012
    Posts:
    37
    Hello! I need help with android plugins integration. In our project we have several plugins (appodeal, crashlitics, FB, VK) and we need to integrate one more (play game services for using achievements). This plugin uses many of .aar modules, which reach 65536 field references limit.

    Before integrating this play game services plugin build have about 52K references, but after integration 76K.
    We need only login and achievement functionality, may be it's possible to remove some .aar or parts of .aar to fit references limit?
    Or may be anyone know how to access this functionality (login and achievements) without plugin?

    CommandInvokationFailure: Unable to convert classes into dex format.
    C:\Program Files\Java\jdk1.7.0_75\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="C:/android-sdk\tools" -Dfile.encoding=UTF8 -jar "C:\Program Files\Unity 5.4.1p1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" -

    stderr[

    trouble writing output: Too many field references: 76713; max is 65536.
    You may try using --multi-dex option.
    References by package:
    3 android.accounts
    29 android.app
    2 android.content
    49 android.content.pm
    7 android.content.res
    3 android.database
    41 android.graphics
    5 android.hardware
    1 android.location
    2 android.media
    1 android.media.browse
    2 android.net
    43 android.os
    3 android.print
    1 android.provider
    3 android.support.annotation
    1 android.support.customtabs
    1587 android.support.v4
    13 android.support.v4.accessibilityservice
    17 android.support.v4.animation
    768 android.support.v4.app
    109 android.support.v4.content
    1 android.support.v4.content.pm
    9 android.support.v4.graphics
    42 android.support.v4.graphics.drawable
    4 android.support.v4.hardware.display
    12 android.support.v4.hardware.fingerprint
    9 android.support.v4.internal.view
    334 android.support.v4.media
    272 android.support.v4.media.session
    5 android.support.v4.net
    19 android.support.v4.os
    49 android.support.v4.print
    9 android.support.v4.provider
    5 android.support.v4.speech.tts
    55 android.support.v4.text
    74 android.support.v4.util
    384 android.support.v4.view
    112 android.support.v4.view.accessibility
    8 android.support.v4.view.animation
    494 android.support.v4.widget
    243 android.support.v7.app
    1581 android.support.v7.appcompat
    1587 android.support.v7.cardview
    1 android.support.v7.graphics.drawable
    80 android.support.v7.internal.app
    1 android.support.v7.internal.text
    2 android.support.v7.internal.transition
    75 android.support.v7.internal.view
    191 android.support.v7.internal.view.menu
    416 android.support.v7.internal.widget
    2 android.support.v7.view
    456 android.support.v7.widget
    5 android.text
    13 android.util
    17 android.view
    7 android.webkit
    15 android.widget
    2 bitter.jnibridge
    158 bolts
    3 com.amazon.device.ads
    1594 com.android.vending.billing
    1 com.applovin.sdk
    833 com.appodeal.ads
    134 com.appodeal.ads.a
    136 com.appodeal.ads.b
    66 com.appodeal.ads.c
    100 com.appodeal.ads.d
    166 com.appodeal.ads.e
    62 com.appodeal.ads.f
    150 com.appodeal.ads.g
    148 com.appodeal.ads.native_ad
    99 com.appodeal.ads.native_ad.views
    89 com.appodeal.ads.networks
    62 com.appodeal.ads.networks.spotx
    47 com.appodeal.ads.networks.vpaid
    105 com.appodeal.ads.utils
    16 com.appodeal.ads.utils.a
    4 com.appodeal.ads.utils.b
    3 com.avocarrot.androidsdk
    2 com.chartboost.sdk.Libraries
    2 com.cmcm.adsdk
    2 com.cmcm.adsdk.banner
    18 com.crashlytics.android
    232 com.crashlytics.android.answers
    64 com.crashlytics.android.beta
    321 com.crashlytics.android.core
    32 com.crashlytics.android.core.internal.models
    1972 com.facebook
    3 com.facebook.ads
    1587 com.facebook.android
    148 com.facebook.appevents
    34 com.facebook.appevents.internal
    46 com.facebook.applinks
    537 com.facebook.internal
    165 com.facebook.login
    81 com.facebook.login.widget
    32 com.facebook.messenger
    51 com.facebook.share
    358 com.facebook.share.internal
    107 com.facebook.share.model
    124 com.facebook.share.widget
    51 com.facebook.unity
    3 com.flurry.android.ads
    106 com.gameanalytics.sdk
    6 com.gameanalytics.sdk.android
    13 com.gameanalytics.sdk.device
    22 com.gameanalytics.sdk.events
    22 com.gameanalytics.sdk.http
    11 com.gameanalytics.sdk.logging
    32 com.gameanalytics.sdk.state
    5 com.gameanalytics.sdk.store
    13 com.gameanalytics.sdk.threading
    1 com.gameanalytics.sdk.utilities
    25 com.google.ads
    22 com.google.ads.mediation
    9 com.google.ads.mediation.appodeal
    11 com.google.ads.mediation.customevent
    1581 com.google.android.gms
    20 com.google.android.gms.actions
    1624 com.google.android.gms.ads
    12 com.google.android.gms.ads.doubleclick
    19 com.google.android.gms.ads.formats
    15 com.google.android.gms.ads.identifier
    1581 com.google.android.gms.ads.impl
    259 com.google.android.gms.ads.internal
    22 com.google.android.gms.ads.internal.cache
    222 com.google.android.gms.ads.internal.client
    100 com.google.android.gms.ads.internal.formats
    180 com.google.android.gms.ads.internal.overlay
    51 com.google.android.gms.ads.internal.purchase
    198 com.google.android.gms.ads.internal.request
    14 com.google.android.gms.ads.internal.reward.client
    6 com.google.android.gms.ads.internal.reward.mediation.client
    7 com.google.android.gms.ads.internal.safebrowsing
    17 com.google.android.gms.ads.internal.util.client
    22 com.google.android.gms.ads.mediation
    1 com.google.android.gms.ads.mediation.admob
    12 com.google.android.gms.ads.mediation.customevent
    7 com.google.android.gms.ads.purchase
    1 com.google.android.gms.ads.reward.mediation
    46 com.google.android.gms.ads.search
    1635 com.google.android.gms.auth
    6 com.google.android.gms.auth.account
    1602 com.google.android.gms.auth.api
    85 com.google.android.gms.auth.api.credentials
    23 com.google.android.gms.auth.api.credentials.internal
    44 com.google.android.gms.auth.api.proxy
    46 com.google.android.gms.auth.api.signin
    31 com.google.android.gms.auth.api.signin.internal
    1581 com.google.android.gms.base
    1622 com.google.android.gms.clearcut
    93 com.google.android.gms.common
    94 com.google.android.gms.common.api
    41 com.google.android.gms.common.data
    46 com.google.android.gms.common.images
    165 com.google.android.gms.common.internal
    1 com.google.android.gms.common.internal.safeparcel
    4 com.google.android.gms.common.server
    12 com.google.android.gms.common.server.converter
    33 com.google.android.gms.common.server.response
    50 com.google.android.gms.common.stats
    23 com.google.android.gms.common.util
    1708 com.google.android.gms.drive
    60 com.google.android.gms.drive.events
    13 com.google.android.gms.drive.events.internal
    373 com.google.android.gms.drive.internal
    11 com.google.android.gms.drive.metadata
    24 com.google.android.gms.drive.metadata.internal
    41 com.google.android.gms.drive.query
    61 com.google.android.gms.drive.query.internal
    39 com.google.android.gms.drive.realtime.internal
    69 com.google.android.gms.drive.realtime.internal.event
    7 com.google.android.gms.drive.widget
    27 com.google.android.gms.dynamic
    2 com.google.android.gms.dynamite.descriptors.com.google.android.gms.ads.dynamite
    2 com.google.android.gms.dynamite.descriptors.com.google.android.gms.flags
    16 com.google.android.gms.flags.impl
    1776 com.google.android.gms.games
    26 com.google.android.gms.games.achievement
    78 com.google.android.gms.games.appcontent
    14 com.google.android.gms.games.event
    265 com.google.android.gms.games.internal
    252 com.google.android.gms.games.internal.api
    1 com.google.android.gms.games.internal.constants
    3 com.google.android.gms.games.internal.data
    7 com.google.android.gms.games.internal.events
    17 com.google.android.gms.games.internal.experience
    9 com.google.android.gms.games.internal.game
    3 com.google.android.gms.games.internal.multiplayer
    1 com.google.android.gms.games.internal.notification
    59 com.google.android.gms.games.internal.player
    8 com.google.android.gms.games.internal.request
    61 com.google.android.gms.games.leaderboard
    64 com.google.android.gms.games.multiplayer
    41 com.google.android.gms.games.multiplayer.realtime
    50 com.google.android.gms.games.multiplayer.turnbased
    58 com.google.android.gms.games.quest
    36 com.google.android.gms.games.request
    50 com.google.android.gms.games.snapshot
    9 com.google.android.gms.games.social
    16 com.google.android.gms.games.stats
    50 com.google.android.gms.games.video
    1581 com.google.android.gms.gass
    14 com.google.android.gms.gass.internal
    1686 com.google.android.gms.gcm
    6 com.google.android.gms.iid
    3883 com.google.android.gms.internal
    1724 com.google.android.gms.location
    100 com.google.android.gms.location.internal
    5 com.google.android.gms.location.places
    1597 com.google.android.gms.measurement
    350 com.google.android.gms.measurement.internal
    1588 com.google.android.gms.nearby
    6 com.google.android.gms.nearby.bootstrap
    46 com.google.android.gms.nearby.bootstrap.request
    18 com.google.android.gms.nearby.connection
    90 com.google.android.gms.nearby.messages
    10 com.google.android.gms.nearby.messages.ble
    24 com.google.android.gms.nearby.messages.devices
    152 com.google.android.gms.nearby.messages.internal
    18 com.google.android.gms.phenotype
    11 com.google.android.gms.playlog.internal
    6 com.google.android.gms.security
    26 com.google.android.gms.signin.internal
    1629 com.google.android.gms.tasks
    1581 com.google.example.games.mainlibproj
    36 com.google.games.bridge
    1 com.mopub.mobileads
    15 com.playgenesis.vkunityplugin
    1581 com.polygant.tapinc
    3 com.revmob
    4 com.startapp.android.publish
    1587 com.unity.purchasing
    33 com.unity.purchasing.common
    1748 com.unity.purchasing.googleplay
    1 com.unity3d.ads
    1632 com.unity3d.ads.android
    7 com.unity3d.ads.android.cache
    6 com.unity3d.ads.android.campaign
    7 com.unity3d.ads.android.data
    8 com.unity3d.ads.android.item
    163 com.unity3d.ads.android.properties
    19 com.unity3d.ads.android.unity3d
    44 com.unity3d.ads.android.video
    25 com.unity3d.ads.android.view
    74 com.unity3d.ads.android.webapp
    10 com.unity3d.ads.android.zone
    1 com.unity3d.ads2
    190 com.unity3d.player
    4 com.vasilij.unbiasedtime
    1672 com.vk.sdk
    156 com.vk.sdk.api
    6 com.vk.sdk.api.docs
    52 com.vk.sdk.api.httpClient
    7 com.vk.sdk.api.methods
    607 com.vk.sdk.api.model
    25 com.vk.sdk.api.photo
    80 com.vk.sdk.dialogs
    64 com.vk.sdk.payments
    1 com.vk.sdk.util
    3 com.yandex.mobile.ads
    1581 io.fabric.answers.android.unity
    1581 io.fabric.beta.android.unity
    1581 io.fabric.crashlytics.android.unity
    81 io.fabric.sdk.android
    2 io.fabric.sdk.android.services.cache
    167 io.fabric.sdk.android.services.common
    58 io.fabric.sdk.android.services.concurrency
    22 io.fabric.sdk.android.services.concurrency.internal
    38 io.fabric.sdk.android.services.events
    96 io.fabric.sdk.android.services.network
    9 io.fabric.sdk.android.services.persistence
    207 io.fabric.sdk.android.services.settings
    1581 io.fabric.sdk.android.unity
    1602 io.fabric.unity.android
    1587 io.fabric.unity.crashlytics.android
    1 java.io
    27 java.lang
    11 java.lang.annotation
    1 java.math
    1 java.net
    2 java.nio
    1 java.text
    6 java.util
    4 java.util.concurrent
    1 java.util.logging
    4 javax.microedition.khronos.egl
    1 javax.xml.xpath
    20 org.fmod
    1 org.json
    245 org.nexage.sourcekit.mraid
    14 org.nexage.sourcekit.mraid.internal
    6 org.nexage.sourcekit.mraid.nativefeature
    18 org.nexage.sourcekit.mraid.properties
    16 org.nexage.sourcekit.mraid.rtb
    26 org.nexage.sourcekit.util
    36 org.nexage.sourcekit.vast
    130 org.nexage.sourcekit.vast.activity
    92 org.nexage.sourcekit.vast.model
    6 org.nexage.sourcekit.vast.processor
    22 org.nexage.sourcekit.vast.view
    1617 universal.tools.notifications
    ]
    stdout[
    processing archive bin\classes.jar...
    processing com/unity3d/player/a$1.class...
    processing com/unity3d/player/a$a.class...
    processing com/unity3d/player/a.class...
    processing com/unity3d/player/b$1.class...
    processing com/unity3d/player/b$2.class...
    processing com/unity3d/player/b.class...
    processing com/unity3d/player/c.class...
    processing com/unity3d/player/d.class...
    processing com/unity3d/player/e.class...
    processing com/unity3d/player/f$1.class...
    processing com/unity3d/player/f$2$1$1.class...
    processing com/unity3d/player/f$2$1.class...
    processing com/unity3d/player/f$2.class...
    processing com/unity3d/player/f.class...
    processing com/unity3d/player/g.class...
    processing com/unity3d/player/h$1.class...
    processing com/unity3d/player/h.class...
    processing com/unity3d/player/NativeLoader.class...
    processing com/unity3d/player/i.class...
    processing com/unity3d/player/ReflectionHelper$1.class...
    processing com/unity3d/player/ReflectionHelper$a.class...
    processing com/unity3d/player/ReflectionHelper.class...
    processing com/unity3d/player/j$1.class...
    processing com/unity3d/player/j$2.class...
    processing com/unity3d/player/j$3.class...
    processing com/unity3d/player/j.class...
    processing com/unity3d/player/k.class...
    processing com/unity3d/player/UnityPlayer$1$1.class...
    processing com/unity3d/player/UnityPlayer$1.class...
    processing com/unity3d/player/UnityPlayer$2.class...
    processing com/unity3d/player/UnityPlayer$3.class...
    processing com/unity3d/player/UnityPlayer$5.class...
    processing com/unity3d/player/UnityPlayer$6.class...
    processing com/unity3d/player/UnityPlayer$7.class...
    processing com/unity3d/player/UnityPlayer$8.class...
    processing com/unity3d/player/UnityPlayer$9.class...
    processing com/unity3d/player/UnityPlayer$10.class...
    processing com/unity3d/player/UnityPlayer$11.class...
    processing com/unity3d/player/UnityPlayer$12$1.class...
    processing com/unity3d/player/UnityPlayer$12.class...
    processing com/unity3d/player/UnityPlayer$13.class...
    processing com/unity3d/player/UnityPlayer$14.class...
    processing com/unity3d/player/UnityPlayer$15.class...
    processing com/unity3d/player/UnityPlayer$16.class...
    processing com/unity3d/player/UnityPlayer$4.class...
    processing com/unity3d/player/UnityPlayer$17.class...
    processing com/unity3d/player/UnityPlayer$18.class...
    processing com/unity3d/player/UnityPlayer$19.class...
    processing com/unity3d/player/UnityPlayer$20.class...
    processing com/unity3d/player/UnityPlayer$21.class...
    processing com/unity3d/player/UnityPlayer$a.class...
    processing com/unity3d/player/UnityPlayer$b$1.class...
    processing com/unity3d/player/UnityPlayer$b.class...
    processing com/unity3d/player/UnityPlayer$c.class...
    processing com/unity3d/player/UnityPlayer.class...
    processing com/unity3d/player/UnityPlayerActivity.class...
    processing com/unity3d/player/UnityPlayerNativeActivity.class...
    processing com/unity3d/player/UnityPlayerProxyActivity.class...
    processing com/unity3d/player/l.class...
    processing com/unity3d/player/UnityWebRequest.class...
    processing com/unity3d/player/m$1.class...
    processing com/unity3d/player/m$a.class...
    processing com/unity3d/player/m.class...
    processing com/unity3d/player/WWW.class...
    processing org/fmod/FMODAudioDevice.class...
    processing org/fmod/a.class...
    processing bitter/jnibridge/JNIBridge$a.class...
    processing bitter/jnibridge/JNIBridge.class...
    processing bin\classes\.\android\support\v4\Manifest$permission.class...
    processing bin\classes\.\android\support\v4\Manifest.class...
    processing bin\classes\.\android\support\v4\R$anim.class...
    processing bin\classes\.\android\support\v4\R$attr.class...
    processing bin\classes\.\android\support\v4\R$bool.class...
    processing bin\classes\.\android\support\v4\R$color.class...
    processing bin\classes\.\android\support\v4\R$dimen.class...
    processing bin\classes\.\android\support\v4\R$drawable.class...
    processing bin\classes\.\android\support\v4\R$id.class...
    processing bin\classes\.\android\support\v4\R$integer.class...
    processing bin\classes\.\android\support\v4\R$layout.class...
    processing bin\classes\.\android\support\v4\R$menu.class...
    processing bin\classes\.\android\support\v4\R$string.class...
    processing bin\classes\.\android\support\v4\R$style.class...
    processing bin\classes\.\android\support\v4\R$styleable.class...
    processing bin\classes\.\android\support\v4\R.class...
    processing bin\classes\.\android\support\v7\appcompat\Manifest$permission.class...
    processing bin\classes\.\android\support\v7\appcompa<message truncated>
     
unityunity