TensorFlow-on-Android-for-Human-Activity-Recognition-with-LSTMs icon indicating copy to clipboard operation
TensorFlow-on-Android-for-Human-Activity-Recognition-with-LSTMs copied to clipboard

Android app crash

Open octavianmm opened this issue 5 years ago • 2 comments

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.

octavianmm avatar Feb 18 '20 14:02 octavianmm

@octavianmm Have you solved this problem? Thank you.

cumtchenchang avatar Dec 16 '20 02:12 cumtchenchang

@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

ouyangjunfei avatar Jan 14 '21 05:01 ouyangjunfei