7
Bağımlılıklarımı güncelledikten sonra getMap() cihazım çalışmaz. Burada hatası: bağımlılıklar güncellendikten sonra getMap() yöntemini bulamıyor
hata olsun kodların dizisi (bu güncelleştirme önce sadece iyi iş için kullanılan)GoogleMap map = ((MapView) mRootView.findViewById(R.id.fragment_map_mapview)).getMap();
Location locationNet = locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);
Location locationGps = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);
grandle kod
dependencies
{
compile 'com.android.support:support-v4:24.0.0'
compile 'com.android.support:appcompat-v7:24.0.0'
compile 'com.android.support:cardview-v7:24.0.0'
compile 'com.android.support:recyclerview-v7:24.0.0'
//compile 'com.google.android.gms:play-services:7.3.0'
compile 'com.google.android.gms:play-services:9.2.0'
compile 'com.afollestad:material-dialogs:[email protected]'
compile 'com.bignerdranch.android:recyclerview-multiselect:0.1'
compile 'com.j256.ormlite:ormlite-android:4.48'
compile 'com.melnykov:floatingactionbutton:1.2.0'
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.3'
compile 'se.emilsjolander:StickyScrollViewItems:1.1.0'
compile 'com.squareup.picasso:picasso:2.5.2'
compile fileTree(include: ['*.jar'], dir: 'libs')
}
Olası yinelenen [getMapAsync ile GetMap değiştirin] (http://stackoverflow.com/questions/31371865/replace-getmap-with-getmapasync) –
@NDorigatti ve @Owais Ali Doğru, sen '[getMapAsync kullanmak gerekir() '(https://developers.google.com/android/reference/com/google/android/gms/maps/MapFragment) yöntemi. –