josxha / flutter-maplibre

Permissive and performant mapping library that supports Mapbox Vector Tiles (MVT) powered by MapLibre SDKs.
https://flutter-maplibre.pages.dev
Other
17 stars 3 forks source link

feat: use jnigen for android #53

Closed josxha closed 1 month ago

josxha commented 1 month ago

Overview

Issue

cloudflare-workers-and-pages[bot] commented 1 month ago

Deploying flutter-maplibre with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6376c36
Status: ✅  Deploy successful!
Preview URL: https://d8b143ba.flutter-maplibre.pages.dev
Branch Preview URL: https://feat-jnigen.flutter-maplibre.pages.dev

View logs

josxha commented 1 month ago
usap64 E  [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Exception in Java code called through JNI: java.lang.ClassNotFoundException: Didn't find class "com/github/josxha/maplibre/MapLibreMapRegistry" on path: DexPathList[[zip file "/data/app/~~LtnVRM3xFQ2tftsydsBVhA==/com.github.josxha.maplibre_example-fkaF8Gt-oC4tCi5QmqvlCg==/base.apk"],nativeLibraryDirectories=[/data/app/~~LtnVRM3xFQ2tftsydsBVhA==/com.github.josxha.maplibre_example-fkaF8Gt-oC4tCi5QmqvlCg==/lib/arm64, /data/app/~~LtnVRM3xFQ2tftsydsBVhA==/com.github.josxha.maplibre_example-fkaF8Gt-oC4tCi5QmqvlCg==/base.apk!/lib/arm64-v8a, /system/lib64, /system/system_ext/lib64]]

java.lang.ClassNotFoundException: Didn't find class "com/github/josxha/maplibre/MapLibreMapRegistry" on path: DexPathList[[zip file "/data/app/~~LtnVRM3xFQ2tftsydsBVhA==/com.github.josxha.maplibre_example-fkaF8Gt-oC4tCi5QmqvlCg==/base.apk"],nativeLibraryDirectories=[/data/app/~~LtnVRM3xFQ2tftsydsBVhA==/com.github.josxha.maplibre_example-fkaF8Gt-oC4tCi5QmqvlCg==/lib/arm64, /data/app/~~LtnVRM3xFQ2tftsydsBVhA==/com.github.josxha.maplibre_example-fkaF8Gt-oC4tCi5QmqvlCg==/base.apk!/lib/arm64-v8a, /system/lib64, /system/system_ext/lib64]]
    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:207)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:312)

#0      Jni.throwException (package:jni/src/jni.dart:201)
#1      _check (package:jni/src/accessors.dart:11)
#2      JniClassLookupResultMethods.checkedClassRef (package:jni/src/accessors.dart:95)
#3      Jni.findClass (package:jni/src/jni.dart:188)
#4      new JClass.forName (package:jni/src/jclass.dart:17)
#5      MapLibreMapRegistry._class (package:maplibre/src/jni/com/github/josxha/maplibre/MapLibreMapRegistry.dart:199)
#6      MapLibreMapRegistry._id_Companion (package:maplibre/src/jni/com/github/josxha/maplibre/MapLibreMapRegistry.dart)
#7      MapLibreMapRegistry.Companion (package:maplibre/src/jni/com/github/josxha/maplibre/MapLibreMapRegistry.dart)
#8      MapLibreMapStateJni._jniMapLibreMap (package:maplibre/src/native/widget_state_jni.dart:26)
#9      MapLibreMapStateJni.getCamera (package:maplibre/src/native/widget_state_jni.dart:416)
#10     _ControllerPageState.build.<anonymous closure> (package:maplibre_example/controller_page.dart:126)
#11     _InkResponseState.handleTap (package:flutter/src/material/ink_well.dart:1170)
#12     GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:351)
#13     TapGestureRecognizer.handleTapUp (package:flutter/src/gestures/tap.dart:656)
#14     BaseTapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:313)
#15     BaseTapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:246)
#16     PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:703)
#17     PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:98)
#18     PointerRouter._dispatchEventToRoutes.<anonymous closure> (package:flutter/src/gestures/pointer_router.dart:143)
#19     _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:633)
#20     PointerRouter._dispatchEventToRoutes (package:flutter/src/gestures/pointer_router.dart:141)
#21     PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:127)
#22     GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:501)
#23     GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:481)
#24     RendererBinding.dispatchEvent (package:flutter/src/rendering/binding.dart:450)
#25     GestureBinding._handlePointerEventImmediately (package:flutter/src/gestures/binding.dart:426)
#26     GestureBinding.handlePointerEvent (package:flutter/src/gestures/binding.dart:389)
#27     GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:336)
#28     GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:305)