Как исправить: переменная installStateUpdatedListener могла не быть инициализированаJAVA

Программисты JAVA общаются здесь
Anonymous
Как исправить: переменная installStateUpdatedListener могла не быть инициализирована

Сообщение Anonymous »


Variable 'installStateUpdatedListener' might not have been initialized

How to solve this problem

image

.InstallStateUpdatedListener not working `

InstallStateUpdatedListener installStateUpdatedListener; InstallStateUpdatedListener finalInstallStateUpdatedListener = installStateUpdatedListener; installStateUpdatedListener = state -> { if (state.installStatus() == InstallStatus.DOWNLOADED) { launchSnackBar(); } else if (state.installStatus() == InstallStatus.INSTALLED){ if (appUpdateManager != null){ appUpdateManager.unregisterListener(finalInstallStateUpdatedListener); } } ` How to fix Variable 'installStateUpdatedListener' might not have been initialized


Источник: https://stackoverflow.com/questions/780 ... initialize

Вернуться в «JAVA»