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

java.lang.RuntimeException: Missing type parameter at com.newrelic.agent.android.harvest.type.a$a.<init>(Unknown Source:0) #161

Closed
panchal-krunal opened this issue May 10, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@panchal-krunal
Copy link

panchal-krunal commented May 10, 2024

@ndesai-newrelic
After upgrading to RN 0.74.1 and add newrelic-react-native-agent, started getting run time crash issue on Android
Steps configured -

  • Added newrelic-react-native-agent@1.3.7
  • Added apply plugin: 'newrelic' in app/build.gradle
  • Added classpath "com.newrelic.agent.android:agent-gradle-plugin:7.3.0" in android/build.gradle
  • Synced gradle from Android Studio
  • Build Release APK
  • Checked on Emulator
  • Crash
    Error -
FATAL EXCEPTION: Firebase Blocking Thread #0
Process: com.xxx.ttt.qa, PID: 9546
java.lang.ExceptionInInitializerError
at com.newrelic.agent.android.stats.a.A(SourceFile:1)
at com.newrelic.agent.android.stats.a.y(SourceFile:1)
at com.newrelic.agent.android.distributedtracing.TraceContext.j(SourceFile:1)
at com.newrelic.agent.android.instrumentation.h.g(SourceFile:1)
at com.newrelic.agent.android.instrumentation.e.<init>(Unknown Source:28)
at com.newrelic.agent.android.instrumentation.i.a(SourceFile:1)
at com.google.firebase.installations.remote.c.l(SourceFile:1)
at com.google.firebase.installations.remote.c.d(SourceFile:1)
at com.google.firebase.installations.c.A(SourceFile:1)
at com.google.firebase.installations.c.i(SourceFile:1)
at com.google.firebase.installations.c.u(SourceFile:1)
at com.google.firebase.installations.c.d(SourceFile:1)
at c7.d.run(SourceFile:1)
at com.google.firebase.concurrent.SequentialExecutor$a.run(Unknown Source:2)
at com.google.firebase.concurrent.SequentialExecutor$b.a(SourceFile:1)
at com.google.firebase.concurrent.SequentialExecutor$b.run(Unknown Source:0)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
at com.google.firebase.concurrent.b.b(SourceFile:1)
at com.google.firebase.concurrent.b.a(SourceFile:1)
at com.google.firebase.concurrent.a.run(SourceFile:1)
at java.lang.Thread.run(Thread.java:1012)
                                                                                                    Caused by: java.lang.RuntimeException: Missing type parameter.
at w8.a.d(SourceFile:1)
at w8.a.<init>(SourceFile:1)
at com.newrelic.agent.android.harvest.type.a$a.<init>(Unknown Source:0)
at com.newrelic.agent.android.harvest.type.a.<clinit>(Unknown Source:2)
at com.newrelic.agent.android.stats.a.A(SourceFile:1) 
at com.newrelic.agent.android.stats.a.y(SourceFile:1) 
at com.newrelic.agent.android.distributedtracing.TraceContext.j(SourceFile:1) 
at com.newrelic.agent.android.instrumentation.h.g(SourceFile:1) 
at com.newrelic.agent.android.instrumentation.e.<init>(Unknown Source:28) 
at com.newrelic.agent.android.instrumentation.i.a(SourceFile:1) 
at com.google.firebase.installations.remote.c.l(SourceFile:1) 
at com.google.firebase.installations.remote.c.d(SourceFile:1) 
at com.google.firebase.installations.c.A(SourceFile:1) 
at com.google.firebase.installations.c.i(SourceFile:1) 
at com.google.firebase.installations.c.u(SourceFile:1) 
at com.google.firebase.installations.c.d(SourceFile:1) 
at c7.d.run(SourceFile:1) 
at com.google.firebase.concurrent.SequentialExecutor$a.run(Unknown Source:2) 
at com.google.firebase.concurrent.SequentialExecutor$b.a(SourceFile:1) 
at com.google.firebase.concurrent.SequentialExecutor$b.run(Unknown Source:0) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644) 
at com.google.firebase.concurrent.b.b(SourceFile:1) 
at com.google.firebase.concurrent.b.a(SourceFile:1) 
at com.google.firebase.concurrent.a.run(SourceFile:1) 
at java.lang.Thread.run(Thread.java:1012) 

NOTE - Debug APK works fine though, the problem is only on release APK at runtime.

@panchal-krunal panchal-krunal added the bug Something isn't working label May 10, 2024
@ndesai-newrelic
Copy link
Contributor

@panchal-krunal please check your proguard rules.

@panchal-krunal
Copy link
Author

Thanks @ndesai-newrelic its working now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants