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

Android app crash #4

Open
octavianmm opened this issue Feb 18, 2020 · 2 comments
Open

Android app crash #4

octavianmm opened this issue Feb 18, 2020 · 2 comments

Comments

@octavianmm
Copy link

Hi,

I'm trying to run the Android app in an Emulator on Android Studio 3.5.3 and it keeps crashing with the following error:

--------- beginning of crash
2020-02-18 15:58:39.090 10464-10464/io.github.introml.activityrecognition E/AndroidRuntime: FATAL EXCEPTION: main
Process: io.github.introml.activityrecognition, PID: 10464
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/io.github.introml.activityrecognition-86bWxYjBSIyeobB-tUsbNw==/base.apk"],nativeLibraryDirectories=[/data/app/io.github.introml.activityrecognition-86bWxYjBSIyeobB-tUsbNw==/lib/x86, /system/lib, /system/product/lib]]] couldn't find "libtensorflow_inference.so"

However from what I see the file is included in the project....
Any ideas? Thanks.

@cumtchenchang
Copy link

@octavianmm Have you solved this problem? Thank you.

@ouyangjunfei
Copy link

@cumtchenchang I possibly figured out. It's gradle and your Android phone version things. Because original author published this repo 4 years ago, the settings could be a little out of date.

You should probably add this to your app module build.properties

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

For more you can refer my repo

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