Closed BDemetrix closed 4 months ago
Добрый день!
Вы инициализируете проект так как в README указано?
Просьба приложить flutter doctor --verbose
@DCrow
Добрый день, у меня крашится com.yandex.android:maps.mobile:4.4.0-full
, в com.yandex.android:maps.mobile:4.3.2-full
у меня такой проблемы нет.
Stacktrace
E/AndroidRuntime(14738): FATAL EXCEPTION: main
E/AndroidRuntime(14738): Process: com.prokurs.app, PID: 14738
E/AndroidRuntime(14738): java.lang.NoSuchMethodError: No interface method setModelsEnabled(Z)V in class Lcom/yandex/mapkit/map/Map; or its super classes (declaration of 'com.yandex.mapkit.map.Map' appears in /data/app/~~QKv6Z8FeDyKvcrbLczijeA==/com.prokurs.app-44vrGCKM7igOjfYLhwknLw==/base.apk)
E/AndroidRuntime(14738): at com.unact.yandexmapkit.YandexMapController.applyMapOptions(YandexMapController.java:562)
E/AndroidRuntime(14738): at com.unact.yandexmapkit.YandexMapController.<init>(YandexMapController.java:127)
E/AndroidRuntime(14738): at com.unact.yandexmapkit.YandexMapFactory.create(YandexMapFactory.java:28)
E/AndroidRuntime(14738): at io.flutter.plugin.platform.PlatformViewsController.createPlatformView(PlatformViewsController.java:520)
E/AndroidRuntime(14738): at io.flutter.plugin.platform.PlatformViewsController$1.createForPlatformViewLayer(PlatformViewsController.java:165)
E/AndroidRuntime(14738): at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.create(PlatformViewsChannel.java:105)
E/AndroidRuntime(14738): at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.onMethodCall(PlatformViewsChannel.java:55)
E/AndroidRuntime(14738): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:267)
E/AndroidRuntime(14738): at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:295)
E/AndroidRuntime(14738): at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:322)
E/AndroidRuntime(14738): at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12)
E/AndroidRuntime(14738): at android.os.Handler.handleCallback(Handler.java:942)
E/AndroidRuntime(14738): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(14738): at android.os.Looper.loopOnce(Looper.java:201)
E/AndroidRuntime(14738): at android.os.Looper.loop(Looper.java:288)
E/AndroidRuntime(14738): at android.app.ActivityThread.main(ActivityThread.java:7872)
E/AndroidRuntime(14738): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(14738): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
E/AndroidRuntime(14738): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
I/Process (14738): Sending signal. PID: 14738 SIG: 9
flutter doctor --verbose
[✓] Flutter (Channel stable, 3.16.4, on macOS 14.1.2 23B92 darwin-x64, locale en-GB)
• Flutter version 3.16.4 on channel stable at /Users/roman/dev/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 2e9cb0aa71 (8 days ago), 2023-12-11 14:35:13 -0700
• Engine revision 54a7145303
• Dart version 3.2.3
• DevTools version 2.28.4
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at /Users/roman/Library/Android/sdk
• Platform android-33, build-tools 34.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 15.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 15C65
• CocoaPods version 1.11.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2022.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
[✓] VS Code (version 1.84.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.76.0
[✓] Connected device (3 available)
• sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64 • Android 13 (API 33) (emulator)
• macOS (desktop) • macos • darwin-x64 • macOS 14.1.2 23B92 darwin-x64
• Chrome (web) • chrome • web-javascript • Google Chrome 120.0.6099.109
! Error: Browsing on the local area network for iPhone 13. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources
• All expected network resources are available.
• No issues found!
P.S.: Инициализирую как сказано в README.md
Подтверждаю.
На com.yandex.android:maps.mobile:4.4.0-full
крашится.
При смене на com.yandex.android:maps.mobile:4.3.2-full
работает нормально.
Инициализировал как указано в Readme
@azakost Для какой версии yandex_mapkit?
@DCrow стояла 3.3.3. Апгрейднул до ^3.4.0 и проблема ушла =)
Все верно, с 3.3.3 только com.yandex.android:maps.mobile:4.3.2-full
может работать, с 3.4.0 только com.yandex.android:maps.mobile:4.4.0-full
При вызове
YandexMap()
в flutterпадает с ошибкой: