Код: Выделить всё
warning: [options] source value 8 is obsolete and will be removed in a future release
warning: [options] target value 8 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
/Users/me/.pub-cache/hosted/pub.dev/permission_handler_android-10.3.6/android/src/main/java/com/baseflow/permissionhandler/PermissionHandlerPlugin.java:28: error: cannot find symbol
@Nullable private io.flutter.plugin.common.PluginRegistry.Registrar pluginRegistrar;
^
symbol: class Registrar
location: interface PluginRegistry
/Users/me/.pub-cache/hosted/pub.dev/permission_handler_android-10.3.6/android/src/main/java/com/baseflow/permissionhandler/PermissionHandlerPlugin.java:47: error: cannot find symbol
public static void registerWith(io.flutter.plugin.common.PluginRegistry.Registrar registrar) {
^
symbol: class Registrar
location: interface PluginRegistry
2 errors
3 warnings
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':permission_handler_android:compileDebugJavaWithJavac'.
Compilation failed; see the compiler output below.
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options./Users/me/.pub-cache/hosted/pub.dev/permission_handler_android-10.3.6/android/src/main/java/com/baseflow/permissionhandler/PermissionHandlerPlugin.java:28: error: cannot find symbol
@Nullable private io.flutter.plugin.common.PluginRegistry.Registrar pluginRegistrar;
^
symbol: class Registrar
location: interface PluginRegistry
/Users/me/.pub-cache/hosted/pub.dev/permission_handler_android-10.3.6/android/src/main/java/com/baseflow/permissionhandler/PermissionHandlerPlugin.java:47: error: cannot find symbol
public static void registerWith(io.flutter.plugin.common.PluginRegistry.Registrar registrar) {
^
symbol: class Registrar
location: interface PluginRegistrywarning: [options] source value 8 is obsolete and will be removed in a future releasewarning: [options] target value 8 is obsolete and will be removed in a future release
2 errors
3 warnings
* Try:
Check your code and dependencies to fix the compilation error(s)
Run with --scan to get full insights.
BUILD FAILED in 6s
< /code>
pub getSo, because ar_app depends on permission_handler ^12.0.1, version solving failed.
You can try the following suggestion to make the pubspec resolve:
* Consider downgrading your constraint on permission_handler: flutter pub add permission_handler:^10.4.5
Failed to update packages.
< /code>
When I then tried 10.4.5, I was back to my original error.
How do I resolve this?
Подробнее здесь: https://stackoverflow.com/questions/797 ... e-outdated
Мобильная версия