Error when building android project

when running the project on android, it returns this error referring to gradle.

Does the system check in Wappler run without errors?
Also what does it return when you run java -version in the terminal?

Is the Java version in the Android studio > gradle settings the same you see in the terminal?

I see the version there is different, something’s not correct then in your setup. Do you see the same version when you run the same command in the terminal inside Wappler (and not windows cmd)?

Do you have any jdk entries in the windows environment variables settings in PATH?

Remove this entry and make sure to fully restart Wappler.
Then run the system check and the command here:

and see what it returns.

Are you sure there are no any other JAVA_HOME entries when you edit PATH in the environment variables? If yes remove them. Also maybe reinstall android studio as explained in our docs.

I noticed that you are using version 11.0.13 of java, can I use that same version, and I don’t need to add anything to the environment variables?

It’s not about the java version that need to be the same as on the screenshot i posted.
Please just follow the steps i explained above.

okay, I’ll check if there are any other environment variables

I uninstalled andoid, removed java from the environment variables, now it’s returning this error

You need to install the Android studio as explained here: