xxxxxxxxxx
inside main.dart before start app add below code
SharedPreferences.setMockInitialValues({});
for reason:
https://stackoverflow.com/questions/50687801/flutter-unhandled-exception-missingpluginexceptionno-implementation-found-for
uninstall and reinstall your application.
xxxxxxxxxx
No implementation found for method getAll on channel plugins.flutter.io.
The above will occur when you setup the plugin for the first time, so it has to be reinstalled.
xxxxxxxxxx
import io.flutter.embedding.android.FlutterActivity
import io.flutter.embedding.engine.FlutterEngine
import io.flutter.plugins.GeneratedPluginRegistrant
class MainActivity: FlutterActivity() {
override fun configureFlutterEngine(flutterEngine: FlutterEngine) {
GeneratedPluginRegistrant.registerWith(flutterEngine) // add this line
}
}
xxxxxxxxxx
buildTypes {
release {
signingConfig signingConfigs.release
minifyEnabled true
useProguard true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}