Мне удавалось создавать пакеты приложений очень хорошо, пока я случайно не выбрал «Build APK» вместо «Build App Bundle», а затем в pani c вышел из Android Studio, пока APK находился в процессе сборки , Со времени моей последней успешной сборки я немного изменил свой код. Теперь я получаю эту ошибку при попытке создать пакет приложений:
Note: C:\Users\Jennifer\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\path_provider-1.6.5\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: C:\Users\Jennifer\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\cloud_firestore-0.12.11\android\src\main\java\io\flutter\plugins\firebase\cloudfirestore\CloudFirestorePlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\Users\Jennifer\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\cloud_firestore-0.12.11\android\src\main\java\io\flutter\plugins\firebase\cloudfirestore\CloudFirestorePlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
C:\Users\Jennifer\AndroidStudioProjects\app\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java:13: error: cannot find symbol
import io.flutter.plugins.sharedpreferences.SharedPreferencesPlugin;
^
symbol: class SharedPreferencesPlugin
location: package io.flutter.plugins.sharedpreferences
C:\Users\Jennifer\AndroidStudioProjects\app\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java:34: error: cannot find symbol
SharedPreferencesPlugin.registerWith(registry.registrarFor("io.flutter.plugins.sharedpreferences.SharedPreferencesPlugin"));
^
symbol: variable SharedPreferencesPlugin
location: class GeneratedPluginRegistrant
2 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileReleaseJavaWithJavac'.
> 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 4m 5s
Running Gradle task 'bundleRelease'... 246.5s (!)
Gradle task bundleRelease failed with exit code 1
РЕДАКТИРОВАТЬ: обратите внимание, что он прекрасно работает как в режиме выпуска, так и в режиме отладки на симуляторе и на физическом устройстве.
ОБНОВЛЕНИЕ: Кажется, проблема только с плагином Shared Preferences, поскольку сборка запускается, когда я удаляю этот плагин.