Thanks! Now I have updated but only get the wrong code: Starting a Gradle Daemon (subsequent builds will be faster)
FAILURE: Build failed with an exception.
* What went wrong:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the User Manual chapter on the daemon at Please login to see this link.
Process command line: C:\Program Files (x86)\Java\jre1.8.0_301\bin\java.exe -Xmx4096m -Dfile.encoding=windows-1252 -Duser.country=SE -Duser.language=sv -Duser.variant -cp C:\Users\Lenovo ThinkCentre\.gradle\wrapper\dists\gradle-7.0.2-all\7era6s5ay7zsbhuvl0oc9g94s\gradle-7.0.2\lib\gradle-launcher-7.0.2.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 7.0.2
Please read the following process output to find out more:
-----------------------
Invalid maximum heap size: -Xmx4096m
The specified size exceeds the maximum representable size.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at Please login to see this link.
can I follow this guide ? :
You need to install Android Studio. After Android Studio is installed, open Clickteam Fusion 2.5, open the Preferences, select the General tab, and then select the Android exporter in the exporter list. You need to indicate the pathname of the Java SDK and the pathname of the Android SDK. Both are installed by Android Studio.
The Java SDK is usually installed in the jre sub-directory of Android Studio, by default C:\Program Files\Android\Android Studio\jre. Verify this directory exists on your machine and use it as "Pathname of the JDK directory" in the preferences of Clickteam Fusion 2.5.
The Android SDK is usually installed in your local Application Data directory, by default in C:\Users\YourName\AppData\Local\Android\Sdk. Replace YourName by your Windows user name. Verify this directory exists on your machine and use it as "Pathname of the Android SDK directory" in the preferences of Clickteam Fusion 2.5. If you can't find the mentioned folder, open Android Studio, open its Settings and select Android SDK in the list. The pathname of the Android SDK will be displayed in the Android SDK Location box.
Note: when you build an Android application, the Android build tools may automatically download libraries and tools it needs, however they don't ask you for accepting licenses. If you get an error message that says you have to accept licenses, open an explorer window, go to the Android SDK folder (usually C:\Users\YourName\AppData\Local\Android\Sdk), open the tools/bin sub-directory, open a command prompt window in this directory and type "sdkmanager --licenses" (or sdkmanager --update for old versions), this will allow you to review and accept the licenses of the downloaded files. You can also simply open the SDK Manager from Android Studio and update the build API/Tools, this may work.