dynamic_zero
Member
Hiya guys,
I have been trying to build my game for android but having some issues since the latest release. I have tried several SDK versions, 24, 28 and 29 but I get the same issues. I have also updated my java JDK 8 as per this guide - https://help.yoyogames.com/hc/en-us/articles/227860547-GMS2-Required-SDKs
Not sure if anyone has experience a similar issue and might know a solution?
Here is my build error -
Many thanks!
I have been trying to build my game for android but having some issues since the latest release. I have tried several SDK versions, 24, 28 and 29 but I get the same issues. I have also updated my java JDK 8 as per this guide - https://help.yoyogames.com/hc/en-us/articles/227860547-GMS2-Required-SDKs
Not sure if anyone has experience a similar issue and might know a solution?
Here is my build error -
Code:
import com.google.android.gms.gcm.GoogleCloudMessaging;
^
W:\com.dynamiczero.survivingtitan\src\main\java\com\dynamiczero\survivingtitan\GcmPush.java:15: error: package com.google.android.gms.gcm does not exist
import com.google.android.gms.gcm.GoogleCloudMessaging;
^
W:\com.dynamiczero.survivingtitan\src\main\java\com\dynamiczero\survivingtitan\GcmPush.java:62: error: cannot find symbol
private GoogleCloudMessaging mGcm;
^
symbol: class GoogleCloudMessaging
location: class GcmPush
W:\com.dynamiczero.survivingtitan\src\main\java\com\dynamiczero\survivingtitan\GcmIntentService.java:57: error: cannot find symbol
GoogleCloudMessaging gcm = GoogleCloudMessaging.getInstance(this);
^
symbol: class GoogleCloudMessaging
location: class GcmIntentService
W:\com.dynamiczero.survivingtitan\src\main\java\com\dynamiczero\survivingtitan\GcmIntentService.java:57: error: cannot find symbol
GoogleCloudMessaging gcm = GoogleCloudMessaging.getInstance(this);
^
symbol: variable GoogleCloudMessaging
location: class GcmIntentService
W:\com.dynamiczero.survivingtitan\src\main\java\com\dynamiczero\survivingtitan\GcmIntentService.java:73: error: package GoogleCloudMessaging does not exist
if (GoogleCloudMessaging.MESSAGE_TYPE_SEND_ERROR.equals(messageType)) {
^
W:\com.dynamiczero.survivingtitan\src\main\java\com\dynamiczero\survivingtitan\GcmIntentService.java:76: error: package GoogleCloudMessaging does not exist
} else if (GoogleCloudMessaging.MESSAGE_TYPE_DELETED.equals(messageType)) {
^
W:\com.dynamiczero.survivingtitan\src\main\java\com\dynamiczero\survivingtitan\GcmIntentService.java:80: error: package GoogleCloudMessaging does not exist
} else if (GoogleCloudMessaging.MESSAGE_TYPE_MESSAGE.equals(messageType)) {
^
W:\com.dynamiczero.survivingtitan\src\main\java\com\dynamiczero\survivingtitan\GcmIntentService.java:141: error: cannot find symbol
GooglePlayServicesExtension.QueuePushNotification(json, GcmPush.PUSH_EVENT_REMOTE, true );
^
symbol: method QueuePushNotification(String,int,boolean)
location: class GooglePlayServicesExtension
W:\com.dynamiczero.survivingtitan\src\main\java\com\dynamiczero\survivingtitan\GcmPush.java:82: error: cannot find symbol
mGcm = GoogleCloudMessaging.getInstance(mContext);
^
symbol: variable GoogleCloudMessaging
location: class GcmPush
W:\com.dynamiczero.survivingtitan\src\main\java\com\dynamiczero\survivingtitan\GooglePlayServicesExtension.java:546: error: method CloudResultData in class RunnerJNILib cannot be applied to given types;
RunnerJNILib.CloudResultData(s.getBytes(), 0 /*STATUS_NEW_GAME_DATA*/, fileId);
^
required: byte[],byte[],int,int
found: byte[],int,int
reason: actual and formal argument lists differ in length
W:\com.dynamiczero.survivingtitan\src\main\java\com\dynamiczero\survivingtitan\GooglePlayServicesExtension.java:560: error: method CloudResultData in class RunnerJNILib cannot be applied to given types;
RunnerJNILib.CloudResultData( null, 0 /*STATUS_NEW_GAME_DATA*/, fileId );
^
required: byte[],byte[],int,int
found: <null>,int,int
reason: actual and formal argument lists differ in length
W:\com.dynamiczero.survivingtitan\src\main\java\com\dynamiczero\survivingtitan\GooglePlayServicesExtension.java:681: error: method CloudResultData in class RunnerJNILib cannot be applied to given types;
RunnerJNILib.CloudResultData(s.getBytes(), 0 /*STATUS_NEW_GAME_DATA*/, fileId);
^
required: byte[],byte[],int,int
found: byte[],int,int
reason: actual and formal argument lists differ in length
W:\com.dynamiczero.survivingtitan\src\main\java\com\dynamiczero\survivingtitan\GooglePlayServicesExtension.java:700: error: method CloudResultData in class RunnerJNILib cannot be applied to given types;
RunnerJNILib.CloudResultData( null, 0 /*STATUS_NEW_GAME_DATA*/, fileId );
^
required: byte[],byte[],int,int
found: <null>,int,int
reason: actual and formal argument lists differ in length
W:\com.dynamiczero.survivingtitan\src\main\java\com\dynamiczero\survivingtitan\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.
15 errors
:com.dynamiczero.survivingtitan:compileDebugJavaWithJavac FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':com.dynamiczero.survivingtitan: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: 13.8 secs
Picked up _JAVA_OPTIONS: -Xmx4096M
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.