Discussion Forums  >  Uncategorized

Replies: 6    Views: 156

MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
12/28/11 02:03 PM (14 years ago)

BT Server Syntax error in android code

I've been working with iOS apps in my BT server installation and all work well. I've just started to play with android code and I'm running into an error I can't figure out. I'm getting six errors as follows: Syntax error on token '0', delete this token All of the errors are in the generated 'R.java' file and each error is in reference to the map icons that begin with '0' (ie. 0_bt_map_marker_blue). Has anyone else encountered this problem and what did you do to solve it? Thanks.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
12/28/11 02:15 PM (14 years ago)
Hmm..haven't heard about this but I think I know what's happening. Here's how it should be working... The map icons that are used on android maps should be included in the map plugin folder on your server. The image names for the map icons don't begin with 0_ (zero underscore), they all begin with map_marker_red, map_marker_blue, etc. When you download a project from your server these are included in the Android project. So, where are the 0_bt_map images coming from? I would be that they were added to the /drawable folder after the project was downloaded. Just a hunch. In some of our previous work we used file names like this in a few places. And, get this, I don't think Java / Android allows files and image names to begin with 'zero.' Again, not sure, just a hunch. Do this. Open the /drawable folder and remove all the images that begin with 0_ then do a project clean (project menu). I'll be it fixed the problem. You'll also want to make sure the map_marker_red, blue, green, etc. images are included in the drawable folder.
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
12/28/11 02:54 PM (14 years ago)
Hey David, thanks for the suggestion. Gave me just what I needed to figure it out. I've been updating BT-server and the plugins by just overwriting my current installation. An earlier version of the map plugin included all of the icons with the '0_' prefix and they were still in the directory. So when I compiled the project, it included all of those files. I deleted them from the server, re-downloaded the code, and all works. Thanks.
 
tiger
Aspiring developer
Profile
Posts: 121
Reg: Dec 26, 2010
USA
1,210
like
04/13/12 09:29 AM (13 years ago)
Hi, I'm getting the same message but I can't figure out where to find 0_bt_map images. I tried deleting from my package but can't. I'm been looking through my files but I'm totally lost. I checked the reference material and did everything I found I could do like making sure I'm using the correct Google 2.2/8 and I made sure java was setup and selected. I thought maybe it was my file location and moved my package from my hard drive to a thumb drive. That did not help. I notice the location is line 1. I don't know how to get to line 1 to see what the problem maybe. Help!!!! I posted an image of the error here: http://s3.amazonaws.com/skjatemp_stuffwoup/Android%20App%20error%202.png
 
tiger
Aspiring developer
Profile
Posts: 121
Reg: Dec 26, 2010
USA
1,210
like
04/13/12 10:23 AM (13 years ago)
Hi, I'm getting the same message but I can't figure out where to find 0_bt_map images. I tried deleting from my package but can't. I'm been looking through my files but I'm totally lost. I checked the reference material and did everything I found I could do like making sure I'm using the correct Google 2.2/8 and I made sure java was setup and selected. I thought maybe it was my file location and moved my package from my hard drive to a thumb drive. That did not help. I notice the location is line 1. I don't know how to get to line 1 to see what the problem maybe. Help!!!! I posted an image of the error here: http://s3.amazonaws.com/skjatemp_stuffwoup/Android%20App%20error%202.png
 
tiger
Aspiring developer
Profile
Posts: 121
Reg: Dec 26, 2010
USA
1,210
like
04/13/12 01:00 PM (13 years ago)
Hi, I finally figured out my problem and it was soooooooo simple. I was putting my project in a sub-folder on an external hard drive. I put the project in Users/Documents/workspace and the problem was resolved The project should be in workspace so that it can refer to related library In my case it was not referring to map library so was givng those error Thanks GoNorthWest for all your help!!!!!!!
 
tiger
Aspiring developer
Profile
Posts: 121
Reg: Dec 26, 2010
USA
1,210
like
04/13/12 06:30 PM (13 years ago)
Hi, I finally figured out my problem and it was soooooooo simple. I was putting my project in a sub-folder on an external hard drive. I put the project in Users/Documents/workspace and the problem was resolved The project should be in workspace so that it can refer to related library In my case it was not referring to map library so was givng those error Thanks GoNorthWest for all your help!!!!!!!
 

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.