Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ApkWithProvidedJarBuildExampleIT fails #617

Closed
mosabua opened this issue Mar 24, 2015 · 6 comments · Fixed by #625
Closed

ApkWithProvidedJarBuildExampleIT fails #617

mosabua opened this issue Mar 24, 2015 · 6 comments · Fixed by #625
Assignees

Comments

@mosabua
Copy link
Member

mosabua commented Mar 24, 2015

I had to disable this test since it keeps failing for me and I have not had time to dig into it. Seems to also fail with all older versions so this is a weird one for me. Maybe depends on the device or something.

I am testing with Nexus 5 running 5.1 for now.

@mosabua
Copy link
Member Author

mosabua commented Mar 24, 2015

There are a lot of warnings like this in the log

[INFO] warning: Ignoring InnerClasses attribute for an anonymous inner class
INFO that doesn't come with an
[INFO] associated EnclosingMethod attribute. This class was probably produced by a
[INFO] compiler that did not target the modern .class file format. The recommended
[INFO] solution is to recompile the class from source, using an up-to-date compiler
[INFO] and without specifying any "-target" type options. The consequence of ignoring
[INFO] this warning is that reflective operations on this class will incorrectly
[INFO] indicate that it is not an inner class.

but I am not sure if thats related to the failure.

@mosabua mosabua self-assigned this Mar 24, 2015
@mosabua
Copy link
Member Author

mosabua commented Mar 24, 2015

Still checking myself for now.

@mosabua
Copy link
Member Author

mosabua commented Mar 24, 2015

Getting

[ERROR] Failed to execute goal com.simpligility.maven.plugins:android-maven-plugin:4.1.2-SNAPSHOT:internal-integration-test (default-internal-integration-test) on project aar-child-test: 03dd80410939aa47_LGE_Nexus5 : Test run failed to complete: Instrumentation run failed due to 'java.lang.IncompatibleClassChangeError' -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.simpligility.maven.plugins:android-maven-plugin:4.1.2-SNAPSHOT:internal-integration-test (default-internal-integration-test) on project aar-child-test: 03dd80410939aa47_LGE_Nexus5 : Test run failed to complete: Instrumentation run failed due to 'java.lang.IncompatibleClassChangeError'
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:190)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at io.takari.maven.testing.executor.Embedded3xLauncher.run(Embedded3xLauncher.java:359)
at io.takari.maven.testing.executor.MavenExecution.execute(MavenExecution.java:50)
at com.jayway.maven.plugins.android.sample.ApkWithProvidedJarBuildExampleIT.buildInstall(ApkWithProvidedJarBuildExampleIT.java:54)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
at org.junit.rules.RunRules.evaluate(RunRules.java:20)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.junit.runners.Suite.runChild(Suite.java:127)
at org.junit.runners.Suite.runChild(Suite.java:26)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.ifedorenko.m2e.mavendev.junit.runtime.internal.RemoteTestRunner.run(RemoteTestRunner.java:43)
at com.ifedorenko.m2e.mavendev.junit.runtime.internal.RemoteTestRunner.main(RemoteTestRunner.java:30)
Caused by: org.apache.maven.plugin.MojoFailureException: 03dd80410939aa47_LGE_Nexus5 : Test run failed to complete: Instrumentation run failed due to 'java.lang.IncompatibleClassChangeError'
at com.jayway.maven.plugins.android.AbstractInstrumentationMojo$1.doWithDevice(AbstractInstrumentationMojo.java:377)
at com.jayway.maven.plugins.android.ScreenshotServiceWrapper.doWithDevice(ScreenshotServiceWrapper.java:56)
at com.jayway.maven.plugins.android.AbstractAndroidMojo$2.runDo(AbstractAndroidMojo.java:820)
at com.jayway.maven.plugins.android.AbstractAndroidMojo$DoThread.run(AbstractAndroidMojo.java:1318)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :aar-child-test
in the log

@mosabua
Copy link
Member Author

mosabua commented Mar 24, 2015

@simpligility/android-maven-plugins-core-committers or @secondsun or @ifedorenko .. any clue whats going on here. This used to work from all I know but something changed and I cant nail down yet what is causing the breakage.

I am on Java 7u75, Maven 3.2.5 or 3.3.1 and Nexus 5 with Android 5.1 ..

@ifedorenko
Copy link
Contributor

you sure this isn't android sdk change?

@secondsun
Copy link
Contributor

Will take a look when I'm less dayjob tastic :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants