This is a migrated thread and some comments may be shown as answers.

Android Build error when adding push notification plugin

1 Answer 81 Views
Android Devices
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Francis
Top achievements
Rank 1
Francis asked on 12 Jul 2016, 11:39 PM

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

1 Answer, 1 is accepted

Sort by
0
Aleksandar Hitrov
Telerik team
answered on 13 Jul 2016, 09:52 AM
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.

 
Tags
Android Devices
Asked by
Francis
Top achievements
Rank 1
Answers by
Aleksandar Hitrov
Telerik team
Share this question
or