Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 3    Views: 54

@rob
Code is Art
Profile
Posts: 115
Reg: Dec 10, 2013
Alabama
8,800
02/25/14 01:03 PM (10 years ago)

Anyone else seeing this Eclipse error

For push notifications in Android (self hosted BTv3) you specify your Google GCM Project Number in your manifest file: example:<meta-data android:name="googleCloudMessagingProjectNumber" android:value="933711339111"/> That "integer" is passed to BT_gcmConfig.java around line 69 My app throws an error and crashes with the logcat error: Caused by: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String Which implies that the BT_gcmConfig.java is looking for a string but we have to pass an Integer from the manifest file, what am I missing?
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
02/26/14 01:36 AM (10 years ago)
Have you imported the Google Play Services Library Project to your project? If not so, then right click your project file--> go to Properties--> Android--> Libraries (here you need to add the Google Play Services Library project). The above step is explained assuming you already have google play services library project on your workplace. If not then download it from SDK manager of your eclipse. Also you need to remove the googleplayservices jar file that got downloaded from bt.
 
@rob
Code is Art
Profile
Posts: 115
Reg: Dec 10, 2013
Alabama
8,800
like
02/26/14 09:17 AM (10 years ago)
Yep Google Play Services is installed, I needed if for my Map screens and they work perfectly, so it's not that.
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
02/26/14 11:02 AM (10 years ago)
Hi Rob, is it possible to you to be on teamviewer session after say about 9 or 10 hours later from now? If so we both will try to fix your issue on teamviewer.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.