public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
SupportMapFragment m = ((SupportMapFragment) getActivity().getSupportFragmentManager().findFragmentById(R.id.safety_map));
< /code>
фрагмент XML ... < /p>
< /code>
Вот мои зависимости в моем build.gradle: < /p>
dependencies {
//google analytics
compile 'com.google.apis:google-api-services-analytics:v3-rev103-1.19.0'
//support library for api 10
compile 'com.android.support:support-v4:21.0.0'
//google play services
compile 'com.google.android.gms:play-services:6.1.11'
compile project(':facebook')
compile files('libs/android-support-multidex.jar')
compile files('libs/aws-android-sdk-1.6.0-debug.jar')
compile files('libs/FlurryAnalytics_3.3.2.jar')
}
< /code>
Я не изменил кода в файле XML или в классе фрагментов, который ранее работал в Eclipse. < /p>
Подробнее здесь: https://stackoverflow.com/questions/265 ... oid-studio
Мобильная версия