Исключение: "com.google. android .play.core.install.InstallException: Ошибка установки (-3): API не доступен на этом устройстве"
Любое решение для преодоления этого сценария ? Заранее спасибо.
// Creates instance of the manager.
appUpdateManager = AppUpdateManagerFactory.create(getApplicationContext());
// Returns an intent object that you use to check for an update.
com.google.android.play.core.tasks.Task<AppUpdateInfo> appUpdateInfoTask = appUpdateManager.getAppUpdateInfo();
// Checks that the platform will allow the specified type of update.
appUpdateInfoTask.addOnSuccessListener(new OnSuccessListener<AppUpdateInfo>() {
@Override
public void onSuccess(AppUpdateInfo appUpdateInfo) {
Log.e("AVAILABLE_VERSION_CODE", appUpdateInfo.availableVersionCode()+"");
}
});
appUpdateInfoTask.addOnFailureListener(new OnFailureListener() {
@Override
public void onFailure(Exception e) {
Log.e("Error", "oops I am HERE in failure "+e);
}
});
appUpdateInfoTask.addOnCompleteListener(new com.google.android.play.core.tasks.OnCompleteListener<AppUpdateInfo>() {
@Override
public void onComplete(com.google.android.play.core.tasks.Task<AppUpdateInfo> task) {
Log.e("STATUS", "Completed");
}
});
appUpdateManager.registerListener(installStateUpdatedListener);