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 [Solved]Compiling APK

Discussion in 'Game Design, Development And Publishing' started by magnum00125, Jul 25, 2019.

Tags:
  1. magnum00125

    magnum00125 Member

    Joined:
    Feb 20, 2018
    Posts:
    86
    I followed the guide https://help.yoyogames.com/hc/en-us/articles/115001368727-Setting-Up-For-Android

    When I compile an to an .apk I get this in IDE/debug:

    Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details
    File C:\Users\magnu\.android\repositories.cfg could not be loaded.

    FAILURE: Build failed with an exception.

    * What went wrong:
    A problem occurred configuring project ':com.company.game'.
    > Could not resolve all dependencies for configuration ':com.company.game:_debugApkCopy'.
    > Could not find com.android.support:support-v4:29.0.0.
    Required by:
    project :com.company.game

    * 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: 39.16 secs


    C:\WINDOWS\system32\cmd.exe exited with non-zero status (1)
     
  2. curato

    curato Member

    Joined:
    Jun 30, 2016
    Posts:
    424
    install and use version 28 like the source you linked indicates and if will work fine.
     
    magnum00125 likes this.
  3. magnum00125

    magnum00125 Member

    Joined:
    Feb 20, 2018
    Posts:
    86
    Thanks. But I already tried that:
    [​IMG]
     
  4. FrostyCat

    FrostyCat Member

    Joined:
    Jun 26, 2016
    Posts:
    4,708
    Your error message clearly indicates that you have not installed Android Support Repository as instructed. Install that.
     
  5. magnum00125

    magnum00125 Member

    Joined:
    Feb 20, 2018
    Posts:
    86
    FAILURE: Build failed with an exception.

    * Where:
    Build file 'S:\com.company.game\build.gradle' line: 4

    * What went wrong:
    Could not compile build file 'S:\com.company.game\build.gradle'.
    > startup failed:
    build file 'S:\com.company.game\build.gradle': 4: unexpected token: 3 @ line 4, column 28.
    compileSdkVersion 28.0.3
    ^

    1 error
     
  6. magnum00125

    magnum00125 Member

    Joined:
    Feb 20, 2018
    Posts:
    86
    I think I might have chosen a wrong keystore but i have both of them
    Edit: I guessed the password etc. of my old, original keystone. gotcha madafaka

    Edit2:

    What went wrong:
    Execution failed for task ':com.company.game: packageArmeabi-v7aRelease'.
    > com.android.ide.common.signing.KeytoolException: Failed to read key default_alias from store "C:\Users\magnu\Documents\GameMakerStudio2\2d_platformerSmGl\2d_platformer.keystore": Cannot recover key
    [/debug]

    Edit3:
    I deleted my old keystore, used my current one. Can now compile an .apk.
    But the apk can't be run on my phone
    adb: failed to install C:\Users\magnu\Downloads\2d_platformerSmGl.apk: Failure [INSTALL_FAILED_OLDER_SDK: Failed parse during installPackageLI: /data/app/vmdl1985417897.tmp/base.apk (at Binary XML file line #9): Requires newer sdk version #28 (current version is #24)]
    Performing Streamed Install
     
    Last edited: Aug 4, 2019
  7. magnum00125

    magnum00125 Member

    Joined:
    Feb 20, 2018
    Posts:
    86
    Solved: was using jre instead of jdk (java dev kit)
     

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