cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Android AppDynamics plugin (22.2.2 latest at the moment) does not work with latest Android Gradle Plugin (7.2.1)

App compilation passed successfully but fire a runtime exception

2022-06-27 13:57:02.201 5632-5632/my.package.name E/AndroidRuntime: FATAL EXCEPTION: main
Process: my.package.name, PID: 5632
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/appdynamics/eumagent/runtime/networkrequests/OkHttp3$OkHttpClient$Constructor$INIT;
at okhttp3.OkHttpClient$Builder.build(Unknown Source:2)
at my.package.name.dagger.ServiceFactoryModule.provideOkHttpClient(SourceFile:7)
at my.package.name.dagger.ServiceFactoryModule_ProvideOkHttpClientFactory.provideOkHttpClient(Unknown Source:0)
at my.package.name.application.DaggerMyAppApplication_HiltComponents_SingletonC$SwitchingProvider.get0(SourceFile:99)
at my.package.name.application.DaggerMyAppApplication_HiltComponents_SingletonC$SwitchingProvider.get(SourceFile:9)
at hf.b.get(SourceFile:5)
at my.package.name.application.DaggerMyAppApplication_HiltComponents_SingletonC$SwitchingProvider.get1(SourceFile:92)
at my.package.name.application.DaggerMyAppApplication_HiltComponents_SingletonC$SwitchingProvider.get(SourceFile:8)
at hf.b.get(SourceFile:5)
at my.package.name.application.DaggerMyAppApplication_HiltComponents_SingletonC.injectMyAppApplication2(SourceFile:4)
at my.package.name.application.DaggerMyAppApplication_HiltComponents_SingletonC.injectMyAppApplication(Unknown Source:0)
at my.package.name.application.Hilt_MyAppApplication.onCreate(SourceFile:1)
at my.package.name.application.MyAppApplication.onCreate(SourceFile:1)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1182)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6460)
at android.app.ActivityThread.access$1300(ActivityThread.java:219)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1859)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
Caused by: java.lang.ClassNotFoundException: com.appdynamics.eumagent.runtime.networkrequests.OkHttp3$OkHttpClient$Constructor$INIT
at okhttp3.OkHttpClient$Builder.build(Unknown Source:2) 
at my.package.name.dagger.ServiceFactoryModule.provideOkHttpClient(SourceFile:7) 
at my.package.name.dagger.ServiceFactoryModule_ProvideOkHttpClientFactory.provideOkHttpClient(Unknown Source:0) 
at my.package.name.application.DaggerMyAppApplication_HiltComponents_SingletonC$SwitchingProvider.get0(SourceFile:99) 
at my.package.name.application.DaggerMyAppApplication_HiltComponents_SingletonC$SwitchingProvider.get(SourceFile:9) 
at hf.b.get(SourceFile:5) 
at my.package.name.application.DaggerMyAppApplication_HiltComponents_SingletonC$SwitchingProvider.get1(SourceFile:92) 
at my.package.name.application.DaggerMyAppApplication_HiltComponents_SingletonC$SwitchingProvider.get(SourceFile:8) 
at hf.b.get(SourceFile:5) 
at my.package.name.application.DaggerMyAppApplication_HiltComponents_SingletonC.injectMyAppApplication2(SourceFile:4) 
at my.package.name.application.DaggerMyAppApplication_HiltComponents_SingletonC.injectMyAppApplication(Unknown Source:0) 
at my.package.name.application.Hilt_MyAppApplication.onCreate(SourceFile:1) 
at my.package.name.application.MyAppApplication.onCreate(SourceFile:1) 
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1182) 
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6460) 
at android.app.ActivityThread.access$1300(ActivityThread.java:219) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1859) 
at android.os.Handler.dispatchMessage(Handler.java:107) 
at android.os.Looper.loop(Looper.java:214) 
at android.app.ActivityThread.main(ActivityThread.java:7356) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930) 
2022-06-27 13:57:04.477 1840-5714/? E/ResolverController: No valid NAT64 prefix (101, <unspecified>/0)
2022-06-27 13:57:04.822 1840-5715/? E/ResolverController: No valid NAT64 prefix (101, <unspecified>/0)
2022-06-27 13:57:06.371 5632-5677/my.package.name E/FirebaseInstanceId: Failed to get FIS auth token

Before AGP version update :myapp:transformClassesWithAppDynamicsForRelease task was successful without any warning.

After the AGP plugin update it is giving a warning from R8

 

>  WARNING:R8: Missing class com.appdynamics.eumagent.runtime.networkrequests.OkHttp3$Request$Builder$build (referenced from: okhttp3.Request 

 

 

 

13 REPLIES 13

@Ryan.Paredez 

I don't know whats wrong with my permissions for support portal but

```

Permission Denied

You are trying to access an AppDynamics Resource but you don't have the required permissions. Sign in with a different user account.

```

Ryan.Paredez
Community Manager

Hi @Konstantin.Aksenov,

Sorry about that. Please check out this TKB article: https://community.appdynamics.com/t5/Knowledge-Base/A-guide-to-AppDynamics-help-resources/ta-p/42353

There is a section about contacting support. I think you'll need your AppD Admin to give you the correct permissions. 


Thanks,

Ryan, Cisco AppDynamics Community Manager




Found something helpful? Click the Accept as Solution button to help others find answers faster.

Liked something? Click the Thumbs Up button.



Check out Observabiity in Action

new deep dive videos weekly in the Knowledge Base.

Ryan.Paredez
Community Manager

Hi @Konstantin.Aksenov,

I wanted to confirm if you were able to Access the AppD Support portal and create a ticket for this issue? 

@Tony.Zhang was unable to reproduce the issue. Contacting support and troubleshooting more with them will get more details in the hands of our engineers. 


Thanks,

Ryan, Cisco AppDynamics Community Manager




Found something helpful? Click the Accept as Solution button to help others find answers faster.

Liked something? Click the Thumbs Up button.



Check out Observabiity in Action

new deep dive videos weekly in the Knowledge Base.

Hello folks

Please upgrade the AndroidGradlePlugin to 7.2.2 version.

 
Best regards,
Gelinski