I\'ve developed a Libgdx application and tested it on my Samsung Galaxy S3(4.1.2) where it is working great. I tried to test it on a Galaxy Grand(4.1.2) but it failed. In
I received the exact same error as the original post when I tried to load projects generated by libGDX into Android Studio:
> "caused by com.badlogic.gdx.utils.GdxRuntimeException couldn't load
> shared library 'gdx' for target: Linux, 32-bit"
After a bit of research (specifically www.badlogicgames.com/forum/viewtopic.php?f=11&t=9097), I found this excellent tutorial by evilEntity that showed how to import libGDX projects into Android Studio:
http://imgur.com/a/IBFIV.
I can't repeat the tutorial verbatim as it's both text and screenshots, but following the steps allowed me to import the generated projects with only the modifications listed in the tutorial:
Please note that I am repeating evilentity's answer here because it's in a different forum on a different site, and there's ample comments in Stack overflow indicating that it's bad form to simply post links to solutions on other sites.
Please also note that I am including this answer here as it was the error message contained in omarsafwany's question that was the key point for me, rather than the specific circumstances around his issue. Hopefully that's OK.
Details:
Uninstalled my app completely from the device and deployed it again. That solved the problem
I figured out what was the problem.It was working only on Samsung Galaxy S3 from the beginning with some C++ files being loaded and when I edited some of these files, I didn't build using ndk.So when trying to test on another mobile, the new modifications weren't applied. I built them and the application ran successfully.