18 Jan 2018 06:44 AM
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.
18 Jan 2018 07:03 AM
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.
18 Jan 2018 08:51 AM
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