Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-24722

Android: Ti Modules causing conflict with google play services

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Fixed
    • Affects Version/s: Release 6.0.4
    • Fix Version/s: Release 6.3.0
    • Component/s: None
    • Labels:
      None

      Description

      Issue Description

      At creating an appcelerator android module which uses Google Play services.
      I'm using the libraries 'play-services-base-9.4.0.jar' and 'play-services-basement-9.4.0.jar' in my appc module which is attached - testplayservicesmodule.zip

      If i use this project in the appc app, everything is working fine.
      But, if I add ti.map module as well to my appc app, it is giving error as 'Failed to run dexer' since the ti.map is also using similar jars in it.

      Steps to reproduce

      1. Import project TestPlayServicesApp.zip into Appc Studio.
      2. Import timap module
      3. Run the application.

      You will see the following error log:

      [ERROR] : Failed to run dexer:
      [ERROR] : 
      [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/actions/ItemListIntents;
      [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/actions/NoteIntents;
      [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/actions/ReserveIntents;
      [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/actions/SearchIntents;
      [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;
      [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$Info;
      [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$zza;
      [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;
      [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount$1;
      [ERROR] : 
      [ERROR] : UNEXPECTED TOP-LEVEL EXCEPTION:
      [ERROR] : java.lang.RuntimeException: Translation has been interrupted
      [ERROR] : at com.android.dx.command.dexer.Main.processAllFiles(Main.java:613)
      [ERROR] : at com.android.dx.command.dexer.Main.runMultiDex(Main.java:366)
      [ERROR] : at com.android.dx.command.dexer.Main.run(Main.java:275)
      [ERROR] : at com.android.dx.command.dexer.Main.main(Main.java:245)
      [ERROR] : at com.android.dx.command.Main.main(Main.java:106)
      [ERROR] : Caused by: java.lang.InterruptedException: Too many errors
      [ERROR] : at com.android.dx.command.dexer.Main.processAllFiles(Main.java:605)
      [ERROR] : ... 4 more
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gmathews Gary Mathews
                Reporter:
                rramirez Ricardo Ramirez
                Reviewer:
                Lokesh Choudhary
              • Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code