1. Hello Guest! It's with a heavy heart that we must announce the removal of the Legacy GMC Archive. If you wish to save anything from it, now's the time! Please see this topic for more information.
    Dismiss Notice

Android Build Android failed

Discussion in 'GameMaker Studio 2 Community Tech Support' started by Lê Tuấn Anh, Nov 30, 2019.

  1. Lê Tuấn Anh

    Lê Tuấn Anh Member

    Joined:
    Nov 27, 2019
    Posts:
    9
    After build android, output show
    Code:
    C:\WINDOWS\system32\cmd.exe /c "subst T: "Z:/SocketIO_403D62CE\Android\default" && T: && cd "com.exception.socketio" && "X:/Android\runner\gradle\gradlew" build  assembleRelease  -x lint  "
    Exception in thread "main" java.lang.NullPointerException
        at org.gradle.wrapper.BootstrapMainStarter.findLauncherJar(BootstrapMainStarter.java:38)
        at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:26)
        at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:108)
        at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
     
  2. rIKmAN

    rIKmAN Member

    Joined:
    Sep 6, 2016
    Posts:
    4,763
    Can you post the full compiler output?
     
    Lê Tuấn Anh likes this.
  3. Lê Tuấn Anh

    Lê Tuấn Anh Member

    Joined:
    Nov 27, 2019
    Posts:
    9
    I used:
    Build tool: 29.0.2
    Support lib: 29.0.0
    Target SDK: 29
    Min SDK: 16
    Compile SDK: 29

    SDK Android Studio
    NDK: 20.1.5948944
    JRE: Android Studio
     
    Last edited by a moderator: Dec 1, 2019
  4. rIKmAN

    rIKmAN Member

    Joined:
    Sep 6, 2016
    Posts:
    4,763
    Make sure you are using Android Studio 3.5 so that the version of the JDK you are pointing to is not v9 or higher as that is not supported by gradle as per the Android section of the GMS2 Required SDKs article.

    If you create a fresh new empty project and try to compile to Android in the same way, does that work?

    Have you tried targeting API 28, and does that work or give the same error?
    What version of the IDE are you using?
     
    Lê Tuấn Anh likes this.
  5. Lê Tuấn Anh

    Lê Tuấn Anh Member

    Joined:
    Nov 27, 2019
    Posts:
    9
    JAVA JRE:
    I used API 28,it give the same error
    IDE version: 2.2.4.474, Runtime: 2.2.4.374
     
  6. rIKmAN

    rIKmAN Member

    Joined:
    Sep 6, 2016
    Posts:
    4,763
    How about a fresh new empty room project?

    Try both VM and YYC, and make sure you clean the project cache between builds (including your own projects not just this empty room one).
     
  7. Lê Tuấn Anh

    Lê Tuấn Anh Member

    Joined:
    Nov 27, 2019
    Posts:
    9
    I try with new project, it still failed
    I use VM and YYC and clean project
     
  8. rIKmAN

    rIKmAN Member

    Joined:
    Sep 6, 2016
    Posts:
    4,763
    If an empty room fails using default API values like 28 then the issue is with your build tools in general.

    I’d recommend starting again fresh and following the GMS2 Android Setup Guide making sure to use the versions from the Required SDKs article linked throughout it and following it exactly.

    Before doing that try matching your settings to those in that guide and see if that helps at all or the error message changes. If not go ahead and follow it through from start to finish,

    Once done try compiling a fresh empty room project again, once that works we can look at any project specific issues as we’ll know the build tools are setup correctly.
     
    Last edited: Dec 1, 2019
    Lê Tuấn Anh likes this.
  9. Lê Tuấn Anh

    Lê Tuấn Anh Member

    Joined:
    Nov 27, 2019
    Posts:
    9
    Oh yeah, I fixed it
    I try chang gradle version in "X:\android\runner\gradle\gradle\wrapper" to version gradle-5.2-all
    Can you tell me which version of the gradle you are using?
     
  10. rIKmAN

    rIKmAN Member

    Joined:
    Sep 6, 2016
    Posts:
    4,763
    Sorry I’m not at home at the moment but I can check when I get back.

    However it’s whatever the default version is that gets installed as I’ve never changed it manually.
     
    Lê Tuấn Anh likes this.
  11. Lê Tuấn Anh

    Lê Tuấn Anh Member

    Joined:
    Nov 27, 2019
    Posts:
    9
    I have a question
    How to write unicode in IDE?
    Because when i write ể or ổ in IDE with vietnamese unicode, IDE replace to ? ?
    It working only copy pase text unicode
    In GMS 1, I use them normally
     
  12. rIKmAN

    rIKmAN Member

    Joined:
    Sep 6, 2016
    Posts:
    4,763
    Not sure, maybe do a forum / Google search to see if you can find anything and if not make another thread specifically for that issue, someone will probably be able to help you out,
     
    Lê Tuấn Anh likes this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice