Android Unknown build error, please help.

Discussion in 'GameMaker Studio 2 Community Tech Support' started by Zeptars, Jun 9, 2019.

Tags:
  1. Zeptars

    Zeptars Member

    Joined:
    Aug 9, 2017
    Posts:
    2
    GM2 build error only on Android and only for this particular project it seems. I've only updated my game and haven't messed with anything else. This has only occured since I updated to GM2 2.2.2.413 but...

    ... I have tried:
    • Using GM2 latest beta version (No permission to export on this version? No, I'm not using a cracked GM2).
    • Using GM2 2.2.413
    • Using GM2 2.2.1.375
    Here's the error I get on GM2 2.2.1.375 and GM2 2.2.413... I'm not sure what this means, gamepad?
    __________________

    :com.myname.myapp:compileDebugJavaWithJavac
    :com.myname.myapp:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
    V:\com.myname.myapp\src\main\java\com\myname\myapp\Gamepad\MogaDevice.java:40: error: cannot find symbol
    Gamepad.msMogaDevice = this;
    ^
    symbol: variable msMogaDevice
    location: class Gamepad
    V:\com.myname.myapp\src\main\java\com\myname\myapp\Gamepad\MogaProDevice.java:43: error: cannot find symbol
    Gamepad.msMogaDevice = this;
    ^
    symbol: variable msMogaDevice
    location: class Gamepad
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    2 errors
    :com.myname.myapp:compileDebugJavaWithJavac FAILED

    FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':com.myname.myapp:compileDebugJavaWithJavac'.
    > Compilation failed; see the compiler error output for details.

    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.



    BUILD FAILED

    Total time: 2.964 secs
     
  2. Ziphold

    Ziphold Member

    Joined:
    Jun 22, 2016
    Posts:
    103
    Had the same problem. I cleaned the cache and connected my phone to the pc using a usb cable.
    That seemed to have fixed the issue.

    Edit: I am still having issues with the android export on the newest version though. Keystore issue this time. Always some problems with game maker I guess.
     
  3. pipebkOT

    pipebkOT Member

    Joined:
    Dec 13, 2018
    Posts:
    213
    @Zeptars thats a extension error, the moga gamepad extension to be exact. errors like this happen when you add/delete extensions and don't clean the cache.

    try using the lastest stable gms 2. and cleaning the cache of your project

    edit:


    you don't need to use the extension anymore, just check the "bluetooth gamepad" box in the project options
     
    Last edited: Jun 10, 2019

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