我最近将我的Android应用程序从appcompat-v7:25.1.1升级到了v27.1.1。
随后通过以下方式升级了地图和位置库:
'com.google.android.gms:play-services-maps:15.0.1' 'com.google.android.gms:play-services-location:15.0.1'
当我单击Google Map中的“ mylocation”图标时,我找不到表示当前位置的BLUE DOT。在LogCat中看不到任何错误。
我的gradle依赖项是:
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation "com.android.support:support-core-utils:27.1.1"
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.android.support:design:27.1.1'
implementation 'com.android.support:cardview-v7:27.1.1'
implementation 'com.android.support:recyclerview-v7:27.1.1'
implementation 'com.android.support:exifinterface:27.1.1'
implementation 'com.google.android.gms:play-services-maps:15.0.1'
implementation 'com.google.android.gms:play-services-location:15.0.1'
implementation 'com.google.maps.android:android-maps-utils:0.5'
implementation 'commons-codec:commons-codec:1.11'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.android.volley:volley:1.1.0'
implementation 'com.github.medyo:android-about-page:1.2.4'
有什么想法吗?