1

My app is running well when I added it in data/app location but when I pushed it in system/app it's not working properly, it throws the error

08-08 05:15:35.451: E/VLC/LibVLC(5116): Can't load vlcjni library: java.lang.UnsatisfiedLinkError: Couldn't load vlcjni from loader 
dalvik.system.PathClassLoader[dexPath=/system/app/myapp.apk,libraryPath=/data/app-lib/myapp]: findLibrary returned null

I have successfully compiled libVlc for android and it's working fine except I mentioned above. Do I need to sign the myapp.apk with firmware key? Or is there any set of permissions that I need to add?

Rahul Matte
  • 1,151
  • 2
  • 23
  • 54
  • Can you trying pushing your vlcjni lib to /system/lib and try again after rebooting. – AnkitSomani Aug 07 '14 at 21:33
  • nice idea..but don't know how? because vlc is precompiled library I know how to use it in application lib but don't know how to use it in system lib – Rahul Matte Aug 07 '14 at 21:46
  • If this is precompiled *.so file, then push in /system/lib/ folder of device and inside your android.mk file add following lines LOCAL_STATIC_LIBRARIES := vlcjni include $(BUILD_SHARED_LIBRARY) – AnkitSomani Aug 07 '14 at 21:52
  • @AnkitSomani LOCAL_STATIC_LIBRARIES := vlcjni include $(BUILD_SHARED_LIBRARY) where to add this at the start or end – Rahul Matte Aug 07 '14 at 21:55
  • End of the file should be good. – AnkitSomani Aug 07 '14 at 22:00
  • @AnkitSomani android.mk file has LOCAL_MODULE := libvlcjni can I put LOCAL_STATIC_LIBRARIES := libvlcjni include $(BUILD_SHARED_LIBRARY) instead LOCAL_STATIC_LIBRARIES := vlcjni include $(BUILD_SHARED_LIBRARY) – Rahul Matte Aug 07 '14 at 22:02
  • Let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/58918/discussion-between-rahul-matte-and-ankitsomani). – Rahul Matte Aug 07 '14 at 22:41

0 Answers0