android - Unable to start main activity which has build by maven -


i had 3 proejct: parent, source , library project. problem following: after successful mvn install android:deploy android:run application get`s crash following message:

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 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] 

actually don`t know should there problem, appreciate help.

thanks, karoly

ps part of pom.xml

<plugin>             <groupid>com.jayway.maven.plugins.android.generation2</groupid>             <artifactid>android-maven-plugin</artifactid>             <version>3.2.0</version>             <configuration>                 <sign>                     <debug>true</debug>                 </sign>                 <androidmanifestfile>${project.basedir}/androidmanifest.xml</androidmanifestfile>                 <assetsdirectory>${project.basedir}/assets</assetsdirectory>                 <resourcedirectory>${project.basedir}/res</resourcedirectory>                 <sourcedirectory>${project.basedir}/src/main/java</sourcedirectory>                 <testsourcedirectory>${project.basedir}/src/test/java</testsourcedirectory>                 <sdk>                     <path>${android.sdk.path}</path>                     <platform>17</platform>                 </sdk>                 <deleteconflictingfiles>true</deleteconflictingfiles>                 <undeploybeforedeploy>false</undeploybeforedeploy>             </configuration>             <extensions>true</extensions>         </plugin> 

hi had solved problem: have parent project 2 modules , maven compiler 2.3.2, configuration tags set source , target 1.6. modile 1: library module 2 , apklib packaging modile 2: source code of app apk packaging.

-in module 1 , mobule 2 use src/main/java src folder , src/test/java test. -no eclipse dependeny in classpath between projects, maven one.

thx rciovati note version.


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

How to call a javascript function after the page loads with a chrome extension? -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -