1. Hey! Guest! The 34th GMC Jam will take place between August 22nd, 12:00 UTC (Thursday noon) and August 26th, 12:00 UTC (Monday noon). Why not join in! Click here to find out more!
    Dismiss Notice

Discussion Build Error with Google Play Services Extension v.3.1.3 thru v3.1.6

Discussion in 'GameMaker Studio 2 Community Tech Support' started by Elevory, Jul 14, 2019.

  1. Elevory

    Elevory Member

    Joined:
    Aug 27, 2016
    Posts:
    56
    Anyone else having problems with the latest version of the Google Play Services extension?

    I'm getting the following error in the console:

    I've tried API Level 28 and 29 with all of the necessary dependencies installed via Android Studio. GameMaker IDE v2.2.3.436, runtime v2.2.3.344.

    For the time being, I have downgraded to a previous version of the extension. Game builds fine.
     
    Last edited: Jul 14, 2019
  2. Tony M

    Tony M Member

    Joined:
    Apr 24, 2019
    Posts:
    12
    I am also having issues with the latest extension. All is working ok for me when I export to Android but having all sorts of issues exporting to iOS. Rewards Ads, Google Consent SDK and Setting a test device (GoogleMobileAds_ConsentDebugAddDevice) do not work with iOS. I can only get interstitial ads working.

    I keep getting this error:

    Code:
    2019-07-16 16:35:08.029957+1000 Test_iOS_Ads[4401:1504245] <Google> Cannot find an ad network adapter with the name(s): com.google.ads.mediation.admob.AdMobAdapter. Remember to link all required ad network adapters and SDKs, and set -ObjC in the 'Other Linker Flags' setting of your build target.
    2019-07-16 16:35:08.030454+1000 Test_iOS_Ads[4401:1504142] Reward based video ad failed to load.
    2019-07-16 16:35:08.032621+1000 Test_iOS_Ads[4401:1504142] Error Code: undefined
    2019-07-16 16:35:08.074631+1000 Test_iOS_Ads[4401:1504275] <Google:HTML> You are currently using version 7.27.0 of the SDK. Please consider updating your SDK to the most recent SDK version to get the latest features and bug fixes. The latest SDK can be downloaded from https://goo.gl/UoiJ8F. A full list of release notes is available at https://developers.google.com/admob/ios/rel-notes. 
    How do you downgrade the extension? I would like to try that to see if it resolves my issue as I am desperate to release my first game and unfortunately these issues with the extension and iOS are holding it up. Any assistance appreciated.
     
  3. pipebkOT

    pipebkOT Member

    Joined:
    Dec 13, 2018
    Posts:
    208
    @Tony M are you using the lastest extension? the one with compile 'com.google.android.gms: play-services-ads:17.2.1' in the android gradle inyection?

    and you say it works in android but not on ios? if so then please fill a bug report attaching this thread link, and your project so yoyo can reproduce the bug, and fix it :)



    @Elevory api level 29 is on beta, so is not supported
     
    Last edited: Jul 18, 2019
    Tony M likes this.
  4. Elevory

    Elevory Member

    Joined:
    Aug 27, 2016
    Posts:
    56
    I don't see a way to downgrade from the marketplace, but luckily I've kept backups of my old code. Here are the Google-related extensions I downgraded to: https://mega.nz/#!HBACmShA!JidMNoZv7FavXMAaDHGcyBxMoeb7qO9felemMHV5OeY EDIT: I assume the extension source files don't contain any unique identifiers for the game I'm building, but you'll want to double-check your project settings etc after importing this stuff.

    One of my beta testers has been reporting a crash in Android that I suspect is related to cloud_synchronise() , so these old extensions may not be bug-free, but at least I can get my app to compile now!

    Hope that helps you.
     
  5. pipebkOT

    pipebkOT Member

    Joined:
    Dec 13, 2018
    Posts:
    208
    @Elevory 3.1.2 fixed the cloud bug, i don't know if it was the one you mention.

    ------------

    the bug is caused when you use the 3.1.3 extension with the apk expansion extension or licensing extension,
    if you dont use these two extensions it will compile fine.

    if you look at Build file 'S:\com.company.game\build.gradle' line: 63 you will know what went wrong

    this is the line, but i don't know what it means, nor the solution

     
    Last edited: Jul 18, 2019
    Guest likes this.
  6. Dan

    Dan YoYo Games Staff YYG Staff

    Joined:
    Apr 15, 2016
    Posts:
    283
    The issue is this bit - "\u000a\u000d" in that error. This extension has exposed a couple of issues in the IDE this time: https://bugs.yoyogames.com/view.php?id=31159 and https://bugs.yoyogames.com/view.php?id=29018 (which is your issue).

    We're testing these fixes at the moment and will get a new beta release out asap (early next week) to resolve a few issues with this extension.

    We replied to your ticket earlier today. You have mistakenly pasted our Android test IDs into your iOS code block as well as your Android one. Google must not care about serving test interstitials when the ID is wrong, but they obviously do care about reward ads. Your project works fine if you simply paste in the correct iOS test IDs.
     
    Tony M and rIKmAN like this.
  7. Elevory

    Elevory Member

    Joined:
    Aug 27, 2016
    Posts:
    56
    Thank you, Dan - good luck with the fixes!
     
  8. Andrea Sansone

    Andrea Sansone Member

    Joined:
    Dec 24, 2018
    Posts:
    13
    Can anyone help me please? A few days ago GMS 2 runtime was updated to version -344, but testing my game on android I noticed that the YYC compiler initialized objects instead of others (With the VM compiler the game was played without problems). I downgraded the runtime and solved the problem. Today from nothing I get the usual error that comes from the Google PlayServices extension

    Code:
    build file '/Users/MyName/.config/GameMakerStudio2/Cache/GMS2CACHE/4Elements_B0DC71DE/Android/default/com.Sansonight.Elements/build.gradle': 50: unexpected char: '@ line 50, column 61.
         ms: play-services-games: 16.0.0 '\ r \ ncompil
                                       ^
    
    In the past I solved this error by re-importing the extension or updating it. The extension has been updated, android studio has been updated, android SDK has been updated but I still have this message. Searching on the internet I found myself in this discussion and discovered that, despite the marketplace marking as version 3.1.3, during the import the version changes to 3.1.0. I took one from an old project and discovered that the version is 3.1.2 but still does not work. Without extension the game is compiled without any problem. Does anyone know how I can fix it?
     
  9. Andrea Sansone

    Andrea Sansone Member

    Joined:
    Dec 24, 2018
    Posts:
    13
    That apache error happen to me too. It's cause by Licensing Extension. Try to delete and retry, it should works.
     
  10. Andrea Sansone

    Andrea Sansone Member

    Joined:
    Dec 24, 2018
    Posts:
    13
    Look for this link, the comments about the error. It fix the problem. I download the BETA Channel update for runtime -345 and it compile perfectly. Thank you Dan !
     
  11. Elevory

    Elevory Member

    Joined:
    Aug 27, 2016
    Posts:
    56
    Hmm, I'm still encountering the "alllib not found" error when trying to compile to Android. I have updated the IDE to v2.2.3.437, runtime to v2.2.3.345 and Google Play Services extension to v3.1.4:

    DoSplash
    DoIcon
    C:\WINDOWS\system32\cmd.exe /c "subst T: "Z:/game_F08F95E9\Android\default" && T: && cd "com.company.game" && "W:/Android\runner\gradle\gradlew" build assembleRelease -x lint "
    FAILURE: Build failed with an exception.
    * Where:
    Build file 'T:\com.company.game\build.gradle' line: 63
    * What went wrong:
    A problem occurred evaluating project ':com.company.game'.
    > Project with path ':allib' could not be found in 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

    Is anyone else still having this issue?

    Build settings as follows:

    [​IMG]

    SDK v28.0.3 installed via Android Studio:

    [​IMG]
     
  12. Elevory

    Elevory Member

    Joined:
    Aug 27, 2016
    Posts:
    56
    I'm still receiving this error with the latest v3.1.6 Google Play Services extension. Any suggestions would be welcome.
     
  13. pipebkOT

    pipebkOT Member

    Joined:
    Dec 13, 2018
    Posts:
    208
    @Elevory
    Is your gms 2 actually using the lastest beta runtime? Sometimes when you download a new runtime it will not switch to that by default and you would need to Select the runtime manually to be used.
     

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