<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: android instrumentation - finished with non-zero exit value 5 in Real User Monitoring</title>
    <link>https://community.dynatrace.com/t5/Real-User-Monitoring/android-instrumentation-finished-with-non-zero-exit-value-5/m-p/120735#M6662</link>
    <description>&lt;P&gt;Hey Alvin,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The auto-instrumentor was not able to read a file successfully. Based on the reported stacktrace it is not possible to determine which value in which file the auto-instrumentor was not able to determine.&lt;/P&gt;&lt;P&gt;Normally, we would recommend to create a support ticket with the debug logs. But in this case it is different, because you are using version 7.x. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We strongly recommend to upgrade to version 8.x. This version contains several new features and improvements. Auto-instrumentation works differently in version 8.x compared to version 7.x and will not be affected by the reported problem.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;official documentation: &lt;A rel="noopener noreferrer" href="https://www.dynatrace.com/support/help/technology-support/operating-systems/android/" target="_blank"&gt;https://www.dynatrace.com/support/help/technology-support/operating-systems/android/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;migration page: &lt;A rel="noopener noreferrer" href="https://www.dynatrace.com/support/help/technology-support/operating-systems/android/legacy-documentation/troubleshooting/migration/" target="_blank"&gt;https://www.dynatrace.com/support/help/technology-support/operating-systems/android/legacy-documentation/troubleshooting/migration/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jan 2021 09:12:01 GMT</pubDate>
    <dc:creator>Thomas_Wirth1</dc:creator>
    <dc:date>2021-01-19T09:12:01Z</dc:date>
    <item>
      <title>android instrumentation - finished with non-zero exit value 5</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/android-instrumentation-finished-with-non-zero-exit-value-5/m-p/120734#M6661</link>
      <description>&lt;P&gt;---18.680 FINE: APKit-C(1): Instrumenting all packages (for 3rd partyweb requests): true&lt;/P&gt;&lt;P&gt;---18.681 INFO: APKit-AdkInstrumentor(1): Dynatrace Auto-Instrumentation version 7.2.7.1233 for Android&lt;/P&gt;&lt;P&gt;---18.682 FINE: APKit-AdkInstrumentor(1): Unpacking APK and updating AndroidManifest.xml ...&lt;/P&gt;&lt;P&gt;---18.690 FINE: APKit-aG(14): ProcessStreamReader begins ...&lt;/P&gt;&lt;P&gt;---19.055 FINE: APKit-aG(14): ---18 AM brut.androlib.ApkDecoder decode&lt;/P&gt;&lt;P&gt;---19.055 FINE: APKit-aG(14): INFO: Using Apktool 2.3.3-ecb117-SNAPSHOT on app.apk&lt;/P&gt;&lt;P&gt;---19.075 FINE: APKit-aG(14): ---19 AM brut.androlib.res.AndrolibResources loadMainPkg&lt;/P&gt;&lt;P&gt;---19.075 FINE: APKit-aG(14): INFO: Loading resource table...&lt;/P&gt;&lt;P&gt;---19.652 FINE: APKit-aG(14): ---19 AM brut.androlib.res.AndrolibResources decodeManifestWithResources&lt;/P&gt;&lt;P&gt;---19.653 FINE: APKit-aG(14): INFO: Decoding AndroidManifest.xml with resources...&lt;/P&gt;&lt;P&gt;---19.668 FINE: APKit-aG(14): ---19 AM brut.androlib.res.AndrolibResources getFrameworkDir&lt;/P&gt;&lt;P&gt;---19.669 FINE: APKit-aG(14): SEVERE: WARNING: Could not write to (/Users/---/Library/apktool/framework), using /var/folders/z8/xmqgl87x7fnb91f7m34dw8300000gq/T/ instead...&lt;/P&gt;&lt;P&gt;---19.669 FINE: APKit-aG(14): ---19 AM brut.androlib.res.AndrolibResources getFrameworkDir&lt;/P&gt;&lt;P&gt;---19.670 FINE: APKit-aG(14): SEVERE: Please be aware this is a volatile directory and frameworks could go missing, please utilize --frame-path if the default storage directory is unavailable&lt;/P&gt;&lt;P&gt;---19.712 FINE: APKit-aG(14): ---19 AM brut.androlib.res.AndrolibResources loadFrameworkPkg&lt;/P&gt;&lt;P&gt;---19.713 FINE: APKit-aG(14): INFO: Loading resource table from file: /var/folders/z8/xmqgl87x7fnb91f7m34dw8300000gq/T/1.apk&lt;/P&gt;&lt;P&gt;---24.178 FINE: APKit-aG(14): ---24 AM brut.androlib.res.AndrolibResources adjustPackageManifest&lt;/P&gt;&lt;P&gt;---24.179 FINE: APKit-aG(14): INFO: Regular manifest package...&lt;/P&gt;&lt;P&gt;---24.180 FINE: APKit-aG(14): ---24 AM brut.androlib.res.AndrolibResources decode&lt;/P&gt;&lt;P&gt;---24.181 FINE: APKit-aG(14): INFO: Decoding file-resources...&lt;/P&gt;&lt;P&gt;---25.324 FINE: APKit-aG(14): ---25 AM sun.awt.SunDisplayChanger notifyListeners&lt;/P&gt;&lt;P&gt;---25.324 FINE: APKit-aG(14): FINEST: notifyListeners&lt;/P&gt;&lt;P&gt;---27.907 FINE: APKit-aG(14): Exception in thread "main" java.lang.NullPointerException&lt;/P&gt;&lt;P&gt;---27.908 FINE: APKit-aG(14): at java.base/java.util.regex.Matcher.getTextLength(Matcher.java:1770)&lt;/P&gt;&lt;P&gt;---27.909 FINE: APKit-aG(14): at java.base/java.util.regex.Matcher.reset(Matcher.java:416)&lt;/P&gt;&lt;P&gt;---27.909 FINE: APKit-aG(14): at java.base/java.util.regex.Matcher.&amp;lt;init&amp;gt;(Matcher.java:253)&lt;/P&gt;&lt;P&gt;---27.909 FINE: APKit-aG(14): at java.base/java.util.regex.Pattern.matcher(Pattern.java:1133)&lt;/P&gt;&lt;P&gt;---27.909 FINE: APKit-aG(14): at brut.androlib.res.data.value.ResStringValue.&amp;lt;init&amp;gt;(ResStringValue.java:46)&lt;/P&gt;&lt;P&gt;---27.910 FINE: APKit-aG(14): at brut.androlib.res.data.value.ResStringValue.&amp;lt;init&amp;gt;(ResStringValue.java:41)&lt;/P&gt;&lt;P&gt;---27.910 FINE: APKit-aG(14): at brut.androlib.res.data.value.ResValueFactory.factory(ResValueFactory.java:48)&lt;/P&gt;&lt;P&gt;---27.910 FINE: APKit-aG(14): at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:32)&lt;/P&gt;&lt;P&gt;---27.910 FINE: APKit-aG(14): at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:385)&lt;/P&gt;&lt;P&gt;---27.911 FINE: APKit-aG(14): at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(XmlPullParserDelegate.java:69)&lt;/P&gt;&lt;P&gt;---27.911 FINE: APKit-aG(14): at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)&lt;/P&gt;&lt;P&gt;---27.911 FINE: APKit-aG(14): at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)&lt;/P&gt;&lt;P&gt;---27.915 FINE: APKit-aG(14): at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamDecoder.java:83)&lt;/P&gt;&lt;P&gt;---27.916 FINE: APKit-aG(14): at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:141)&lt;/P&gt;&lt;P&gt;---27.918 FINE: APKit-aG(14): at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:33)&lt;/P&gt;&lt;P&gt;---27.918 FINE: APKit-aG(14): at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:136)&lt;/P&gt;&lt;P&gt;---27.919 FINE: APKit-aG(14): at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:120)&lt;/P&gt;&lt;P&gt;---27.920 FINE: APKit-aG(14): at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:260)&lt;/P&gt;&lt;P&gt;---27.921 FINE: APKit-aG(14): at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:131)&lt;/P&gt;&lt;P&gt;---27.922 FINE: APKit-aG(14): at brut.androlib.ApkDecoder.decode(ApkDecoder.java:142)&lt;/P&gt;&lt;P&gt;---27.922 FINE: APKit-aG(14): at brut.apktool.Main.cmdDecode(Main.java:168)&lt;/P&gt;&lt;P&gt;---27.922 FINE: APKit-aG(14): at brut.apktool.Main.main(Main.java:73)&lt;/P&gt;&lt;P&gt;---31.731 FINE: APKit-aG(14): ProcessStreamReader finished&lt;/P&gt;&lt;P&gt;---31.732 FINE: APKit-aG(1): syncExecProcess rc=1&lt;/P&gt;&lt;P&gt;---31.733 SEVERE: APKit-AdkInstrumentor(1): extracting the apk failed rc = 1&lt;/P&gt;&lt;P&gt;Throwable occurred: aC: extracting the apk failed rc = 1&lt;/P&gt;&lt;P&gt;at aG.a(SourceFile:199)&lt;/P&gt;&lt;P&gt;at aG.a(SourceFile:155)&lt;/P&gt;&lt;P&gt;at aG.a(SourceFile:150)&lt;/P&gt;&lt;P&gt;at v.a(SourceFile:142)&lt;/P&gt;&lt;P&gt;at e.f(SourceFile:181)&lt;/P&gt;&lt;P&gt;at e.&amp;lt;init&amp;gt;(SourceFile:88)&lt;/P&gt;&lt;P&gt;at a.&amp;lt;init&amp;gt;(SourceFile:27)&lt;/P&gt;&lt;P&gt;at com.dynatrace.android.instrumentation.AdkInstrumentor.c(SourceFile:337)&lt;/P&gt;&lt;P&gt;at com.dynatrace.android.instrumentation.AdkInstrumentor.main(SourceFile:247)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;_____________&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I see that there are errors that relates to Pattern and Matcher, but I don't think that is in my code right? Because I have been using that in the previous apk builds and I did not get this error before. Any help would be appreciated, thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 10:42:43 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/android-instrumentation-finished-with-non-zero-exit-value-5/m-p/120734#M6661</guid>
      <dc:creator>elalvin24</dc:creator>
      <dc:date>2021-01-19T10:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: android instrumentation - finished with non-zero exit value 5</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/android-instrumentation-finished-with-non-zero-exit-value-5/m-p/120735#M6662</link>
      <description>&lt;P&gt;Hey Alvin,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The auto-instrumentor was not able to read a file successfully. Based on the reported stacktrace it is not possible to determine which value in which file the auto-instrumentor was not able to determine.&lt;/P&gt;&lt;P&gt;Normally, we would recommend to create a support ticket with the debug logs. But in this case it is different, because you are using version 7.x. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We strongly recommend to upgrade to version 8.x. This version contains several new features and improvements. Auto-instrumentation works differently in version 8.x compared to version 7.x and will not be affected by the reported problem.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;official documentation: &lt;A rel="noopener noreferrer" href="https://www.dynatrace.com/support/help/technology-support/operating-systems/android/" target="_blank"&gt;https://www.dynatrace.com/support/help/technology-support/operating-systems/android/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;migration page: &lt;A rel="noopener noreferrer" href="https://www.dynatrace.com/support/help/technology-support/operating-systems/android/legacy-documentation/troubleshooting/migration/" target="_blank"&gt;https://www.dynatrace.com/support/help/technology-support/operating-systems/android/legacy-documentation/troubleshooting/migration/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 09:12:01 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/android-instrumentation-finished-with-non-zero-exit-value-5/m-p/120735#M6662</guid>
      <dc:creator>Thomas_Wirth1</dc:creator>
      <dc:date>2021-01-19T09:12:01Z</dc:date>
    </item>
  </channel>
</rss>

