skip to Main Content

ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Null check operator used on a null value

class SplashServices { UserPreferences userPreferences = UserPreferences(); void isLogin() { userPreferences.getUser().then((value) { if (value.token!.isNotEmpty && value.token.toString() != 'null') { Timer( const Duration(seconds: 5), () => Get.toNamed(RouteName.homeView)); } else { Timer( const Duration(seconds: 5), () => Get.toNamed(RouteName.loginView)); } }); } }…

VIEW QUESTION

BuildConfig could not resolve after upgrading Android Studio to Flamingo | 2022.2.1 Patch 1

My project ran on the device successfully but when I upgraded my project BuildConfig file did not resolve classpath 'com.android.tools.build:gradle:8.0.1' distributionUrl=https://services.gradle.org/distributions/gradle-8.0-bin.zip compileOptions { sourceCompatibility JavaVersion.VERSION_17 targetCompatibility JavaVersion.VERSION_17 } kotlinOptions { jvmTarget = JavaVersion.VERSION_17.toString() } I have done Invalidate Caches... and…

VIEW QUESTION
Back To Top
Search