I'm really stuck here. So, I follow this tutorial step by step: but it still doesn't work.
I've done all steps from tutorial and find out what new module(GooglePlayServices) not in modules, if open run->edit
configurations in general->module
i don't see GooglePlayServices
, I suppose this is the problem, but I can't find what I have to do to fix it.
Day early I tried same, but in this case (I actually don't remember what I did) GooglePlayServices
in modules and I don't have anymore problem with cannot resolve symbol 'maps'
, but it still doesn't work, fires error Error inflating class fragment
my activity extends FragmentActivity
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
public class MainActivity extends FragmentActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
}
in both case build.gradle
just like in tutorial:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.4'
}
}
apply plugin: 'android'
dependencies {
compile files('libs/android-support-v4.jar')
compile project(':GooglePlayServices')
}
android {
compileSdkVersion 17
buildToolsVersion "17.0.0"
defaultConfig {
minSdkVersion 9
targetSdkVersion 17
}
}
and settings.gradle
:
include ':Roadatus', ':GooglePlayServices'
main.xml:
<?xml version="1.0" encoding="utf-8"?>
<fragment xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/map"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:name="com.google.android.gms.maps.SupportMapFragment"/>