I am relatively new in Android Studio so I tried to work with Google Map in here. I used my previous code which I wrote and compiled in Eclipse. However, Android Studio is still showing a syntax error:
cannot resolve symbol android
cannot resolve symbol gms
cannot resolve symbol maps
cannot resolve symbol SupportMapFragment
I checked two different blog including googles developer guide. There were two options, I checked with both MapFragment and SupportMapFragment. The result is same for both cases.
The XML code is given below:
<?xml version="1.0" encoding="utf-8"?>
<fragment xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:map="http://schemas.android.com/apk/res-auto"
android:id="@+id/map"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:name="com.google.android.gms.maps.SupportMapFragment" >This is error line.
/>
I dont have anything else in this XML file. Thank you.