Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JNI RegisterNatives called with pending exception java.lang.ClassNotFoundException: Didn't find class "org.audiostream.AudioIn" #37

Closed
iacoposk8 opened this issue Feb 25, 2021 · 4 comments

Comments

@iacoposk8
Copy link

Hi, I've created a Google colab so you can simply recreate the error.

My code is:

from audiostream import get_input
from android.permissions import request_permissions, Permission
request_permissions([Permission.RECORD_AUDIO])
def mic_callback(buf):
    print("got", len(buf))
print("KEYWORD_TO_SEARCH_IN_ADB_LOGCAT")
mic = get_input(callback=mic_callback)

but in adb logcat I read:

02-25 10:53:48.359 1299 1568 F org.test.myapp: java_vm_ext.cc:570] JNI DETECTED ERROR IN APPLICATION: JNI RegisterNatives called with pending exception java.lang.ClassNotFoundException: Didn't find class "org.audiostream.AudioIn" on path: DexPathList[[zip file "/data/app/org.test.myapp-VZcDiTQAVptYQlU1RG8YjQ==/base.apk"],nativeLibraryDirectories=[/data/app/org.test.myapp-VZcDiTQAVptYQlU1RG8YjQ==/lib/arm, /data/app/org.test.myapp-VZcDiTQAVptYQlU1RG8YjQ==/base.apk!/lib/armeabi-v7a, /system/lib, /system/product/lib]]

and then, the application crashed.

Thanks for your help. I believe that if we create a working google colab it can also be integrated into the homepage to be used as a starting point.

@adarsh1783
Copy link

getting the same error 😔
can someone please help us ?

@aod1310
Copy link

aod1310 commented Jul 2, 2021

hi, did you use buildozer for android application?

I solved this issue by copying java source directory of the audiostream package to dists/myapp/src/main/java/org
(it can be found in audiostream/audiostream/platform/android/org)

I don't know why buildozer didn't copy it to the dists directory.

@adarsh1783
Copy link

thanks bro, it worked.
Now If I am thinking about it looks that I should have thought of this.

@Julian-O
Copy link

Julian-O commented Dec 3, 2023

👋 We use the issue tracker exclusively for bug reports and feature requests.
However, this issue appears to be a support request. Please use our support channels to get help with the project.

Let us know if this comment was made in error, and we'll be happy to reopen the issue.

@Julian-O Julian-O closed this as not planned Won't fix, can't repro, duplicate, stale Dec 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants