this is my first time using a MAC computer and i'm trying to run it on an android device (the iphone works fine) but i recieve a error message when i try to compile the file on the android emulator
The error message is:
Launching lib/main.dart on sdk gphone x86 in debug mode...
lib/main.dart:1
ERROR: JAVA_HOME is set to an invalid directory: /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
Apreciace all help, thank you.