1. Hey! Guest! The 36th GMC Jam will take place between February 27th, 12:00 UTC - March 2nd, 12:00 UTC. Why not join in! Click here to find out more!
    Dismiss Notice
  2. NOTICE: We will be applying a Xenforo update on Tuesday 25th of February. This means that from approximately 10:00 to 14:00 BST the forums will be offline (or possibly longer). Sorry for the inconvenience! Official Announcement here.

Android [SOLVED] Could not find play-services-tasks-license.aar

Discussion in 'GameMaker Studio 2 Community Tech Support' started by imineti, Nov 15, 2018.

Tags:
  1. imineti

    imineti Member

    Joined:
    Nov 15, 2018
    Posts:
    21
    Hello, every time I try to compile my app for android I keep getting a FAILED to build message in the compiler and it says the reason why is because >

    Could not find play-services-tasks-license.aar

    I have searched all over Google and over the forums and have only found 4 threads, none of which had any answers except 2 which did not work.

    I deleted my gradle folder in the User folder
    and I set my minimum SDK to 14 but neither of these fixed the problem

    I have just finished an app but I can't even compile it for it to be released
    has anybody else had this problem? does anybody have a solution?
    I'm sure this thread will be helpful to all those who have had the same problem and couldn't find the answer anywhere like me.

    Any help would be greatly appreciated!
    Thanks in advance!
     
  2. imineti

    imineti Member

    Joined:
    Nov 15, 2018
    Posts:
    21
    SOLVED (Had to post again because it won't let me edit for some reason, SORRY)

    open notepad file>open
    go to
    ProgramData>GameMakerStudio2>Cache>runtimes>runtime-2.1.5.246>android\runner>RootFiles
    set file type (next to input box) from .txt to all
    open build.gradle
    once opened
    under the bracket that says
    allprojects {
    find and cut
    maven {
    url "https://maven.google.com"
    }
    and paste before jcenter()

    this will fix the error

    afterwards I had another error this was fixed by editing the manifest (I think Google Service Extension altered it)

    go to
    ProgramData>GameMakerStudio2>Cache>runtimes>runtime-2.1.5.246>android>runner>ProjectFiles>src>main
    right click on AndroidManifest
    press edit
    once opened hold control and press F
    search for ${YYAndroidTVBanner}
    delete
    but keep the triangle bracket (>) on the end

    and you should be good to go!

    I hope this helped. God bless!
     
  3. Traversal

    Traversal Member

    Joined:
    May 1, 2017
    Posts:
    75
    Where is your solution? Thread is marked as solved?!
    Got the same error on my other machine and could not fix it.

    Doomed Google Play Services 3.0.5 …..
     
  4. imineti

    imineti Member

    Joined:
    Nov 15, 2018
    Posts:
    21
    It's the second comment mate, I've tested it and it compiled and the app worked.
     
  5. Traversal

    Traversal Member

    Joined:
    May 1, 2017
    Posts:
    75
    Thank you. Could not see comment two.

    It worked. Support should add this in the next (urgent) update!!

    It does for some reason only work with Runtime v2.1.5.246 for me!
     
  6. Guest User

    Guest User Guest

    I have this issue popping up, I asked gamemaker and they sent me to this form. I am currently using version GMS 4.1.9999. This is my error.

    FAILURE: Build failed with an exception.

    * What went wrong:
    A problem occurred configuring project ':com.example.project'.
    > Could not find play-services-tasks-license.aar (com.google.android.gms:play-services-tasks-license:11.8.0).
    Searched in the following locations:
    https://jcenter.bintray.com/com/goo...11.8.0/play-services-tasks-license-11.8.0.aar

    If you know how to fix this or have any clues on how, please replay.
     
  7. Jeff Short

    Jeff Short Member

    Joined:
    Nov 6, 2018
    Posts:
    8
    This fix worked for me with two exceptions...

    First because I was working in v1.4.1804 I had to do a bit of hunting to find the build.gradle file. For me it was in my Cache folder, under Cache>(name of project)>Android>Default.

    Second, I had to change the build.graddle file to read-only in the properties, otherwise Game Maker would just overwrite the file and the edits would be lost. After doing this I was able to compile for Android no problem.

    If anyone else is experiencing problems with the above solution, I hope this may help.
     
    imineti likes this.
  8. imineti

    imineti Member

    Joined:
    Nov 15, 2018
    Posts:
    21
    Check the second comment mate I posted full instructions there. A new poster said they had other issues using version 1.4 so reference the comment previous to this one if you are using that version.
     
    Last edited: Dec 13, 2018

Share This Page