Unable to get Capacitor to output web and mobile builds

It looks like you are using Java 22. Capacitor 7 supports 21. What is your Gradle JDK set to under File → Settings in Android Studio?