<?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 SDK Code Coverage Generation Issue in AppD Archive</title>
    <link>https://community.splunk.com/t5/AppD-Archive/Android-SDK-Code-Coverage-Generation-Issue/m-p/736897#M5621</link>
    <description>&lt;P&gt;Hi Eric,&lt;/P&gt;

&lt;P&gt;Please find our response from our Dev team regarding your query:&lt;/P&gt;

&lt;DIV&gt;"Unfortunately our plugin automatically runs for both debug and release builds. I don't see an easy way around it without providing a custom build for the customer.&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Besides the customer's response does not mention under which element '&lt;SPAN style="color: #666666; font-family: Arial; font-size: 12px; line-height: 15px;"&gt;configurations.classpath.&lt;WBR /&gt;resolutionStrategy.force(&lt;/SPAN&gt;&lt;SPAN style="color: #666666; font-family: Arial; font-size: 12px; line-height: 15px;"&gt;'com.&lt;WBR /&gt;android.tools.build:gradle:0.&lt;WBR /&gt;13.2')" was applied. It has to be inside the 'buildscript' element.&lt;/SPAN&gt;"&lt;/DIV&gt;

&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Arun&lt;/P&gt;</description>
    <pubDate>Sat, 29 Nov 2014 13:45:53 GMT</pubDate>
    <dc:creator>Arun_Dasetty</dc:creator>
    <dc:date>2014-11-29T13:45:53Z</dc:date>
    <item>
      <title>Android SDK Code Coverage Generation Issue</title>
      <link>https://community.splunk.com/t5/AppD-Archive/Android-SDK-Code-Coverage-Generation-Issue/m-p/736892#M5616</link>
      <description>&lt;P&gt;After integrating the AppDynamics Android SDK, we're no longer able to generate code coverage reports when doing a build with the command line below:&lt;/P&gt;

&lt;P&gt;./gradlew&amp;nbsp;clean build connectedAndroidTest createDebugCoverageReport&lt;/P&gt;

&lt;P&gt;Running that command-line results in the error below. &amp;nbsp;I confirmed that all our tests are passing, and if I remove AppDynamics entirely, everything works properly again.&lt;/P&gt;

&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;:app:connectedAndroidTest&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;03:15:41 E/Device: Error during Sync: Remote object doesn't exist!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;null&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;java.io.IOException: Failed to pull /data/data/&amp;lt;app_package&amp;gt;/coverage.ec from device&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;at com.android.builder.testing.ConnectedDevice.pullFile(ConnectedDevice.java:114)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;at com.android.builder.internal.testing.SimpleTestCallable.call(SimpleTestCallable.java:185)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;at com.android.builder.internal.testing.SimpleTestCallable.call(SimpleTestCallable.java:48)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;at java.util.concurrent.FutureTask.run(FutureTask.java:262)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;at java.util.concurrent.FutureTask.run(FutureTask.java:262)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;at java.lang.Thread.run(Thread.java:745)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Caused by: com.android.ddmlib.SyncException: Remote object doesn't exist!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;at com.android.ddmlib.SyncService.pullFile(SyncService.java:314)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;at com.android.ddmlib.Device.pullFile(Device.java:874)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;at com.android.builder.testing.ConnectedDevice.pullFile(ConnectedDevice.java:107)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;... 8 more&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;:app:connectedAndroidTest &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;FAILED&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Our build uses the Android 21.0.2 build tools, Gradle 2.1, and the Android Tools Gradle Plugin version 0.13.2. &amp;nbsp;To reproduce, the following are needed:&amp;nbsp;an Android project which has tests, an Android virtual device emulator running at the time when the build is executed, and "testCoverageEnabled true" added to the "android { buildTypes { debug {" section of the app's build.gradle file.&lt;/P&gt;

&lt;P&gt;Are there any recommendations to work around this so that we can continue to have code coverage reports?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Nov 2014 23:31:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/AppD-Archive/Android-SDK-Code-Coverage-Generation-Issue/m-p/736892#M5616</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2014-11-11T23:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Android SDK Code Coverage Generation Issue</title>
      <link>https://community.splunk.com/t5/AppD-Archive/Android-SDK-Code-Coverage-Generation-Issue/m-p/736893#M5617</link>
      <description>&lt;P&gt;Hi Eric,&lt;/P&gt;

&lt;P&gt;While Mobile team got chance to look into this issue, see if the below information helps:&lt;/P&gt;
&lt;P&gt;- from exception message it looks like&amp;nbsp;the env. variable app_package is not retrieved and check the file &lt;SPAN&gt;&amp;lt;app_package&amp;gt;/coverage.ec&amp;nbsp;&lt;/SPAN&gt;exists or not&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Few related forum links:&lt;/P&gt;
&lt;P&gt;-&amp;nbsp;&lt;A href="http://stackoverflow.com/questions/14301645/java-app-package-pathname-variable-not-working" target="_blank" rel="nofollow noopener noreferrer"&gt;http://stackoverflow.com/questions/14301645/java-app-package-pathname-variable-not-working&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;-&amp;nbsp;&lt;A href="https://code.google.com/p/android/issues/detail?id=69174" target="_blank" rel="nofollow noopener noreferrer"&gt;https://code.google.com/p/android/issues/detail?id=69174&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;-&amp;nbsp;&lt;A href="http://stackoverflow.com/questions/23396985/jacoco-with-gradle-0-10-0-remote-object-doesnt-exist" target="_blank" rel="nofollow noopener noreferrer"&gt;http://stackoverflow.com/questions/23396985/jacoco-with-gradle-0-10-0-remote-object-doesnt-exist&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Please ignore and wait for Android/Mobile team to respond if the above&amp;nbsp;information does not help or not related here.&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Arun&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2014 09:08:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/AppD-Archive/Android-SDK-Code-Coverage-Generation-Issue/m-p/736893#M5617</guid>
      <dc:creator>Arun_Dasetty</dc:creator>
      <dc:date>2014-11-12T09:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Android SDK Code Coverage Generation Issue</title>
      <link>https://community.splunk.com/t5/AppD-Archive/Android-SDK-Code-Coverage-Generation-Issue/m-p/736894#M5618</link>
      <description>&lt;P&gt;Thanks for looking into it!&lt;/P&gt;

&lt;P&gt;Just to be clear, "&amp;lt;app_package&amp;gt;" was a string that I added to replace our real app package name. &amp;nbsp;It wasn't in the actual&amp;nbsp;output (the actual output had our "com.xxxx.yyyyy" app package string there). &amp;nbsp;The coverage.ec file was not generated when using AppDynamics.&lt;/P&gt;

&lt;P&gt;Also, a couple of the stackoverflow articles you link to are about issues which existed in previous versions of the Android build tools, but are fixed in the current version. &amp;nbsp;We are able to successfully generate the coverage.ec file and code coverage reports when no AppDynamics injection is happening as part of the build.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2014 17:11:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/AppD-Archive/Android-SDK-Code-Coverage-Generation-Issue/m-p/736894#M5618</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2014-11-12T17:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Android SDK Code Coverage Generation Issue</title>
      <link>https://community.splunk.com/t5/AppD-Archive/Android-SDK-Code-Coverage-Generation-Issue/m-p/736895#M5619</link>
      <description>&lt;P&gt;Hi Eric,&lt;/P&gt;

&lt;P&gt;Can you please check if the followig information from our Dev team helps here:&lt;/P&gt;

&lt;P&gt;"Our eum's gradle plugin introduces indirect dependency on a particular version of google's build plugin. Please confirm whether you have followed&amp;nbsp;the instructions mentioned in the documentation.&amp;nbsp;If you look in the documentation here:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.appdynamics.com/display/PRO39/Instrument+an+Android+Application" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.appdynamics.com/display/PRO39/Instrument+an+Android+Application&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;under the gradle example, you should see something like this:&lt;BR /&gt; &lt;BR /&gt; configurations.classpath.resolutionStrategy.force('com.android.tools.build:gradle:0.8.3')&lt;/P&gt;

&lt;P&gt;Where '0.8.3' should be replaced with the plugin version of yours&amp;nbsp;. We suspect, you&amp;nbsp;are seeing this issue because our gradle plugin is introducing dependency on a older version of android's gradle plugin.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Can you please check whether your&amp;nbsp;build.gradle file is configured properly and let us know how it goes. "&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Arun&lt;/P&gt;</description>
      <pubDate>Fri, 14 Nov 2014 04:20:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/AppD-Archive/Android-SDK-Code-Coverage-Generation-Issue/m-p/736895#M5619</guid>
      <dc:creator>Arun_Dasetty</dc:creator>
      <dc:date>2014-11-14T04:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Android SDK Code Coverage Generation Issue</title>
      <link>https://community.splunk.com/t5/AppD-Archive/Android-SDK-Code-Coverage-Generation-Issue/m-p/736896#M5620</link>
      <description>&lt;P&gt;Sorry for the late response.&lt;/P&gt;

&lt;P&gt;I do&amp;nbsp;have the following line in my build.gradle file and I'm still able to reproduce the issue:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;configurations.classpath.resolutionStrategy.force('com.android.tools.build:gradle:0.13.2')&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN&gt;In the build.gradle file, is there a way to disable injection for the&amp;nbsp;debug build (so that injection will only happen for the release build)? &amp;nbsp;I realize that will result in AppDynamics not doing any monitoring for the debug build, but that's fine since the debug build would only be used for testing anyways. &amp;nbsp;Please let me know.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Nov 2014 03:37:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/AppD-Archive/Android-SDK-Code-Coverage-Generation-Issue/m-p/736896#M5620</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2014-11-29T03:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: Android SDK Code Coverage Generation Issue</title>
      <link>https://community.splunk.com/t5/AppD-Archive/Android-SDK-Code-Coverage-Generation-Issue/m-p/736897#M5621</link>
      <description>&lt;P&gt;Hi Eric,&lt;/P&gt;

&lt;P&gt;Please find our response from our Dev team regarding your query:&lt;/P&gt;

&lt;DIV&gt;"Unfortunately our plugin automatically runs for both debug and release builds. I don't see an easy way around it without providing a custom build for the customer.&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Besides the customer's response does not mention under which element '&lt;SPAN style="color: #666666; font-family: Arial; font-size: 12px; line-height: 15px;"&gt;configurations.classpath.&lt;WBR /&gt;resolutionStrategy.force(&lt;/SPAN&gt;&lt;SPAN style="color: #666666; font-family: Arial; font-size: 12px; line-height: 15px;"&gt;'com.&lt;WBR /&gt;android.tools.build:gradle:0.&lt;WBR /&gt;13.2')" was applied. It has to be inside the 'buildscript' element.&lt;/SPAN&gt;"&lt;/DIV&gt;

&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Arun&lt;/P&gt;</description>
      <pubDate>Sat, 29 Nov 2014 13:45:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/AppD-Archive/Android-SDK-Code-Coverage-Generation-Issue/m-p/736897#M5621</guid>
      <dc:creator>Arun_Dasetty</dc:creator>
      <dc:date>2014-11-29T13:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Android SDK Code Coverage Generation Issue</title>
      <link>https://community.splunk.com/t5/AppD-Archive/Android-SDK-Code-Coverage-Generation-Issue/m-p/736898#M5622</link>
      <description>&lt;P&gt;Thanks Arun.&lt;/P&gt;

&lt;P&gt;Just to confirm, we&amp;nbsp;do&amp;nbsp;have the&amp;nbsp;&lt;SPAN&gt;configurations.classpath.&lt;/SPAN&gt;&lt;WBR /&gt;&lt;SPAN&gt;resolutionStrategy.force(...) in the "buildscript" element.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN&gt;Would it be possible to have the ability to disable injection for particular build types in the next version of the Android plugin? &amp;nbsp;Or alternately, a fix for the code coverage generation issue when injection is enabled?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Nov 2014 21:02:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/AppD-Archive/Android-SDK-Code-Coverage-Generation-Issue/m-p/736898#M5622</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2014-11-29T21:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Android SDK Code Coverage Generation Issue</title>
      <link>https://community.splunk.com/t5/AppD-Archive/Android-SDK-Code-Coverage-Generation-Issue/m-p/736899#M5623</link>
      <description>&lt;P&gt;Hi Eric,&lt;/P&gt;

&lt;P&gt;We understood that you have mentioned as per syntax at doc section, let us know if any disconnect:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.appdynamics.com/display/PRO39/Instrument+an+Android+Application#InstrumentanAndroidApplication-Modifybuild.gradle" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.appdynamics.com/display/PRO39/Instrument+an+Android+Application#InstrumentanAndroidApplication-Modifybuild.gradle&lt;/A&gt; .&lt;/P&gt;

&lt;P&gt;We appreciate your pointers on product enhancement/customization. Can you please help us raise feature request at help.appdynamics.com Or send email with feature requirement to help/@appdynamics.com for better tracking of possibilities of the request ?&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Arun&lt;/P&gt;</description>
      <pubDate>Sun, 30 Nov 2014 02:39:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/AppD-Archive/Android-SDK-Code-Coverage-Generation-Issue/m-p/736899#M5623</guid>
      <dc:creator>Arun_Dasetty</dc:creator>
      <dc:date>2014-11-30T02:39:41Z</dc:date>
    </item>
  </channel>
</rss>

