Search code examples
javaandroideclipselibgdxshared-libraries

Can`t run on Android device, because of librabries


I'm launching a game on Android device and getting this error. I`m using up to date Android version, also libgdx.

The library 'jinput-platform-2.0.5-natives-linux.jar' contains native libraries that will not run on the device.
The following libraries were found:
libjinput-linux.so
libjinput-linux64.so

Please help me understand what may cause the problem.


Solution

  • *.so files are native assemblies that are built for a particular architecture. If those *.so files were not built for android (and it seems as if they are not given the error) they will not work.

    If there isn't a version for android already built, you can try to write an android version. This other SO question may be of assistance.