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

This product reached the end of support date on March 31, 2021.

Error:Execution failed for task ':app: >/app/build/tmp/prepareApkit/dynatrace-mobile-agent-android-7.0.16.1015/Android/auto-instrumentor/instrument.sh'' finished with non-zero exit value 5

parupallysr
Newcomer
 
5 REPLIES 5

Thomas_Wirth1
Dynatrace Pro
Dynatrace Pro

Hi Suresh,

The Dynatrace Gradle plugin calls the auto-instrumentor and therefore executes the instrument.sh script. In your case the auto-instrumentor was not able to instrument the APK file successfully and therefore the Dynatrace Gradle plugin has canceled your build. When you have triggered the build via the Run button from Android Studio, then you should see the error message from the auto-instrumentor in the Gradle Console. You find this view in the lower right corner or via View -> Tool Windows -> Gradle Console.


Best regards

Thomas

amantat
Newcomer

I am also running with same issue, does any have the fix for this.

cesar_saravia2
Inactive

I'm also running with same issue, does any have the fix for this?

paul_schlagitwe
Dynatrace Participant
Dynatrace Participant

Hi Cesar, hi Aman,
there can be numerous reasons why the auto-instrumentor stops.
Please see the log output in the Gradle console as Thomas described.
If you need help, please share the log output.

Best regards,
Paul

jian_luo
Newcomer

Turn off Instant Run,

Android Studio - Preferences - Build - Instant Run