简体   繁体   中英

The import com.google.android.gms.common.GooglePlayServicesAvailabilityException cannot be resolved

All other imports are OK.

Only

com.google.android.gms.common.GooglePlayServicesAvailabilityException;

cannot be resolved.

I have imported google services lib and made my project reference it.

Add googleplayservices lib that is inside your SDK. Go to:

  1. extras
  2. google

Here you will find Google Play Services library. If not then add it. Install it just like you install versions of Android in ADT (Android Developer Tools).

They have changed it to

GooglePlayServicesRepairableException

 @Nullable
public static AdvertisingIdClient.Info getAdvertisingIdInfo(Context var0) throws IOException, IllegalStateException, GooglePlayServicesNotAvailableException, GooglePlayServicesRepairableException {

Scroll this and check.

GooglePlayServicesAvailabilityException was available in play-services-auth . But Not Anymore

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