-
Notifications
You must be signed in to change notification settings - Fork 4
JNI DETECTED ERROR IN APPLICATION: JNI FindClass called with pending exception java.lang.NoSuchMethodError: #12
Comments
You mention It looks like this is indeed a bug. The api should be calling |
@MolotovCherry if (Magick.isInitialized()) {
val b = MagickWand()
val path = "${this.externalCacheDir}/test.png"
b.readImage(path)
logD(b.getImageAlphaChannel())
logD(b.getImagePage())
logD(b.getImageHeight())
logD(b.getImageResolution())
logD(b.getImageColors)
b.getImageHistogram()?.let {
it.forEach { pixelWand ->
logD(pixelWand.color)
}
}
}
|
So, the DLL exports certain functions. The exported kotlin functions are supposed to call the exact implementation. The names should match up with this list. If it doesn't, the function is probably named wrong on the kotlin side. You can see here that the function names match Functions
Only if the cause of it was a wrongly named function. In your example above, that's an internal error. Please keep reporting every single error you find. I can't fix them without logs 😄 |
@MolotovCherry There may be problems with the Error Log
if (Magick.isInitialized()) {
val b = MagickWand()
val path = "${this.externalCacheDir}/test.png"
b.readImage(path)
logD(b.getImageAlphaChannel())
logD(b.getImagePage())
logD(b.getImageHeight())
logD(b.getImageResolution())
logD(b.getImageColors)
val pixelWand = b.getImagePixelColor(1L, 1L)
Log.d(TAG, "$pixelWand")
}
|
The good news is that that's the same error. 👍🏻 It'll be fixed in one place. Let me know every error one you receive. Thanks!
I'm glad you're enjoying it! Also, as they say, 加油! 😄 |
Just a question, but have you installed objenesis as per the instructions on the main page? |
Also, does this example work for you? When I put this example up, I verified everything works 100% in it |
@MolotovCherry |
@MolotovCherry |
It looks fine to me from what I can tell. I'll have to do some local testing to see what (if anything) is going on. I'll report back when I have some time to |
Ok. Thank you very much for your reply. |
Sorry, I just started using your library.
Got some problems, maybe a little stupid.
After I compile it successfully, some functions can be used, and some functions cannot be used.
These are all JNI problems, I hope you can help me if you have time.
The text was updated successfully, but these errors were encountered: