Recently Google Maps API V2 or V3 version change, I have not been able to run successfully before.
Today saw the description of Google Maps Android API v2 official website, saying that the project can be directly run case: android-sdk \ extras \ google \ google_play_services \ samples \ maps, but then imported into Eclipse, found a lot of the red cross, a closer look, because com.example.mapdemo.view.FeatureView.java used in the import com.example.mapdemo.R;
R.java file but can not find the whole project, this is unlikely to be in another bag inside the package are added plus.
Then I re-downloaded google play services, the problem persists, you can not rule out is to download the full issue.
Great God, please help locate causes.
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Nobody replies own roof.
Later found R.java not automatically generate, there is multimap_demo.xml error, error associated code is as follows:
android: layout_width = "match_parent"
android: layout_height = "match_parent"
android: layout_weight = "0.5"
class = "com.google.android.gms.maps.SupportMapFragment"
map: cameraTargetLat = "48.85"
map: cameraTargetLng = "2.35"
map: cameraZoom = "8" />
Tip cameraTargetLat, cameraTargetLng and cameraZoom not recognize, obviously is the official website to download something, but also wrong, I do not know why.
Later, these three things removed, becomes:
android: layout_width = "match_parent"
android: layout_height = "match_parent"
android: layout_weight = "0.5"
class = "com.google.android.gms.maps.SupportMapFragment" />
I was not wrong, and can not operate normally not known.
Reply:
Debugging with real machine virtual machine installed google play service had more trouble and more cards
Reply:
It has a link http://www.cnblogs.com/mengdd/archive/2013/01/01/2841390.html which describes in great detail and I hope to help you v2 also need to apply for a starting sha1 key generation and package name So Google source code can not be run directly
Reply:
Even have encountered, MainActivity.java the xxx.xxx.xxx.R not find, or just can not find
R.layout.Activity_main
Reply:
4th Floor, how to solve ah
No comments:
Post a Comment