Android CI new relic errors

Hi

We see a lot of errors like the following in our logs. How do I go about figuring out the cause.

version 5.26.0

[11:26:11]: ▸ [newrelic.error] Unfortunately, an error has occurred while processing an unknown class. Please copy your build logs and the jar containing this class and visit [http://support.newrelic.com](http://support.newrelic.com/), thanks!

[11:26:11]: ▸ null

[11:26:11]: ▸ java.lang.IllegalArgumentException

[11:26:11]: ▸ at com.newrelic.org.objectweb.asm.ClassReader.<init>(Unknown Source)

[11:26:11]: ▸ at com.newrelic.org.objectweb.asm.ClassReader.<init>(Unknown Source)

[11:26:11]: ▸ at com.newrelic.agent.compile.InvocationDispatcher.visitClassBytesWithOptions(InvocationDispatcher.java:408)

[11:26:11]: ▸ at com.newrelic.agent.compile.InvocationDispatcher.visitClassBytes(InvocationDispatcher.java:401)

[11:26:11]: ▸ at com.newrelic.agent.compile.ClassTransformer.transformClassBytes(ClassTransformer.java:126)

[11:26:11]: ▸ at com.newrelic.agent.compile.ClassTransformer.processClassBytes(ClassTransformer.java:154)

[11:26:11]: ▸ at com.newrelic.agent.compile.ClassTransformer.transformArchive(ClassTransformer.java:330)

[11:26:11]: ▸ at com.newrelic.agent.compile.ClassTransformer.transformArchive(ClassTransformer.java:246)

[11:26:11]: ▸ at com.newrelic.agent.compile.ClassTransformer$transformArchive$1.call(Unknown Source)

[11:26:11]: ▸ at com.newrelic.agent.android.NewRelicTransform$_transform_closure2$_closure4.doCall(NewRelicTransform.groovy:240)

[11:26:11]: ▸ at jdk.internal.reflect.GeneratedMethodAccessor1192.invoke(Unknown Source)

[11:26:11]: ▸ at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

[11:26:11]: ▸ at java.base/java.lang.reflect.Method.invoke(Method.java:566)

[11:26:11]: ▸ at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:101)

[11:26:11]: ▸ at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323)

[11:26:11]: ▸ at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:263)

[11:26:11]: ▸ at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1041)

[11:26:11]: ▸ at groovy.lang.Closure.call(Closure.java:405)

[11:26:11]: ▸ at groovy.lang.Closure.call(Closure.java:421)

[11:26:11]: ▸ at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2330)

[11:26:11]: ▸ at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2315)

[11:26:11]: ▸ at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2356)

[11:26:11]: ▸ at org.codehaus.groovy.runtime.dgm$186.invoke(Unknown Source)

[11:26:11]: ▸ at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:244)

[11:26:11]: ▸ at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53)

[11:26:11]: ▸ at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:127)

[11:26:11]: ▸ at com.newrelic.agent.android.NewRelicTransform$_transform_closure2.doCall(NewRelicTransform.groovy:227)

[11:26:11]: ▸ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

[11:26:11]: ▸ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

[11:26:11]: ▸ at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

[11:26:11]: ▸ at java.base/java.lang.reflect.Method.invoke(Method.java:566)

[11:26:11]: ▸ at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:101)

[11:26:11]: ▸ at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323)

[11:26:11]: ▸ at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:263)

[11:26:11]: ▸ at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1041)

[11:26:11]: ▸ at groovy.lang.Closure.call(Closure.java:405)

[11:26:11]: ▸ at groovy.lang.Closure.call(Closure.java:421)

[11:26:11]: ▸ at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2330)

[11:26:11]: ▸ at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2315)

[11:26:11]: ▸ at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2356)

[11:26:11]: ▸ at org.codehaus.groovy.runtime.dgm$186.invoke(Unknown Source)

[11:26:12]: ▸ at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:244)

[11:26:12]: ▸ at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53)

[11:26:12]: ▸ at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:127)

[11:26:12]: ▸ at com.newrelic.agent.android.NewRelicTransform.transform(NewRelicTransform.groovy:193)

[11:26:12]: ▸ at com.android.build.api.transform.Transform.transform(Transform.java:314)

[11:26:12]: ▸ at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:284)

[11:26:12]: ▸ at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:247)

[11:26:12]: ▸ at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:106)

[11:26:12]: ▸ at com.android.build.gradle.internal.pipeline.TransformTask.transform(TransformTask.java:242)

[11:26:12]: ▸ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

[11:26:12]: ▸ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

[11:26:12]: ▸ at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

[11:26:12]: ▸ at java.base/java.lang.reflect.Method.invoke(Method.java:566)

[11:26:12]: ▸ at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:104)

[11:26:12]: ▸ at org.gradle.api.internal.project.taskfactory.IncrementalTaskInputsTaskAction.doExecute(IncrementalTaskInputsTaskAction.java:47)

[11:26:12]: ▸ at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:51)

[11:26:12]: ▸ at org.gradle.api.internal.project.taskfactory.AbstractIncrementalTaskAction.execute(AbstractIncrementalTaskAction.java:25)

[11:26:12]: ▸ at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:29)

[11:26:12]: ▸ at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$3.run(ExecuteActionsTaskExecuter.java:570)

[11:26:12]: ▸ at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:395)

[11:26:12]: ▸ at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:387)

[11:26:12]: ▸ at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:157)

[11:26:12]: ▸ at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:242)

[11:26:12]: ▸ at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:150)

[11:26:12]: ▸ at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:84)

[11:26:12]: ▸ at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)

[11:26:12]: ▸ at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:555)

[11:26:12]: ▸ at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:538)

[11:26:12]: ▸ at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.access$300(ExecuteActionsTaskExecuter.java:109)

[11:26:12]: ▸ at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution.executeWithPreviousOutputFiles(ExecuteActionsTaskExecuter.java:279)

[11:26:12]: ▸ at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution.execute(ExecuteActionsTaskExecuter.java:268)

[11:26:12]: ▸ at org.gradle.internal.execution.steps.ExecuteStep.lambda$execute$0(ExecuteStep.java:32)

[11:26:12]: ▸ at java.base/java.util.Optional.map(Optional.java:265)

[11:26:12]: ▸ at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:32)

[11:26:12]: ▸ at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:26)

[11:26:12]: ▸ at org.gradle.internal.execution.steps.CleanupOutputsStep.execute(CleanupOutputsStep.java:67)

[11:26:12]: ▸ at org.gradle.internal.execution.steps.CleanupOutputsStep.execute(CleanupOutputsStep.java:36)

[11:26:12]: ▸ at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:49)

[11:26:12]: ▸ at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:34)

[11:26:12]: ▸ at org.gradle.internal.execution.steps.CancelExecutionStep.execute(CancelExecutionStep.java:43)

[11:26:12]: ▸ at org.gradle.internal.execution.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:73)

[11:26:12]: ▸ at org.gradle.internal.execution.steps.TimeoutStep.execute(TimeoutStep.java:54)

[11:26:12]: ▸ at org.gradle.internal.execution.steps.CatchExceptionStep.execute(CatchExceptionStep.java:34)

[11:26:12]: ▸ at org.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:44)

[11:26:12]: ▸ at org.gradle.internal.execution.steps.SnapshotOutputsStep.execute(SnapshotOutputsStep.java:54)

[11:26:12]: ▸ at org.gradle.internal.execution.steps.SnapshotOutputsStep.execute(SnapshotOutputsStep.java:38)

[11:26:12]: ▸ at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:49)

[11:26:12]: ▸ at org.gradle.internal.execution.steps.CacheStep.executeWithoutCache(CacheStep.java:159)

[11:26:12]: ▸ at org.gradle.internal.execution.steps.CacheStep.execute(CacheStep.java:72)

[11:26:12]: ▸ at org.gradle.internal.execution.steps.CacheStep.execute(CacheStep.java:43)

[11:26:12]: ▸ at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:44)

[11:26:12]: ▸ at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:33)

[11:26:12]: ▸ at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:38)

[11:26:12]: ▸ at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:24)

[11:26:12]: ▸ at org.gradle.internal.execution.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:92)

[11:26:12]: ▸ at org.gradle.internal.execution.steps.SkipUpToDateStep.lambda$execute$0(SkipUpToDateStep.java:85)

[11:26:12]: ▸ at java.base/java.util.Optional.map(Optional.java:265)

[11:26:12]: ▸ at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:55)

[11:26:12]: ▸ at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:39)

[11:26:12]: ▸ at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:76)

[11:26:12]: ▸ at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:37)

[11:26:12]: ▸ at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:36)

[11:26:12]: ▸ at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:26)

[11:26:12]: ▸ at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:94)

[11:26:12]: ▸ at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:49)

[11:26:12]: ▸ at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:79)

[11:26:12]: ▸ at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:53)

[11:26:12]: ▸ at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:74)

[11:26:12]: ▸ at org.gradle.internal.execution.steps.SkipEmptyWorkStep.lambda$execute$2(SkipEmptyWorkStep.java:78)

[11:26:12]: ▸ at java.base/java.util.Optional.orElseGet(Optional.java:369)

[11:26:12]: ▸ at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:78)

[11:26:12]: ▸ at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:34)

[11:26:12]: ▸ at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsStartedStep.execute(MarkSnapshottingInputsStartedStep.java:39)

[11:26:12]: ▸ at org.gradle.internal.execution.steps.LoadExecutionStateStep.execute(LoadExecutionStateStep.java:40)

[11:26:12]: ▸ at org.gradle.internal.execution.steps.LoadExecutionStateStep.execute(LoadExecutionStateStep.java:28)

[11:26:12]: ▸ at org.gradle.internal.execution.impl.DefaultWorkExecutor.execute(DefaultWorkExecutor.java:33)

[11:26:12]: ▸ at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:195)

[11:26:12]: ▸ at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:187)

[11:26:12]: ▸ at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:114)

[11:26:12]: ▸ at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)

[11:26:12]: ▸ at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:62)

[11:26:12]: ▸ at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)

[11:26:12]: ▸ at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56)

[11:26:12]: ▸ at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)

[11:26:12]: ▸ at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)

[11:26:12]: ▸ at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)

[11:26:12]: ▸ at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)

[11:26:12]: ▸ at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:409)

[11:26:12]: ▸ at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:399)

[11:26:12]: ▸ at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:157)

[11:26:12]: ▸ at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:242)

[11:26:12]: ▸ at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:150)

[11:26:12]: ▸ at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:94)

[11:26:12]: ▸ at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)

[11:26:12]: ▸ at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)

[11:26:12]: ▸ at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:41)

[11:26:12]: ▸ at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:372)

[11:26:12]: ▸ at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:359)

[11:26:12]: ▸ at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:352)

[11:26:12]: ▸ at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:338)

[11:26:12]: ▸ at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.lambda$run$0(DefaultPlanExecutor.java:127)

[11:26:12]: ▸ at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:191)

[11:26:12]: ▸ at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:182)

[11:26:12]: ▸ at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:124)

[11:26:12]: ▸ at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)

[11:26:12]: ▸ at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)

[11:26:12]: ▸ at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)

[11:26:12]: ▸ at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)

[11:26:12]: ▸ at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)

[11:26:12]: ▸ at java.base/java.lang.Thread.run(Thread.java:834)
1 Like

Is the build still successful (despite the errors)?

This looks like it could be related to an issue that was addressed in the latest Android agent release, 5.27.0.

Can you try this agent version and check if the errors are still present?

Release Notes Here

1 Like

Will do, thanks…

@dmurray I’ve encountered the same issue as @mshearer but using agent version 5.27.0 is not solving the problem in my case. Any other suggestions?

I don’t think you’re alone, and we are currently investigating. What versions are you using of AGP, Gradle, and (if you are using) Kotlin?

My current setup:

  • AGP version: 4.0.1
  • Gradle version: 6.1.1
  • Kotlin version: 1.4.0

Hi Michal,

This appears to be related to a compatibility issue with Kotlin version 1.4.0 and our agent. Downgrading to Kotlin version 1.3.72 would prevent the error from showing up; however, the error itself is benign by all accounts so far and should not affect the performance of the agent or app. It should be addressed in a future version of our Android agent (or possibly a future version of Kotlin). Certainly let us know if you are seeing any impact of this error, other than cluttering up your logs!

Best regards,

Jeff Barker
Technical Support Engineer
New Relic