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 Android can't compile or test (execution failed)

Discussion in 'GameMaker Studio 2 Community Tech Support' started by WWAZman, Jul 29, 2019.

  1. WWAZman

    WWAZman Member

    Joined:
    Jun 21, 2016
    Posts:
    103
    I am trying to convert my simple Fan game up to GMS 2 so I can upload it to Google Play in time for the Aug 1 deadline.. upon trying to test it I get the following (truncated) errors (6 of them) and I have no idea what it means or what to do. Also of note, it happens no matter if I am in VM mode or YYC... :

    :com.BlinkinStudios.My_Fan:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
    W:\com.BlinkinStudios.My_Fan\src\main\java\com\BlinkinStudios\My_Fan\GooglePlayServicesExtension.java:509: error: method CloudResultData in class RunnerJNILib cannot be applied to given types;
    RunnerJNILib.CloudResultData( mySaveGameByteArray, 0/*STATUS_NEW_GAME_DATA*/, LastGSId );
    ^
    required: byte[],byte[],int,int
    found: byte[],int,int
    reason: actual and formal argument lists differ in length
    W:\com.BlinkinStudios.My_Fan\src\main\java\com\BlinkinStudios\My_Fan\GooglePlayServicesExtension.java:514: error: method CloudResultData in class RunnerJNILib cannot be applied to given types;
    RunnerJNILib.CloudResultData( null, 0/*STATUS_NEW_GAME_DATA*/, LastGSId );
    ^
    required: byte[],byte[],int,int
    found: <null>,int,int
    reason: actual and formal argument lists differ in length
    W:\com.BlinkinStudios.My_Fan\src\main\java\com\BlinkinStudios\My_Fan\GooglePlayServicesExtension.java:533: error: method CloudResultData in class RunnerJNILib cannot be applied to given types;
    RunnerJNILib.CloudResultData( mySaveGameByteArray, 0/*STATUS_NEW_GAME_DATA*/, LastGSId );
    ^
    required: byte[],byte[],int,int
    found: byte[],int,int
    reason: actual and formal argument lists differ in length
    W:\com.BlinkinStudios.My_Fan\src\main\java\com\BlinkinStudios\My_Fan\GooglePlayServicesExtension.java:537: error: method CloudResultData in class RunnerJNILib cannot be applied to given types;
    RunnerJNILib.CloudResultData( null, 0/*STATUS_NEW_GAME_DATA*/, LastGSId );
    ^
    required: byte[],byte[],int,int
    found: <null>,int,int
    reason: actual and formal argument lists differ in length
    W:\com.BlinkinStudios.My_Fan\src\main\java\com\BlinkinStudios\My_Fan\GooglePlayServicesExtension.java:645: error: method CloudResultData in class RunnerJNILib cannot be applied to given types;
    RunnerJNILib.CloudResultData( s.getBytes(), 0/*STATUS_NEW_GAME_DATA*/, fid );
    ^
    required: byte[],byte[],int,int
    found: byte[],int,Integer
    reason: actual and formal argument lists differ in length
    W:\com.BlinkinStudios.My_Fan\src\main\java\com\BlinkinStudios\My_Fan\GooglePlayServicesExtension.java:657: error: method CloudResultData in class RunnerJNILib cannot be applied to given types;
    RunnerJNILib.CloudResultData( null, 0/*STATUS_NEW_GAME_DATA*/, fid );
    ^
    required: byte[],byte[],int,int
    found: <null>,int,Integer
    reason: actual and formal argument lists differ in length
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    Note: W:\com.BlinkinStudios.My_Fan\src\main\java\com\BlinkinStudios\My_Fan\RunnerBilling.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    6 errors
    :com.BlinkinStudios.My_Fan:compileDebugJavaWithJavac FAILED

    FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':com.BlinkinStudios.My_Fan:compileDebugJavaWithJavac'.
    > Compilation failed; see the compiler error output 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: 7.401 secs


    C:\WINDOWS\system32\cmd.exe DONE (1)
    C:\WINDOWS\system32\subst.exe /d W:


    C:\WINDOWS\system32\subst.exe DONE (0)
    Error : Build Failed
    Igor complete.
     
    Last edited: Jul 29, 2019
  2. Nocturne

    Nocturne Friendly Tyrant Forum Staff Admin

    Joined:
    Apr 13, 2016
    Posts:
    7,044
    First question is, what are your SDK settings? You should be targeting API 28... and if you have any extensions (which ones if you do?), then the min SDK probably needs to be at least 16.
     
  3. WWAZman

    WWAZman Member

    Joined:
    Jun 21, 2016
    Posts:
    103
    I have it set to default from last time - 3 years ago.. I'm just updating the sdk now (which is mostly current actually, only missing update 6 to sdk 28) .. will check api settings, but those have mostly been a mystery to me.

    ok, nope.. here is the error I get after setting api's to requested settings:

    :com.BlinkinStudios.My_Fan:compileDebugRenderscript
    :com.BlinkinStudios.My_Fan:generateDebugBuildConfig
    :com.BlinkinStudios.My_Fan:generateDebugResValues
    :com.BlinkinStudios.My_Fan:generateDebugResources
    :com.BlinkinStudios.My_Fan:mergeDebugResources
    :com.BlinkinStudios.My_Fan:processDebugManifest
    U:\com.BlinkinStudios.My_Fan\src\main\AndroidManifest.xml:62:1-176 Warning:
    Element activity#com.google.android.gms.ads.AdActivity at AndroidManifest.xml:62:1-176 duplicated with element declared at AndroidManifest.xml:50:2-177
    U:\com.BlinkinStudios.My_Fan\src\main\AndroidManifest.xml:32:3-99:17 Warning:
    application@android:label was tagged at AndroidManifest.xml:32 to replace other declarations but no other declaration present
    U:\com.BlinkinStudios.My_Fan\src\main\AndroidManifest.xml:33:5-42:16 Warning:
    activity#com.BlinkinStudios.My_Fan.RunnerActivity@android:label was tagged at AndroidManifest.xml:33 to replace other declarations but no other declaration present
    :com.BlinkinStudios.My_Fan:processDebugResources
    :com.BlinkinStudios.My_Fan:generateDebugSources
    :com.BlinkinStudios.My_Fan:incrementalDebugJavaCompilationSafeguard
    :com.BlinkinStudios.My_Fan:compileDebugJavaWithJavac
    :com.BlinkinStudios.My_Fan:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
    U:\com.BlinkinStudios.My_Fan\src\main\java\com\BlinkinStudios\My_Fan\GooglePlayServicesExtension.java:509: error: method CloudResultData in class RunnerJNILib cannot be applied to given types;
    RunnerJNILib.CloudResultData( mySaveGameByteArray, 0/*STATUS_NEW_GAME_DATA*/, LastGSId );
    ^
    required: byte[],byte[],int,int
    found: byte[],int,int
    reason: actual and formal argument lists differ in length
    U:\com.BlinkinStudios.My_Fan\src\main\java\com\BlinkinStudios\My_Fan\GooglePlayServicesExtension.java:514: error: method CloudResultData in class RunnerJNILib cannot be applied to given types;
    RunnerJNILib.CloudResultData( null, 0/*STATUS_NEW_GAME_DATA*/, LastGSId );
    ^
    required: byte[],byte[],int,int
    found: <null>,int,int
    reason: actual and formal argument lists differ in length
    U:\com.BlinkinStudios.My_Fan\src\main\java\com\BlinkinStudios\My_Fan\GooglePlayServicesExtension.java:533: error: method CloudResultData in class RunnerJNILib cannot be applied to given types;
    RunnerJNILib.CloudResultData( mySaveGameByteArray, 0/*STATUS_NEW_GAME_DATA*/, LastGSId );
    ^
    required: byte[],byte[],int,int
    found: byte[],int,int
    reason: actual and formal argument lists differ in length
    U:\com.BlinkinStudios.My_Fan\src\main\java\com\BlinkinStudios\My_Fan\GooglePlayServicesExtension.java:537: error: method CloudResultData in class RunnerJNILib cannot be applied to given types;
    RunnerJNILib.CloudResultData( null, 0/*STATUS_NEW_GAME_DATA*/, LastGSId );
    ^
    required: byte[],byte[],int,int
    found: <null>,int,int
    reason: actual and formal argument lists differ in length
    U:\com.BlinkinStudios.My_Fan\src\main\java\com\BlinkinStudios\My_Fan\GooglePlayServicesExtension.java:645: error: method CloudResultData in class RunnerJNILib cannot be applied to given types;
    RunnerJNILib.CloudResultData( s.getBytes(), 0/*STATUS_NEW_GAME_DATA*/, fid );
    ^
    required: byte[],byte[],int,int
    found: byte[],int,Integer
    reason: actual and formal argument lists differ in length
    U:\com.BlinkinStudios.My_Fan\src\main\java\com\BlinkinStudios\My_Fan\GooglePlayServicesExtension.java:657: error: method CloudResultData in class RunnerJNILib cannot be applied to given types;
    RunnerJNILib.CloudResultData( null, 0/*STATUS_NEW_GAME_DATA*/, fid );
    ^
    required: byte[],byte[],int,int
    found: <null>,int,Integer
    reason: actual and formal argument lists differ in length
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    Note: U:\com.BlinkinStudios.My_Fan\src\main\java\com\BlinkinStudios\My_Fan\RunnerBilling.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    6 errors
    :com.BlinkinStudios.My_Fan:compileDebugJavaWithJavac FAILED

    FAILURE: Build failed with an exception.

    * What went wrong:

    BUILD FAILED

    Total time: 1 mins 22.655 secs
    Execution failed for task ':com.BlinkinStudios.My_Fan:compileDebugJavaWithJavac'.
    > Compilation failed; see the compiler error output for details.

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


    C:\WINDOWS\system32\cmd.exe DONE (1)
    C:\WINDOWS\system32\subst.exe /d U:


    C:\WINDOWS\system32\subst.exe DONE (0)
    Error : Build Failed
    Igor complete.
     
    Last edited: Jul 29, 2019
  4. WWAZman

    WWAZman Member

    Joined:
    Jun 21, 2016
    Posts:
    103
    oh yeah I have the expatchdevicevibrate and the older googleplayservicesextension from 1.4
     
  5. Nocturne

    Nocturne Friendly Tyrant Forum Staff Admin

    Joined:
    Apr 13, 2016
    Posts:
    7,044
    Okay, you'll want to remove those extensions and use the GMS2 updated ones. Not sure what the "expatchdevicevibrate" extension is, but if it's for device rumble, then you'll probably need to find an updated one on the MP as (due to licenceing issues) GMS2 doesn't have any.
     
  6. WWAZman

    WWAZman Member

    Joined:
    Jun 21, 2016
    Posts:
    103
    ok, removed the extinct extension for googleplay, replaced it with the one in Game Options, left the "expatch" because it is the haptic feedback extension.. and is supposed to be working? .. will try it in a moment without it, but am getting these errors:

    Code:
    :com.BlinkinStudios.My_Fan:compileDebugRenderscript UP-TO-DATE
    :com.BlinkinStudios.My_Fan:generateDebugBuildConfig UP-TO-DATE
    :com.BlinkinStudios.My_Fan:generateDebugResValues UP-TO-DATE
    :com.BlinkinStudios.My_Fan:generateDebugResources UP-TO-DATE
    :com.BlinkinStudios.My_Fan:mergeDebugResources
    :com.BlinkinStudios.My_Fan:processDebugManifest
    U:\com.BlinkinStudios.My_Fan\src\main\AndroidManifest.xml:32:3-91:17 Warning:
        application@android:label was tagged at AndroidManifest.xml:32 to replace other declarations but no other declaration present
    U:\com.BlinkinStudios.My_Fan\src\main\AndroidManifest.xml:33:5-42:16 Warning:
        activity#com.BlinkinStudios.My_Fan.RunnerActivity@android:label was tagged at AndroidManifest.xml:33 to replace other declarations but no other declaration present
    :com.BlinkinStudios.My_Fan:processDebugResources
    :com.BlinkinStudios.My_Fan:generateDebugSources
    :com.BlinkinStudios.My_Fan:incrementalDebugJavaCompilationSafeguard
    :com.BlinkinStudios.My_Fan:compileDebugJavaWithJavac
    :com.BlinkinStudios.My_Fan:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
    U:\com.BlinkinStudios.My_Fan\src\main\java\com\BlinkinStudios\My_Fan\GcmIntentService.java:4: error: package com.google.android.gms.gcm does not exist
    import com.google.android.gms.gcm.GoogleCloudMessaging;
                                     ^
    U:\com.BlinkinStudios.My_Fan\src\main\java\com\BlinkinStudios\My_Fan\GcmPush.java:15: error: package com.google.android.gms.gcm does not exist
    import com.google.android.gms.gcm.GoogleCloudMessaging;
                                     ^
    U:\com.BlinkinStudios.My_Fan\src\main\java\com\BlinkinStudios\My_Fan\GcmPush.java:62: error: cannot find symbol
        private GoogleCloudMessaging mGcm;
                ^
      symbol:   class GoogleCloudMessaging
      location: class GcmPush
    U:\com.BlinkinStudios.My_Fan\src\main\java\com\BlinkinStudios\My_Fan\GcmIntentService.java:57: error: cannot find symbol
            GoogleCloudMessaging gcm = GoogleCloudMessaging.getInstance(this);
            ^
      symbol:   class GoogleCloudMessaging
      location: class GcmIntentService
    U:\com.BlinkinStudios.My_Fan\src\main\java\com\BlinkinStudios\My_Fan\GcmIntentService.java:57: error: cannot find symbol
            GoogleCloudMessaging gcm = GoogleCloudMessaging.getInstance(this);
                                       ^
      symbol:   variable GoogleCloudMessaging
      location: class GcmIntentService
    U:\com.BlinkinStudios.My_Fan\src\main\java\com\BlinkinStudios\My_Fan\GcmIntentService.java:73: error: package GoogleCloudMessaging does not exist
                if (GoogleCloudMessaging.MESSAGE_TYPE_SEND_ERROR.equals(messageType)) {
                                        ^
    U:\com.BlinkinStudios.My_Fan\src\main\java\com\BlinkinStudios\My_Fan\GcmIntentService.java:76: error: package GoogleCloudMessaging does not exist
                } else if (GoogleCloudMessaging.MESSAGE_TYPE_DELETED.equals(messageType)) {
                                               ^
    U:\com.BlinkinStudios.My_Fan\src\main\java\com\BlinkinStudios\My_Fan\GcmIntentService.java:80: error: package GoogleCloudMessaging does not exist
                } else if (GoogleCloudMessaging.MESSAGE_TYPE_MESSAGE.equals(messageType)) {
                                               ^
    U:\com.BlinkinStudios.My_Fan\src\main\java\com\BlinkinStudios\My_Fan\GcmIntentService.java:141: error: cannot find symbol
                            GooglePlayServicesExtension.QueuePushNotification(json, GcmPush.PUSH_EVENT_REMOTE, true );
                                                       ^
      symbol:   method QueuePushNotification(String,int,boolean)
      location: class GooglePlayServicesExtension
    U:\com.BlinkinStudios.My_Fan\src\main\java\com\BlinkinStudios\My_Fan\GcmPush.java:82: error: cannot find symbol
                    mGcm = GoogleCloudMessaging.getInstance(mContext);
                           ^
      symbol:   variable GoogleCloudMessaging
      location: class GcmPush
    U:\com.BlinkinStudios.My_Fan\src\main\java\com\BlinkinStudios\My_Fan\PushLocalAlarmReceiver.java:40: error: cannot find symbol
                        GooglePlayServicesExtension.QueuePushNotification(msgData, GcmPush.PUSH_EVENT_LOCAL, true );
                                                   ^
      symbol:   method QueuePushNotification(String,int,boolean)
      location: class GooglePlayServicesExtension
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    11 errors
    :com.BlinkinStudios.My_Fan:compileDebugJavaWithJavac FAILED
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Execution failed for task ':com.BlinkinStudios.My_Fan:compileDebugJavaWithJavac'.
    > Compilation failed; see the compiler error output 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: 31.37 secs
    
    
    C:\WINDOWS\system32\cmd.exe DONE (1)
    C:\WINDOWS\system32\subst.exe /d U:
    
    
    C:\WINDOWS\system32\subst.exe DONE (0)
    Error : Build Failed
    Igor complete.
     
  7. Nocturne

    Nocturne Friendly Tyrant Forum Staff Admin

    Joined:
    Apr 13, 2016
    Posts:
    7,044
  8. WWAZman

    WWAZman Member

    Joined:
    Jun 21, 2016
    Posts:
    103
    .... I never used push notifications or cloud anything? Why is this broken? (the game file) .. I found another blank gms2 version without hardly anything in it.. it compiles and runs.. but I'm not wishing to have to remake *EVERY* game I have (Especially not my biggest.. I'd rather pun a knife to my throat) .. is this purely an extension problem or something deeper?
    Thanks in advance.

    oh ps, in the blank one the game compiles with the default (new) Google Play services extension and the haptic extension.
     
  9. Nocturne

    Nocturne Friendly Tyrant Forum Staff Admin

    Joined:
    Apr 13, 2016
    Posts:
    7,044
    Hmmm... In your 1.4 project, make sure you haven't got push notifications enabled (even if you're not using them) before exporting it as a GMZ for importing into GMS2. Interesting that the haptic extension exports fine....
     
  10. pipebkOT

    pipebkOT Member

    Joined:
    Dec 13, 2018
    Posts:
    212
    @WWAZman

    just clean the cache of the project .

    removing/adding extension without cleaning the cache afterwards gives errors like this.
     
  11. WWAZman

    WWAZman Member

    Joined:
    Jun 21, 2016
    Posts:
    103
    That's the first thing I did. didn't change anything.
     
  12. pipebkOT

    pipebkOT Member

    Joined:
    Dec 13, 2018
    Posts:
    212
    after updating the extension? cuz i'm pretty sure that these "java:82: error: cannot find symbol" are from not cleaning the cache after updating extensions




    that's why new projects compiles fine, cuz they don't have cache stored.
     
  13. WWAZman

    WWAZman Member

    Joined:
    Jun 21, 2016
    Posts:
    103
    multiple times yes
     
  14. WWAZman

    WWAZman Member

    Joined:
    Jun 21, 2016
    Posts:
    103
    correction... one app is now working sans Google play extension, and with the haptic extension
     
  15. pipebkOT

    pipebkOT Member

    Joined:
    Dec 13, 2018
    Posts:
    212
    ah , also, to use the lastest google play extension 3.1.4 you need to have the lastest gms2 and runner.




    edit: only if you use other extensions like licensing extension or apk expansion extension.
     
    Last edited: Jul 30, 2019
  16. WWAZman

    WWAZman Member

    Joined:
    Jun 21, 2016
    Posts:
    103
    ..ok I dunno what happened, maybe I missed a clean button press somewhere, but I did it again only having the one extension in, and then it ran.. so then I put google play back in and it ran.. now I've uncommented the ads to restore them to what they were .. and run into a "unable to get a valid license.." ..but google licensing is OFF... ?!
     
  17. pipebkOT

    pipebkOT Member

    Joined:
    Dec 13, 2018
    Posts:
    212
    where do you get that message? in the output window? in google play?
     
  18. WWAZman

    WWAZman Member

    Joined:
    Jun 21, 2016
    Posts:
    103
    new thread, new error :p
     
  19. TibiSoft

    TibiSoft Member

    Joined:
    Dec 20, 2017
    Posts:
    9
    Hello Guys,
    The above hints have just solved the issue at my side.... Thank you so much!!
    (Just for reference: I also exported a project from GM:S1.4 -> GM:S2.x, had plenty of compile issues like above. Finally added Google Push Notifications (even I did not use it) and cleaned the cache).
     

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