I am struggling to run the example below:
https://developers.google.com/eclipse/docs/getting_started
The first issue I ran into was not installing the โGoogle Cloud Messaging for Android Libraryโ in the Android SDK (obviously I know).
But now I have a problem with automatically generated code in two files in an Android project: GCMIntentService.java and RegisterActivity.java
Errors:
- GetDeviceInfo (String) undefined method for type Deviceinfoendpoint GCMIntentService.java
- List of methodsMessages () - undefined for type MessageEndpoint RegisterActivity.java
- The insertDeviceInfo (DeviceInfo) method is undefined for the type Deviceinfoendpoint GCMIntentService.java
- Method removeDeviceInfo (String) undefined for type Deviceinfoendpoint GCMIntentService.java
I am using the Java SDK v1.7.0_15 on Ubuntu, but I also tried on Windows 7 with the Java SDK v1.6 and had the same problem. The latest platform is Android 4.2.2 and Google App Engine 1.7.7. Eclipse is Juno Service Release 2.
The problem is that they are not casting correctly, because there is a getDeviceInfo method for the inner class DeviceInfoEndpoint inside Deviceinfoendpoint (various capatilization).
I could try and fix it, but just wondering if I have something wrong in my setup for this to happen?
Any help would be appreciated.
reubenb87
source share