Зависимости от трепета, кажется, устарелиAndroid

Форум для тех, кто программирует под Android
Ответить
Anonymous
 Зависимости от трепета, кажется, устарели

Сообщение Anonymous »

Я совершенно новый, чтобы трепетать , и у меня возникли проблемы с приложением для запуска. Это то, что я получаю: < /p>

Код: Выделить всё

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 get
рассказывает мне разрешение_handler_android 10.3.6 (13.0.1 Доступно) Но я запускаю Flutter версию 3.35.2 . Я попробовал Flutter Pub Upgrade , но никаких зависимостей не изменилось.
Я попытался добавить разрешение_ индлера: ^12.0.1 под зависимостью
in pubspec.yaml , но получил это сообщение, когда я запустил приложение:

Because ar_app depends on ar_flutter_plugin_engine any which depends on permission_handler ^10.1.0, permission_handler ^10.1.0 is required.
So, 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
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Android»