Open yanshouwang opened 1 month ago
It seems that a method parameter's name is null. This might be the result of some Kotlin compilation.
Can you tell me which libraries you're trying to generate bindings for? To help me more, try to find the culprit by commenting out the classes until the error goes away (If you have too many classes you can try bisection)
It seems that a method parameter's name is null. This might be the result of some Kotlin compilation.
Can you tell me which libraries you're trying to generate bindings for? To help me more, try to find the culprit by commenting out the classes until the error goes away (If you have too many classes you can try bisection)
OK, here is the jnigen.yml, I can generate successfully after I comment this three classes.
These classes can be generated before I upgrade the camerax
version from 1.3.4 to 1.4.0-beta02
# Run with `dart run jnigen --config jnigen.yaml`.
android_sdk_config:
add_gradle_deps: true
android_example: example/
suspend_fun_to_async: true
enable_experiment:
- interface_implementation
output:
dart:
path: lib/src/jni.g.dart
structure: single_file
log_level: all
class_path:
- classes/jetified-listenablefuture-1.0.jar
classes:
- android.app.Activity
- android.content.Context
- android.content.ContentResolver
- android.content.ContentValues
- android.database.Cursor
- android.net.Uri
- android.provider.MediaStore
- androidx.core.content.ContextCompat
- androidx.camera.core.CameraSelector
# - androidx.camera.core.ImageAnalysis
# - androidx.camera.core.ImageCapture
- androidx.camera.core.ImageProxy
- androidx.camera.core.TorchState
- androidx.camera.core.ZoomState
- androidx.camera.view.CameraController
- androidx.camera.view.LifecycleCameraController
# - androidx.camera.view.PreviewView
- androidx.camera.mlkit.vision.MlKitAnalyzer
- androidx.lifecycle.LifecycleOwner
- androidx.lifecycle.LiveData
- androidx.lifecycle.Observer
- com.google.common.util.concurrent.ListenableFuture
- java.lang.Runnable
- java.util.concurrent.Executor
- java.util.concurrent.Executors
- java.util.concurrent.Future
- dev.hebei.camerax_android.OnImageCapturedCallback
- dev.hebei.camerax_android.OnImageCapturedCallbackImpl
- dev.hebei.camerax_android.PreviewViewFactory
In the PreviewView class, these methods are added in 1.4.0-beta02.
Here is the error message.