Android Question ML Kit pose-detection problem

Cesaral

Member
I include these libraries to make a ML Kit pose-detection project:


B4X:
#AdditionalJar: pose-detection-17.0.0.aar

#AdditionalJar: pose-detection-accurate-17.0.0.aar

I have placed those libraries in the ExtraLibraries folder of B4A

When my code executes:

B4X:
PoseOptions.InitializeNewInstance("com.google.mlkit.vision.pose.PoseDetectorOptions$Builder", Null)

I get the log error:

B4X:
java.lang.ClassNotFoundException: com.google.mlkit$vision$pose$PoseDetectorOptions$Builder

This means that the class string is changed by something, and as a result the error comes (the class changed does not exist).

Please help!
 

Cesaral

Member
Thanks Erel. I changed those lines and I get:

B4X:
segmentation_initialize (java line: 107)
java.lang.ClassNotFoundException: com.google.mlkit$vision$pose$PoseDetectorOptions$Builder
    at anywheresoftware.b4j.object.JavaObject.getCorrectClassName(JavaObject.java:289)
    at anywheresoftware.b4j.object.JavaObject.InitializeNewInstance(JavaObject.java:84)
    at b4a.example.segmentation._initialize(segmentation.java:107)
    at b4a.example.b4xmainpage._b4xpage_created(b4xmainpage.java:45)
....
 
Upvote 0
Top