FAILURE: Build failed with an exception on Android build

Execution failed for task ‘:app:compileReleaseJavaWithJavac’. >

Here’s the full message which was returned (always important to give!)

"FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
See log for full details."

Going to the log, this appears:

/app/platforms/android/app/src/main/java/com/adobe/phonegap/notification/ error: cannot find symbol

It’s trying to use the Android Support Library, which it cannot find. The reason for that is other controls are using the AndroidX library, which replaces it. You can’t use both libraries in the same project.

You’ll need to go through your plugins and see which ones have not been updated to use AndroidX, and get new versions.

(If you’re coming from PhoneGap, this may not have been a problem, since PhoneGap never updated to the latest Android SDKs. Now it’s time to update!)