AppDynamic casue java.lang.IllegalStateException: attempt to re-open an already-closed object: SQLiteDatabase

133 Views Asked by At

when I was working on android studio and enable the code obfuscation for the app enable the code obfuscation in build.gradle file

it returns error said :app:appDynamicProcessProguardMappingRelease cannot get property 'buildID on extra extention as it does not existenter image description here

after checking the community solutions from AppDynamics from here https://docs.appdynamics.com/appd/21.x/latest/en/end-user-monitoring/mobile-real-user-monitoring/instrument-android-applications/customize-the-android-build/configure-proguard-to-prevent-obfuscation-and-class-removal I added it in the proguard-rules.pro file after that, the build is fine and launched successed but app crashed with below errorerror message from logcat

Does anyone have some idea? Thanks so much

Expecting app do not crash

1

There are 1 best solutions below

1
Ingmar Boddington On

For correct working AppDynamics requires exceptions to obfuscation.

Update proguard-rules.pro with:

-keep class com.appdynamics.eumagent.runtime.DontObfuscate
-keep @com.appdynamics.eumagent.runtime.DontObfuscate class * { *; }

Reference: https://docs.appdynamics.com/appd/23.x/latest/en/end-user-monitoring/mobile-real-user-monitoring/instrument-android-applications/customize-the-android-build/configure-proguard-to-prevent-obfuscation-and-class-removal