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)
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
@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?
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.