OFFICIAL Android: Fix Missing Gradle Dependencies

Discussion in 'Announcements' started by rmanthorp, Dec 10, 2018.

  1. rmanthorp

    rmanthorp YoYo Games Staff Admin YYG Staff

    Joined:
    Apr 15, 2016
    Posts:
    222
    Google has removed one of the build tools that GameMaker Studio uses to build your Android apps, and as such, builds may no longer function, giving an error something like:

    Code:
    > 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
    An upcoming update to GameMaker Studio 2 will resolve this issue, but until then you can fix things to get your apps building again by doing the following:

    https://help.yoyogames.com/hc/en-us/articles/360020501832
     
    Last edited by a moderator: Dec 10, 2018
    Overloaded, JeffJ, Pano and 1 other person like this.
  2. Tigas

    Tigas Member

    Joined:
    Jun 22, 2016
    Posts:
    20
    Solution for GMS 1.4.9999

    C:\Users\yourPC\AppData\Roaming\GameMaker-Studio\Android\runner\RootFiles
     
    Last edited: Dec 11, 2018
  3. FrostyCat

    FrostyCat Member

    Joined:
    Jun 26, 2016
    Posts:
    3,691
    The same fix works on 1.4.9999, except the build.gradle file is in %appdata%\GameMaker-Studio\Android\runner\RootFiles.
     
  4. Bacon&Onions

    Bacon&Onions Member

    Joined:
    Aug 2, 2017
    Posts:
    34
    Tried this fix, and still am getting this error-

    FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':com.company.game:mergeDebugResources'.
    > Error: java.lang.RuntimeException: Crunching Cruncher icon.png failed, see logs

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

    BUILD FAILED
     
  5. Genetix

    Genetix Member

    Joined:
    Jun 22, 2016
    Posts:
    611
    After performing the troubleshooting steps, GMS2 tells me that the cache can't be cleared as it may be locked. I have made sure that the rootfiles folder and files are not open and have rebooted my computer (windows 10), but still seems to think these files are being edited. Anyone have any ideas to fix that?
     
  6. Smiechu

    Smiechu Member

    Joined:
    Jul 14, 2017
    Posts:
    622
    Have you started GM with administrator privileges?
     
  7. Genetix

    Genetix Member

    Joined:
    Jun 22, 2016
    Posts:
    611
    Have not, I'll give that a try and see if it works. Thanks for the advice
     
  8. xSamx

    xSamx Member

    Joined:
    Dec 11, 2018
    Posts:
    1
    How to fix this?, i just found video, its not that hard :)
     
  9. Bacon&Onions

    Bacon&Onions Member

    Joined:
    Aug 2, 2017
    Posts:
    34
    I tried reverting back the build.gradle file and now I get a different error message:
    Execution failed for task ':com.company.game:mergeDebugResources'.
    > Error: java.lang.RuntimeException: Some file crunching failed, see logs for details
     
  10. Amon

    Amon Member

    Joined:
    Sep 13, 2016
    Posts:
    174
    The fix does not work. It's not like it's rocket science to follow. It just doesn't work. I really need this working. What are my options?
     
    Bacon&Onions likes this.
  11. Aaron Tytgat

    Aaron Tytgat Member

    Joined:
    Dec 7, 2018
    Posts:
    5
    Fix won't work here.
    Even with an emty Project. :(
     
  12. Bacon&Onions

    Bacon&Onions Member

    Joined:
    Aug 2, 2017
    Posts:
    34
    Yesterday was a new runtime was released, I just tested it out and-
    I still can't compile to android.

    FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':com.company.game:mergeDebugResources'.
    > Error: java.lang.RuntimeException: Some file crunching failed, see logs 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: 21.05 secs
    AAPT err(Facade for 1208901598): libpng error: Not a PNG file
     
  13. Bacon&Onions

    Bacon&Onions Member

    Joined:
    Aug 2, 2017
    Posts:
    34
    Update- I got it working!
    First off I updated android studio and my build settings.
    I don't think that fixed my problems, but updating from 23 to 28 did significantly increase the speed of building apks.
    Then I re-generated the images in Options>Android>adaptive icons and that fixed it!
     
  14. Tigas

    Tigas Member

    Joined:
    Jun 22, 2016
    Posts:
    20
    I can compile for android but I can not display any type of ADS, admob, adbuddiz .. nothing works ...
    GMS 1.4.9999
    somebody help me.
     

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