How do I import a native library (.so file) into Eclipse?

前端 未结 2 1178
耶瑟儿~
耶瑟儿~ 2020-11-28 16:11

I downloaded the Android PDF Viewer source code and am trying to compile it in Eclipse. Instead of messing with Cygwin and recompiling the native C libraries, my friend said

2条回答
  •  青春惊慌失措
    2020-11-28 17:05

    As mentioned another Stack Overflow thread about this topic switching off "Automatically refresh Resources and Assets folder on build" and "Force error when external jars contain native libraries" under Window/Preferences/Android/Build helps. At least it helped in my case!

    And don't forget to put the so-file in 'lib s/armeabi' to have it availible at runtime.

    Hope this helped others, also if it was too late for Li_W.

提交回复
热议问题