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

Unable to Instrument APK File

rishabh_yadav
Inactive

i was trying to instrument Dynatrace OneAgent on the android app and all the configuration as suggested are done correctly.

there are no errors in the log File as well but when we are running the command in the CMD then after rebuilding the APK package the Message is shown unable to instrument the APK.

and when i am checking the Log Files there are no error shown please help.

*this is a native app

Any Suggestions @Andreas G. @Christian S.

2 REPLIES 2

paul_schlagitwe
Dynatrace Helper
Dynatrace Helper

Hi Rishabh,
Can you enable the debug logging by setting the DTXLogLevel flag to 'debug' in the APK-Instr.properties file. Then please run it again and provide us the entire log file.
Thank you.

paul_schlagitwe
Dynatrace Helper
Dynatrace Helper

The log looks fine, it seems that the instrumentation process itself was successful but the instrument.cmd script failed to zipalign and sign the instrumented apk.
Can you please open a support ticket in order to get this issue fixed.

In the meantime can you check if you find an apk file in the 'yourAppName\dist' folder?
If so the instrumentation succeeded.
You can then zipalign your apk yourself: see

https://developer.android.com/studio/command-line/zipalign.html

Featured Posts