TensorFlow-on-Android-for-Human-Activity-Recognition-with-LSTMs
TensorFlow-on-Android-for-Human-Activity-Recognition-with-LSTMs copied to clipboard
Android app crash
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 Have you solved this problem? Thank you.
@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