Android Build error when adding push notification plugin

2 posts, 0 answers
  1. Francis
    Francis avatar
    3 posts
    Member since:
    Jul 2016

    Posted 12 Jul Link to this post

    Hello, I am using visual studio extension, whenever I add the push notification plugin from the marketplace I get this build error:

    Project "FFMOBILE2.tmp.proj" (default targets): android Build Tooling revision 2016.07.07.2r Build Tooling Hostname ab-linuxbpc-2 Warning: Notice: org.apache.cordova.device has been automatically converted to cordova-plugin-device and fetched from npm. This is due to our old plugins registry shutting down. Warning: Note: Some input files use or override a deprecated API. Warning: Note: Recompile with -Xlint:deprecation for details. Warning: Note: Some input files use or override a deprecated API. Warning: Note: Recompile with -Xlint:deprecation for details. Warning: Note: Some input files use or override a deprecated API. Warning: Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Warning: Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/app/BundleUtil; Warning: Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/app/RemoteInputCompatJellybean; Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/app/NotificationCompatBase; Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/app/NotificationCompatApi20; Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/app/FragmentTransitionCompat21$1; Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/app/NotificationBuilderWithActions; Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/app/NotificationBuilderWithBuilderAccessor; Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/app/NotificationCompatIceCreamSandwich; Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/app/ActivityCompat21$SharedElementCallbackImpl; UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.RuntimeException: Translation has been interrupted at com.android.dx.command.dexer.Main.processAllFiles(Main.java:608) at com.android.dx.command.dexer.Main.runMonoDex(Main.java:311) at com.android.dx.command.dexer.Main.run(Main.java:277) at com.android.dx.command.dexer.Main.main(Main.java:245) at com.android.dx.command.Main.main(Main.java:106) Caused by: java.lang.InterruptedException: Too many errors at com.android.dx.command.dexer.Main.processAllFiles(Main.java:600) ... 4 more Warning: FAILURE: Warning: Build failed with an exception. Warning: * What went wrong: Warning: Execution failed for task ':transformClassesWithDexForArmv7Debug'. Warning: > Warning: com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/lib/jvm/java-8-oracle/bin/java'' finished with non-zero exit value 2 Warning: * Try: Run with Warning: --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Warning: undefined Error: Build failed during execution Error: 'Build failed with error code 2' Done building project "FFMOBILE2.tmp.proj" -- FAILED.

     

    Would anyone know how I can get around this error? 

     

    Thanks,

     

    Francis

  2. Aleksandar Hitrov
    Admin
    Aleksandar Hitrov avatar
    10 posts

    Posted 13 Jul Link to this post

    Hello Francis,

    I was not able to reproduce the issue you are reporting.
    In order for us to investigate we'll need the sources of your project.

    If that is OK with you I'd ask you to submit a support ticket following this procedure and attach an archive of your project to it.

    I'm looking forward to your reply. 

    Regards,
    Aleksandar Hitrov
    Telerik by Progress
     

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

     
Back to Top