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

Dependency on armeabi-v7a reports an error #30

Open
cl-6666 opened this issue Dec 13, 2024 · 6 comments
Open

Dependency on armeabi-v7a reports an error #30

cl-6666 opened this issue Dec 13, 2024 · 6 comments

Comments

@cl-6666
Copy link

cl-6666 commented Dec 13, 2024

When the main project depends on armeabi-v7a, it crashes directly. Silero is used.
ndk {
abiFilters "armeabi-v7a"
}

@gkonovalov
Copy link
Owner

You need specify next code:

defaultConfig { ndk { abiFilters "armeabi-v7a" } }

@cl-6666
Copy link
Author

cl-6666 commented Dec 14, 2024

I tried the method you mentioned above, but it still crashed. My gradle configuration is as follows
image
image
image
image
依赖版本是这个: implementation 'com.github.gkonovalov.android-vad:silero:2.0.7'

@gkonovalov gkonovalov reopened this Dec 14, 2024
@gkonovalov
Copy link
Owner

I will try to reproduce it from my side, but looks like crash in ONNX Runtime library.

@gkonovalov
Copy link
Owner

I see you are using old Gradle version. You probably need to update it.

@cl-6666
Copy link
Author

cl-6666 commented Dec 17, 2024

我发现你正在使用旧版 Gradle。你可能需要更新它。

Because the project is relatively old, is it compatible with the old Gradle version? I found that there is no problem using this architecture ndk {abiFilters "arm64-v8a"}, but using this architecture will report an error ndk {abiFilters "armeabi-v7a"}

@gavine99
Copy link

i had the same issue ... this fixed it for me; https://onnxruntime.ai/docs/build/android.html#note-proguard-rules-for-r8-minimization-android-app-builds-to-work.
TLDR; add "-keep class ai.onnxruntime.** { *; }" to proguard-rules.pro file to stop selected entry points being minified away when 'minifyEnabled true' in release builds.

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

3 participants