jayway/maven-android-plugin-samples — pull request #46 by mosabua (2014-02-11 08:30:49+00:00)
Title: updated layout of library project app and all resources that are pulled ...

...in and updated the test accordingly, activated test even though it currently fails, this will serve as discussion base in the pull request and the mailing list

The app now looks like the screenshot in my Nexus 5.

![device-2014-02-11-002627](https://f.cloud.github.com/assets/145658/2135040/6d9b4516-92f6-11e3-8cf0-246b6a7cf73c.png)

Currently this fails so we need to figure out how to get instrumentation tests with Robotium to work again. Here is command line output I get

[INFO]
[INFO] --- android-maven-plugin:3.8.3-SNAPSHOT:internal-integration-test (default-internal-integration-test) @ libraryprojects-tests ---
[INFO] android.devices parameter not set, using all attached devices
[INFO] Device 03dd80410939aa47_LGE_Nexus5 found.
[INFO] 03dd80410939aa47_LGE_Nexus5 : Running instrumentation tests in com.jayway.maven.plugins.android.generation2.samples.libraryprojects.mainapp.tests
[INFO] 03dd80410939aa47_LGE_Nexus5 : Run started: com.jayway.maven.plugins.android.generation2.samples.libraryprojects.mainapp.tests, 1 tests:
[INFO] 03dd80410939aa47_LGE_Nexus5 : Start [1/1]: android.test.suitebuilder.TestSuiteBuilder$FailedToCreateTests#testSuiteConstructionFailed
[INFO] 03dd80410939aa47_LGE_Nexus5 : ERROR:android.test.suitebuilder.TestSuiteBuilder$FailedToCreateTests#testSuiteConstructionFailed
[INFO] 03dd80410939aa47_LGE_Nexus5 : java.lang.RuntimeException: Exception during suite construction
at android.test.suitebuilder.TestSuiteBuilder$FailedToCreateTests.testSuiteConstructionFailed(TestSuiteBuilder.java:238)
at java.lang.reflect.Method.invokeNative(Native Method)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176)
at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:554)
at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1701)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.constructNative(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at android.test.suitebuilder.TestMethod.instantiateTest(TestMethod.java:87)
at android.test.suitebuilder.TestMethod.createTest(TestMethod.java:73)
at android.test.suitebuilder.TestSuiteBuilder.addTest(TestSuiteBuilder.java:262)
at android.test.suitebuilder.TestSuiteBuilder.build(TestSuiteBuilder.java:184)
at android.test.InstrumentationTestRunner.onCreate(InstrumentationTestRunner.java:379)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4335)
at android.app.ActivityThread.access$1500(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NoClassDefFoundError: com.jayway.maven.plugins.android.generation2.samples.libraryprojects.mainapp.MainActivity
at com.jayway.maven.plugins.android.generation2.samples.libraryprojects.mainapp.MainActivityTest.(MainActivityTest.java:16)
... 18 more

[INFO] 03dd80410939aa47_LGE_Nexus5 : End [1/1]: android.test.suitebuilder.TestSuiteBuilder$FailedToCreateTests#testSuiteConstructionFailed
[INFO] 03dd80410939aa47_LGE_Nexus5 : Run ended: 11 ms
[ERROR] 03dd80410939aa47_LGE_Nexus5 : FAILURES!!!
[INFO] Tests run: 1, Failures: 0, Errors: 1
[INFO] 03dd80410939aa47_LGE_Nexus5 : Report file written to /Volumes/mac-data/dev/github/jayway/maven-android-plugin-samples/libraryprojects/libraryprojects-tests/target/surefire-reports/TEST-03dd80410939aa47_LGE_Nexus5.xml