Android Android compile error

Discussion in 'GameMaker Studio 2 Community Tech Support' started by Mick1001, Nov 29, 2018.

  1. Mick1001

    Mick1001 Member

    Joined:
    Sep 5, 2018
    Posts:
    7
    Hello

    I have a problem when I compile my game to android. It build the apk but it continue to run and I have to close gamemaker 2 and start again. When I tried to install it on my android phone it says can not install and it stop

    The following happens:

    BUILD SUCCESSFUL

    Total time: 4.341 secs

    C:\WINDOWS\system32\cmd.exe DONE (0)

    C:\WINDOWS\system32\subst.exe /d V:


    C:\WINDOWS\system32\subst.exe DONE (0)

    working dir: C:\Program Files\GameMaker Studio 2

    C:\Users\nghhi\AppData\Local\Android\Sdk\platform-tools\adb -s "" get-state

    error: device '' not found


    working dir: C:\Program Files\GameMaker Studio 2

    C:\Users\nnn\AppData\Local\Android\Sdk\platform-tools\adb -s "" get-state

    error: device '' not found

    Hope anybody can help
    Thank you

    Mick
     
  2. DyadGames

    DyadGames Member

    Joined:
    Jul 16, 2016
    Posts:
    30
    Are you selecting the correct Target with the device plugged in? What device is it? Also make sure the device is in Developer Mode with USB Allowed
     
  3. Mick1001

    Mick1001 Member

    Joined:
    Sep 5, 2018
    Posts:
    7
    I do not want to test it om the phone with cable. I want to make the APK file. I never test it before I make the apk file
     
  4. DyadGames

    DyadGames Member

    Joined:
    Jul 16, 2016
    Posts:
    30
    Right so the build is successful which means its making the APK. All the errors at the end are just saying I cant find your targeted advice, nothing wrong there.

    I also cant seem to install an APK onto my Galaxy S8, might be from security. I would host on Google Play and test it out there and see if you can download and play. Worked for me.

    Cheers,
    Alex
     
  5. Mick1001

    Mick1001 Member

    Joined:
    Sep 5, 2018
    Posts:
    7
    Thank you for your reply

    Now I have a new problem:

    AILURE: Build failed with an exception.

    * What went wrong:
    A problem occurred configuring root project ''.
    > Could not resolve all dependencies for configuration ':classpath'.
    > Could not find any version that matches com.android.tools.build:gradle:2.2.0+.
    Versions that do not match:
    2.3.0
    2.1.3
    2.1.2
    2.1.0
    2.0.0
    + 71 more
    Searched in the following locations:
    https://jcenter.bintray.com/com/android/tools/build/gradle/maven-metadata.xml
    https://jcenter.bintray.com/com/android/tools/build/gradle/
    https://repo1.maven.org/maven2/com/android/tools/build/gradle/maven-metadata.xml
    Required by:
    project :

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

    BUILD FAILED
     
  6. rIKmAN

    rIKmAN Member

    Joined:
    Sep 6, 2016
    Posts:
    3,405
    https://forum.yoyogames.com/index.php?threads/android-fix-missing-gradle-dependencies.56678/
     
    Mick1001 likes this.
  7. Mick1001

    Mick1001 Member

    Joined:
    Sep 5, 2018
    Posts:
    7

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