-1

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.

Muhammed Refaat
  • 8,914
  • 14
  • 83
  • 118
Ibtehaz
  • 49
  • 10

1 Answers1

0

according to this answer, you have to import the project android-sdk-windows\add-ons\addon_google_apis_google_inc_8 into your android-studio (look here , or here), then add it to your app(look here).

Community
  • 1
  • 1
Muhammed Refaat
  • 8,914
  • 14
  • 83
  • 118