I am trying to do the tutorial Sample Code from the https://developers.google.com/maps/documentation/android/intro page.I import the google-play-services_lib just fine, then I import the /extras/google/google_play_services/samples/maps
At this point I have 2 errors:
The type android.support.v4.app.Fragment cannot be resolved.
It is indirectly referenced from required .class files RetainMapActivity.java /MainActivity/src/com/example/mapdemo line 45 Java Problem
The project was not built since its build path is incomplete.
Cannot find the class file for android.support.v4.app.Fragment. Fix the build path then try building this project MainActivity Unknown Java Problem
I figured this was because I did not yet complete all the steps and continued. When I add android-support-v4.jar via the method in the sample code, I get over 100 errors, all of which look like this (but with different line #s and paths):
R cannot be resolved to a variable BasicMapActivity.java /MainActivity/src/com/example/mapdemo line 42 Java Problem
The only deviation from the tutorial that I took was my android-support-v4.jar was located in sdk\extras\android\support\v4
If there is anything you think I should try, or a bug that you know of, please tell me. Also if there is anymore helpful information I can give, just say so.
Edit: I looked more closely at the code, and there was no R.java in the gen folder. Might explain why nothing could find it.