show this error after run "flutter upgrade"
this problem hide when stop sharedPreferences from pubspec.yaml .
i try change dart-sdk version from pubspec.yaml but nothinge changed .
this image show version of shared_Preferences that used
This is the error :
Running Gradle task 'assembleDebug'...
D:\windows\flutter_project\salfa_game\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java:34: error: package io.flutter.plugins.sharedpreferences does not exist
flutterEngine.getPlugins().add(new io.flutter.plugins.sharedpreferences.SharedPreferencesPlugin());
^
1 error
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 36s
Error: Gradle task assembleDebug failed with exit code 1
I expect this error from dart-sdk last version dev chanall:3.4.0-64.0.dev
this is dart sdk version : 3.4.0-64.0.dev,
best solve for this problem after very tried ,
delete the flutter sdk from C:\src and download again :https://docs.flutter.dev/get-started/install/windows/mobile?tab=download .... after finish all thing work .