It allows to execute application at near native performance on Android emulator
when using x86 system image, KVM enabled and GPU Acceleration.
don't forget to add this dependency in your project's pom.xml :
<dependency>
<groupId>com.badlogicgames.gdx</groupId>
<artifactId>gdx-platform</artifactId>
<version>${gdx.version}</version>
<classifier>natives-x86</classifier>
<scope>provided</scope>
</dependency>
<execution>
+ <id>x86-gdx</id>
+ <phase>process-resources</phase>
+ <goals><goal>wget</goal></goals>
+ <configuration>
+ <cacheDirectory>${project.build.directory}/download-cache/x86</cacheDirectory>
+ <url>${base.url}/x86/libgdx.so</url>
+ <outputDirectory>${project.build.directory}/x86</outputDirectory>
+ </configuration>
+ </execution>
+
+ <execution>
<id>armeabi-gdx</id>
<phase>process-resources</phase>
<goals><goal>wget</goal></goals>
<configuration>
<descriptors>
<descriptor>desktop.xml</descriptor>
+ <descriptor>x86.xml</descriptor>
<descriptor>armeabi.xml</descriptor>
<descriptor>armeabi-v7a.xml</descriptor>
<descriptor>ios.xml</descriptor>
--- /dev/null
+<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
+ <id>natives-x86</id>
+ <formats>
+ <format>jar</format>
+ </formats>
+ <includeBaseDirectory>false</includeBaseDirectory>
+ <fileSets>
+ <fileSet>
+ <directory>${project.build.directory}/x86</directory>
+ <outputDirectory>/</outputDirectory>
+ <includes>
+ <include>**</include>
+ </includes>
+ </fileSet>
+ </fileSets>
+</assembly>