By default, IntelliJ assumes that the libs folder in the root of an Android module contains native libraries, even if it just holds jars. Thus, it packages the APK making it look like these are native libraries. I just had a similar issue where my application had no native code and would work on the default emulator, but got the ABI warning when installing on the Genymotion emulator. To fix this, tell IntelliJ (or Android Studio) that your libraries are not native code:
- Open
File -> Project Structure. - Click
Moduleson the left side of the window. - For each Android module, expand the dropdown and select the
Androidsubitem. - In the
Structuretab on the right, delete contents of theNative libs directoryfield (you can leave it blank). - Once you’ve done this for each Android module in the project and applied the changes, you may need to rebuild your project for the changes to take place by choosing
Build -> Rebuild Projectfrom IntelliJ’s global menu.