简体   繁体   中英

Android - Warning after update google play service

After update my google play service version to last released version, when enable minify in debug or release the following warning shown and task not complete.
Warning:io.nlopez.smartlocation.activity.ActivityStore: can't find referenced method 'DetectedActivity(int,int,int)' in program class com.google.android.gms.location.DetectedActivity

Updated version : compile 'com.google.android.gms:play-services:10.2.0'
I add this line in my gradle apply plugin: 'com.google.gms.google-services' Can anyone help me ?

Try to add Google Play Service location package:

compile 'com.google.android.gms:play-services-location:10.2.0'

Also you should check SmartLocation library description, last compatible version of Google Play Services 10.0.1:

https://github.com/mrmans0n/smart-location-lib

... Google Play Services compatible version: 10.0.1

So, I think, you should downgrade Grade Google Play service to v. 10.0.1, is you use SmartLocation library

我发现问题是我在我的项目中使用此 ,而Google Play服务版本10.2.0与此库不兼容

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM