Unable to start main activity which has build by maven <p>I had three proejct: parent, source and a library project. My problem is the following: after successful mvn install android:deploy android:run the application get`s crash with the following message:</p> <pre><code>05-04 17:22:10.564: E/AndroidRuntime(6574): FATAL EXCEPTION: main 05-04 17:22:10.564: E/AndroidRuntime(6574): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.fruit.apple/com.fruit.apple.SplashScreenActivity}: java.lang.ClassNotFoundException: com.fruit.apple.SplashScreenActivity in loader dalvik.system.PathClassLoader[/system/framework/com.google.android.maps.jar:/mnt/asec/com.fruit.apple-1/pkg.apk] </code></pre> <p>Actually I don`t know what should be there problem, I really appreciate your help.</p> <p>Thanks, Karoly</p> <p>PS part of pom.xml</p> <pre><code>&lt;plugin&gt; &lt;groupId&gt;com.jayway.maven.plugins.android.generation2&lt;/groupId&gt; &lt;artifactId&gt;android-maven-plugin&lt;/artifactId&gt; &lt;version&gt;3.2.0&lt;/version&gt; &lt;configuration&gt; &lt;sign&gt; &lt;debug&gt;true&lt;/debug&gt; &lt;/sign&gt; &lt;androidManifestFile&gt;${project.basedir}/AndroidManifest.xml&lt;/androidManifestFile&gt; &lt;assetsDirectory&gt;${project.basedir}/assets&lt;/assetsDirectory&gt; &lt;resourceDirectory&gt;${project.basedir}/res&lt;/resourceDirectory&gt; &lt;sourceDirectory&gt;${project.basedir}/src/main/java&lt;/sourceDirectory&gt; &lt;testSourceDirectory&gt;${project.basedir}/src/test/java&lt;/testSourceDirectory&gt; &lt;sdk&gt; &lt;path&gt;${android.sdk.path}&lt;/path&gt; &lt;platform&gt;17&lt;/platform&gt; &lt;/sdk&gt; &lt;deleteConflictingFiles&gt;true&lt;/deleteConflictingFiles&gt; &lt;undeployBeforeDeploy&gt;false&lt;/undeployBeforeDeploy&gt; &lt;/configuration&gt; &lt;extensions&gt;true&lt;/extensions&gt; &lt;/plugin&gt; </code></pre>