pitu
pitu

Reputation: 820

referencing google play service for map R.java file error

i am trying mapv2 in my old application, which i published last year, now i am trying to integrate mapv2

i following this guide

work done till now:

but the error comes while referencing google play service to my old project , it destroys all my resource file.

what could be the reason for this?

my project lib folder contains only updated support v4, i removed that as well but no use

i have googled it but didn't get any solution, so please help me, any suggestion are appreciated

thank you

Upvotes: 3

Views: 795

Answers (3)

Praveen
Praveen

Reputation: 91175

The same situation I have crossed over a month back. Three things we need to check.

  1. Check your project.properties file target=android-17 and your Targetted Android version should be same.
  2. Else check your Google Play services library project get connected properly in project.properties file like android.library.reference.1=../google-play-services_lib
  3. The final thing is like a magic trick, if the above steps are you tried already. Simply create another workspace and import your integrated code in it, and just link the play service lib project. Note: when importing your project, it will not give Android package also. In that time Don't clean and build and do restart you Eclipse like File->Restart in Eclipse.

Upvotes: 0

Carlos Robles
Carlos Robles

Reputation: 10947

I would say that you have any error in your res folder. If you dont have any error mark (like this enter image description here) in your project explorer, probably you can do a further check:

  1. Go to Console tab,
  2. in the icon that looks like a screen make sure that Android is selected.
  3. clear all the messages in the first icon, that is like a paper with a "X"
  4. Go to Project > uncheck "build automatically"
  5. Go to Project > clean
    • Select your procheck
    • Uncheck "start build inmediatelly"
    • click ok
  6. In the project explorer, right click on your project name and click on refresh
  7. Project > Build Project
  8. Go back to the Console tab, and check if there are some errors, maybe regarding file names, or maybe file contents, usually in some of the folders inside the res folder

enter image description here

Also, please note that you could be breaking your R file, if some of the files in any of the resource files (an image, an xml file) or some of the value names (a string name, a integer name) has a duplicate name. Probably some of your files or values has a name that is also used in other resources, probably in the gooogle play services resources. check for that.

Upvotes: 0

Swapnil Sonar
Swapnil Sonar

Reputation: 2249

Check the this link for Google Map v2 integration. This gives the step by step direction for map integration.

Hope this is helpful to you..

Upvotes: 3

Related Questions