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

Unable to adding support-compat-24.2.0.jar to Android Module

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Android
    • Labels:
      None
    • Environment:

      SDK 5.5.1.GA

    • Sprint:
      2017 Sprint 01 SDK

      Description

      Problem

      Custom facing problem:

      "I'm trying to import android.support.v4.app.NotificationCompat class in my Appcelerator Android Module project.
      To do this I have added jar 'support-compat-24.2.0.jar' in the lib folder. This has resolved all the import errors in the module."

      Reproduce

      1. Attached test Module customer created.
      2. Simply import and require it into a default app.
      Like:

      var testmodule = require('com.abc.mcoe.testmodule');


      3. Run the app. Will get following error.

      Error

      [ERROR] :  Failed to run dexer:
      [ERROR] :  
      [ERROR] :  Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/internal/view/SupportSubMenu;
      [ERROR] :  Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/internal/view/SupportMenu;
      [ERROR] :  Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/internal/view/SupportMenuItem;
      [ERROR] :  Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/app/NotificationManagerCompat;
      [ERROR] :  Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/app/NotificationCompat$Style;
      [ERROR] :  Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/app/NotificationCompat$NotificationCompatImplJellybean;
      [ERROR] :  Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/app/ShareCompat$ShareCompatImplJB;
      [ERROR] :  Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/app/NotificationCompat$Action$1;
      [ERROR] :  Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/app/NotificationCompat$Builder;
      [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:608)
      [ERROR] :  	at com.android.dx.command.dexer.Main.runMonoDex(Main.java:311)
      [ERROR] :  	at com.android.dx.command.dexer.Main.run(Main.java:277)
      [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:600)
      [ERROR] :  	... 4 more
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gmathews Gary Mathews
                Reporter:
                sliang Shuo Liang
              • Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-10297
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code