Notification plugin build error on Android

I am setting up a new Mac, and for some reason, the notification 2 plugin (when enabled through build.setting), breaks the Android build.   (Corona-3515)

["plugin.notifications.v2"] =        {            publisherId = "com.coronalabs",        },

I have attached a screenshot of the error. Here is the beginning of the error trace.

Not sure if this is the root of the issue. One thing I did noticed is that I have Java 13 installed, when Corona’s mac installation instruction has Java 1.8. While I did go ahead and installed JDK 1.8, I am not sure how to tell Corona to use my JDK 1.8 rather the Java 13. 

Oct 03 05:35:59.023 Picked up JAVA\_TOOL\_OPTIONS: -Duser.language=en Oct 03 05:35:59.429 jar signed. Oct 03 05:36:00.790 Using java version "13" 2019-09-17                     Java(TM) SE Runtime Environment (build 13+33)                     Java HotSpot(TM) 64-Bit Server VM (build 13+33, mixed mode, sharing) Oct 03 05:36:01.477 Building Android app for akao@77sparx.com with 2019.3515 Oct 03 05:36:03.066 Using custom build id from app bundle: 00000 (AppSettings.lua) Oct 03 05:36:03.299 Note: debug info is not being stripped from application (settings.build.neverStripDebugInfo = true) Oct 03 05:36:06.822 BUILD SUCCESSFUL                     Total time: 2 seconds Oct 03 05:36:17.478 ERROR: configuring 'shared.firebase.messaging\_com.coronalabs' failed! Oct 03 05:36:17.478  Oct 03 05:36:17.481 FAILURE: Build failed with an exception. Oct 03 05:36:17.482 \* Where:                     Build file '/private/var/folders/8h/2lvp\_7cs77b6w6gfxlfp8ccr0000gn/T/CLtmpQwQP9B/template/app/build.gradle.kts' line: 255

I’ve reported this to engineering.

Rob

@Rob In the meanwhile, is there something I can do to get this to work? eg. Is there a config file somewhere I can change to downgrade the version of Java that Corona uses? 

Thanks!

Andrew 

Are you using local notifications, push notifications for Android or push notifications for iOS?

Yes, you can always use an older Java, unless some other app requires an updated version. To get the older Java JDK go here:

https://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html

You can uninstall the Java 13 if necessary, but I don’t believe you’re having a Java problem. If you go to the Android 64-bit Beta forum, there is a pinned post that tells you how to increase debugging information. You probably want to do that, capture the build log and use a service like pastebin.com to share it here (it will be quite long). We might get more details.

If you’re just using Local notifications or iOS only push, you can drop back to the notifications v1 plugin. The difference between the two is that v1 uses Google’s old Google Cloud Messaging (GCM) push system. V2 uses FCM or Firebase Cloud Messaging, which you need to use today if you’re doing push notifications through Google.

Rob

@Rob We are using the plugin for both Android & iOS Push notifications.

Here is the full trace with the extra debugging information turned on. This is obtained using Corona 2019.3531. 

https://pastebin.com/Fb8ydVkr

Many thanks!

Andrew 

This issue usually comes up whe there is issues with java. Try uninstalling java 13 and installing Java 1.8 JDK.

For anyone who may run across the same issue in the future. Instead of uninstalling Java 13 (which the instructions here didn’t work for me: https://www.java.com/en/download/help/mac_uninstall_java.xml). I instead just changed the active JDK to 1.8 using the 2nd answer here https://stackoverflow.com/questions/21964709/how-to-set-or-change-the-default-java-jdk-version-on-os-x. And it seems to work. 

Thx!