2

I had add the .so file into my project, the path is 'src/main/jniLibs/armeabi/libAndroidIDCard.so'. The APK file is already contain this library at 'lib/armeabi/libAndroidIDCard.so'.

I load this library as follows:

static {
    System.loadLibrary("AndroidIDCard");
}

but got an 'java.lang.UnsatisfiedLinkError: Couldn't load AndroidIDCard from loader' Exception.

Why?

I have solved by add a 'armeabi-v7a' folder and put the '.so' file into it.

nuaa_tiger
  • 31
  • 1
  • 9
  • Maybe you're trying to run your APK on an x86 device or emulator? If that's the case, it will not work. – Dalmas Aug 04 '15 at 16:37
  • Do you see this library file at device/emulator? Is this lib compiled for your architecture? – Ibraim Ganiev Aug 04 '15 at 16:50
  • @Dalmas thank you! It was available on my device. It becomes unavailable when I updated the source code from svn. I don't know why~ – nuaa_tiger Aug 04 '15 at 16:58

1 Answers1

1

I have solved by add a 'armeabi-v7a' folder and put the '.so' file into it.

nuaa_tiger
  • 31
  • 1
  • 9