Android Question Error when using google analytics and airpush ads library

Discussion in 'Android Questions' started by 0CrimsonScythe0, Mar 10, 2015.

  1. 0CrimsonScythe0

    0CrimsonScythe0 Member Licensed User

    Hey,

    I've been trying to implement airpush ads together with google analytics , but I am getting this error:

    Code:
    Convert byte code - optimized dex.      Error
    UNEXPECTED TOP-LEVEL 
    EXCEPTION:
    java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/lz;
        at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:
    122)
        at com.android.dx.dex.file.DexFile.add(DexFile.java:
    161)
        at com.android.dx.command.dexer.Main.processClass(Main.java:
    685)
        at com.android.dx.command.dexer.Main.processFileBytes(Main.java:
    634)
        at com.android.dx.command.dexer.Main.access$
    600(Main.java:78)
        at com.android.dx.command.dexer.Main$
    1.processFileBytes(Main.java:572)
        at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:
    284)
        at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:
    166)
        at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:
    144)
        at com.android.dx.command.dexer.Main.processOne(Main.java:
    596)
        at com.android.dx.command.dexer.Main.processAllFiles(Main.java:
    498)
        at com.android.dx.command.dexer.Main.runMonoDex(Main.java:
    264)
        at com.android.dx.command.dexer.Main.run(Main.java:
    230)
        at com.android.dx.command.dexer.Main.main(Main.java:
    199)
        at com.android.dx.command.Main.main(Main.java:
    103)
    1 error; aborting
        Optimized dexer failed. Switching 
    to Standard dexer.
    It also happens when using airpush and leadbolt together. Should I contact airpush instead, I think its an issue with the library they provided since the problem does not occur when using leadbolt ads with analytics.

    Thanks!

    EDIT- found a similar question , please ignore this...
     
    Last edited: Mar 10, 2015
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice