• Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

SOLVED what exe compiles android apk and or aab

D

danicrem

Guest
Hello,
I have a problem compiling a simple scene (just a room, with a sprite) to an apk file. I have keystore and all settings done. The preview also works, but if I want to compile I get
cmd.exe exited with non-zero status (1)
So I guess my Bitdefender (antivirus) is blocking Game Maker Studio 2 from compiling. I tested this already with compiling a Windows executable. That failed too and needed makensis.exe. After I granted permission to that exe, GM2 did compile correctly.

But what part of GM2 compiles apk/aab?
 
D

danicrem

Guest
Seems nothing to do with the antivirus. I disabled it completely and still nothing...

And If it is compiling I don't see a z: drive being created.

The last lines in the Output are:
GML:
Downloading https://services.gradle.org/distributions/gradle-5.1.1-all.zip

Exception in thread "main" javax.net.ssl.SSLException: Received fatal alert: protocol_version
    at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
    at sun.security.ssl.Alerts.getSSLException(Alerts.java:154)
    at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1979)
    at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1086)
    at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1332)
    at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1359)
    at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1343)
    at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1301)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
    at org.gradle.wrapper.Download.downloadInternal(Download.java:58)
    at org.gradle.wrapper.Download.download(Download.java:44)
    at org.gradle.wrapper.Install$1.call(Install.java:61)
    at org.gradle.wrapper.Install$1.call(Install.java:48)
    at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:69)
    at org.gradle.wrapper.Install.createDist(Install.java:48)
    at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:107)
    at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)


C:\Windows\system32\cmd.exe exited with non-zero status (1)
 
D

danicrem

Guest
Those websites are true abracadabra to me... Any idea how to fix this?
 

Nocturne

Friendly Tyrant
Forum Staff
Admin
What are your compile options for GMS2 and have you ensured that ANdroid Studio has the required components for them? Ie: What do you have in the Game Options for the app?
 

Nocturne

Friendly Tyrant
Forum Staff
Admin
What version of the JDK is that? And it looks like NDK 21 you're using... Note this part here of the SDKs article:

  • Install Android Studio 3.5 and configure it as per the setup guide linked-to just above this line.
  • We recommend Android API 29 / NDK 20 for all projects. API 29 is only supported in 2.2.4+.
  • For your JDK location, use the location of the OpenJDK 8 install which is included by default in your Android Studio installation. Gradle does not support any version of JDK 9 or newer, so stick with this Android Studio version.
 
D

danicrem

Guest
Now I did change the JDK folder to the androidstudio jre and changed the folder of android studio to a root folder (c:/androidtudio/)

Still a problem when compiling

GML:
File C:\Users\danie\.android\repositories.cfg could not be loaded.
Checking the license for package Android SDK Build-Tools 28.0.3 in C:\androidSDK\licenses
License for package Android SDK Build-Tools 28.0.3 accepted.
Preparing "Install Android SDK Build-Tools 28.0.3 (revision: 28.0.3)".
"Install Android SDK Build-Tools 28.0.3 (revision: 28.0.3)" ready.
Installing Android SDK Build-Tools 28.0.3 in C:\androidSDK\build-tools\28.0.3
"Install Android SDK Build-Tools 28.0.3 (revision: 28.0.3)" complete.
"Install Android SDK Build-Tools 28.0.3 (revision: 28.0.3)" finished.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':com.IQsted.Wordy'.
> Failed to find Platform SDK with path: platforms;android-30

* 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 https://help.gradle.org

BUILD FAILED in 28s


C:\Windows\system32\cmd.exe exited with non-zero status (1)
 
D

danicrem

Guest
In Java 14 it has no jre folder. Sigh...
And I installed Android studio. Installed the NDK from there. Not sure how to install a different version. Android SDK command-line tools, Android SDK platform tools, Google play instant development SDK. All installed.
 
D

danicrem

Guest
And I also connected a phone to the pc and downloaded the correct Android build (matching the phone build) form Andoid Studio
 
Top