Hi guys,
I am using the maven-android-plugin v4.3.0 to build my really small demo-app (only application-stub, almost no code), ending up in a strange problem: Installation fails with error INSTALL_FAILED_DEXOPT. This only happens if the multiDex-option is set to true.
I´ve found many discussions where the problem was solved by using version 14 as minimumSDK-version. This doesn´t work for me. Here are my settings:
AndroidManifest.xml:
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="19" />
pom.xml:
<dependency>
<groupId>com.google.android</groupId>
<artifactId>android</artifactId>
<version>4.1.1.4</version>
<scope>provided</scope>
</dependency>
.............
<plugin>
<groupId>com.simpligility.maven.plugins</groupId>
<artifactId>android-maven-plugin</artifactId>
<version>4.3.0</version>
<extensions>true</extensions>
<configuration>
<sdk>
<platform>19</platform>
<path>C:/android-sdks</path>
</sdk>
<apk>
<metaIncludes>
<metaInclude>services/**</metaInclude>
</metaIncludes>
</apk>
<dex>
<jvmArguments>
<jvmArgument>-Xms256m</jvmArgument>
<jvmArgument>-Xmx4096m</jvmArgument>
</jvmArguments>
<multiDex>true</multiDex>
</dex>
<extractDuplicates>true</extractDuplicates>
<androidManifestFile>${project.basedir}/AndroidManifest.xml</androidManifestFile>
<resourceDirectory>${project.basedir}/res</resourceDirectory>
<assetsDirectory>${project.basedir}/assets</assetsDirectory>
</configuration>
</plugin>
Any suggestions?
Many thanks and best regards!
Markus ;)