Your JAVA_HOME is invalid

MacOS Catalina
I have a problem with using Android when build the app
the build aborts with the following message:
Your JAVA_HOME is invalid: /Applications/Android Studio.app/Contents/
I point out that if the build is done directly with Android Studio everything is ok
Anyone know how to solve?
Thank You

Community Page
Last updated: