<?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: Didn't find class &amp;quot;com.esri.arcgisruntime.ArcGISRuntimeEnvironment&amp;quot; in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/didn-t-find-class-quot-com-esri-arcgisruntime/m-p/751686#M5311</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mistakenly I have added following&amp;nbsp;two lines&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;minifyEnabled true&lt;SPAN style="color: #000043; font-weight: bold;"&gt;
&lt;/SPAN&gt;shrinkResources &lt;SPAN style="color: #000043; font-weight: bold;"&gt;true

now I make these values false and it's working fine.&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 07:55:02 GMT</pubDate>
    <dc:creator>AhmedSaeed</dc:creator>
    <dc:date>2021-12-12T07:55:02Z</dc:date>
    <item>
      <title>Didn't find class "com.esri.arcgisruntime.ArcGISRuntimeEnvironment"</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/didn-t-find-class-quot-com-esri-arcgisruntime/m-p/751684#M5309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I try to run with android studio, it's working fine on device. But when I try to build apk and install it manually, I am getting this exception. Same thing is happening from play store.&lt;/P&gt;&lt;P&gt;I am using android SDK 100.6.0&lt;/P&gt;&lt;P&gt;java.lang.ClassNotFoundException: Didn't find class "com.esri.arcgisruntime.ArcGISRuntimeEnvironment" on path: DexPathList[[zip file "/data/app/sa.test.oads-2M9eFuy0a9K3TZv1Q6hIPw==/base.apk"],nativeLibraryDirectories=[/data/app/sa&lt;SPAN&gt;.test.oads&lt;/SPAN&gt;-2M9eFuy0a9K3TZv1Q6hIPw==/lib/arm64, /data/app/sa.&lt;SPAN&gt;test.oads&lt;/SPAN&gt;-2M9eFuy0a9K3TZv1Q6hIPw==/base.apk!/lib/arm64-v8a, /system/lib64, /system/vendor/lib64]]&lt;BR /&gt;2019-09-11 23:43:44.682 4741-4741/? A/.&lt;SPAN&gt;test.oads&lt;/SPAN&gt;: thread.cc:2148] at void sa.&lt;SPAN&gt;test.oads&lt;/SPAN&gt;.activities.TestApp.onCreate() (:-1)&lt;BR /&gt;2019-09-11 23:43:44.834 4741-4741/? A/.&lt;SPAN&gt;test.oads&lt;/SPAN&gt;: runtime.cc:565] native: #10 pc 000000000019012c /data/app/sa.&lt;SPAN&gt;test.oads&lt;/SPAN&gt;-2M9eFuy0a9K3TZv1Q6hIPw==/lib/arm64/libruntimecore_java.so (offset 190000) (???)&lt;BR /&gt;2019-09-11 23:43:44.834 4741-4741/? A/.&lt;SPAN&gt;test.oads&lt;/SPAN&gt;: runtime.cc:565] native: #11 pc 000000000019052c /data/app/sa.&lt;SPAN&gt;test.oads&lt;/SPAN&gt;-2M9eFuy0a9K3TZv1Q6hIPw==/lib/arm64/libruntimecore_java.so (offset 190000) (JNI_OnLoad+384)&lt;BR /&gt;2019-09-11 23:43:44.834 4741-4741/? A/.&lt;SPAN&gt;test.oads&lt;/SPAN&gt;: runtime.cc:565] at sa.&lt;SPAN&gt;test.oads&lt;/SPAN&gt;.activities.&lt;SPAN&gt;TestApp&lt;/SPAN&gt;.onCreate(:-1)&lt;BR /&gt;2019-09-11 23:43:44.837 4741-4741/? A/.&lt;SPAN&gt;test.oads&lt;/SPAN&gt;: runtime.cc:565] native: #27 pc 000000000017e38e /data/app/sa.&lt;SPAN&gt;test.oads&lt;/SPAN&gt;-2M9eFuy0a9K3TZv1Q6hIPw==/oat/arm64/base.vdex (c.b.a.a.g+14)&lt;BR /&gt;2019-09-11 23:43:44.837 4741-4741/? A/.&lt;SPAN&gt;test.oads&lt;/SPAN&gt;: runtime.cc:565] native: #33 pc 00000000001848e0 /data/app/sa.&lt;SPAN&gt;test.oads&lt;/SPAN&gt;-2M9eFuy0a9K3TZv1Q6hIPw==/oat/arm64/base.vdex (com.esri.arcgisruntime.internal.jni.CoreArcGISRuntimeEnvironment.&amp;lt;clinit&amp;gt;)&lt;BR /&gt;2019-09-11 23:43:44.838 4741-4741/? A/.&lt;SPAN&gt;test.oads&lt;/SPAN&gt;: runtime.cc:565] native: #55 pc 0000000000282ce4 /data/app/sa.&lt;SPAN&gt;test.oads&lt;/SPAN&gt;-2M9eFuy0a9K3TZv1Q6hIPw==/oat/arm64/base.vdex (sa.&lt;SPAN&gt;test.oads&lt;/SPAN&gt;.activities.&lt;SPAN&gt;TestApp&lt;/SPAN&gt;.onCreate+16)&lt;BR /&gt;2019-09-11 23:43:44.838 4741-4741/? A/.&lt;SPAN&gt;test.oads&lt;/SPAN&gt;: runtime.cc:565] at sa.&lt;SPAN&gt;test.oads&lt;/SPAN&gt;.activities.&lt;SPAN&gt;TestApp&lt;/SPAN&gt;.onCreate(:-1)&lt;BR /&gt;2019-09-11 23:43:44.838 4741-4741/? A/.&lt;SPAN&gt;test.oads&lt;/SPAN&gt;: runtime.cc:573]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2019 21:47:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/didn-t-find-class-quot-com-esri-arcgisruntime/m-p/751684#M5309</guid>
      <dc:creator>AhmedSaeed</dc:creator>
      <dc:date>2019-09-11T21:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Didn't find class "com.esri.arcgisruntime.ArcGISRuntimeEnvironment"</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/didn-t-find-class-quot-com-esri-arcgisruntime/m-p/751685#M5310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ahmed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you provide some more information please.&lt;/P&gt;&lt;P&gt;- How do you reference the ArcGIS Runtime SDK dependency in your gradle build script? Can you share that code snippet?&lt;BR /&gt;- Does this `&lt;SPAN style="background-color: #ffffff;"&gt;ClassNotFoundException` only happen on one or more specific devices or on any device? It looks like you are using a 64 bit ARM device. Could you also try a 32 bit ARM device?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Thanks, Gunther&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Sep 2019 09:37:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/didn-t-find-class-quot-com-esri-arcgisruntime/m-p/751685#M5310</guid>
      <dc:creator>GuntherHeppner</dc:creator>
      <dc:date>2019-09-13T09:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: Didn't find class "com.esri.arcgisruntime.ArcGISRuntimeEnvironment"</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/didn-t-find-class-quot-com-esri-arcgisruntime/m-p/751686#M5311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mistakenly I have added following&amp;nbsp;two lines&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;minifyEnabled true&lt;SPAN style="color: #000043; font-weight: bold;"&gt;
&lt;/SPAN&gt;shrinkResources &lt;SPAN style="color: #000043; font-weight: bold;"&gt;true

now I make these values false and it's working fine.&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:55:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/didn-t-find-class-quot-com-esri-arcgisruntime/m-p/751686#M5311</guid>
      <dc:creator>AhmedSaeed</dc:creator>
      <dc:date>2021-12-12T07:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Didn't find class "com.esri.arcgisruntime.ArcGISRuntimeEnvironment"</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/didn-t-find-class-quot-com-esri-arcgisruntime/m-p/751687#M5312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ahmed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reporting back. The&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;ArcGIS Runtime SDK dependency is already obfuscated so in your build script you should prevent it from being obfuscated twice. Completely disabling obfuscation for your project can achieve that but you might still want to obfuscate your own code. If you are using Proguard, you can exclude the&amp;nbsp;&lt;SPAN&gt;ArcGIS Runtime SDK dependency from obfuscation by adding the following line in your proguard rules file:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="" data-stringify-type="pre" style="color: #1d1c1d; background: rgba(var(--sk_foreground_min,29,28,29),0.04); font-size: 12px; margin: 4px 0px; padding: 8px;"&gt;-keep public class com.esri.arcgisruntime.* { *; }&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;Gunther&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2019 09:51:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/didn-t-find-class-quot-com-esri-arcgisruntime/m-p/751687#M5312</guid>
      <dc:creator>GuntherHeppner</dc:creator>
      <dc:date>2019-09-17T09:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Didn't find class "com.esri.arcgisruntime.ArcGISRuntimeEnvironment"</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/didn-t-find-class-quot-com-esri-arcgisruntime/m-p/751688#M5313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I enabled R8 in my application along with&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;release {
minifyEnabled &lt;SPAN style="color: #000043; font-weight: bold;"&gt;true
&lt;/SPAN&gt;shrinkResources &lt;SPAN style="color: #000043; font-weight: bold;"&gt;true
&lt;/SPAN&gt;zipAlignEnabled &lt;SPAN style="color: #000043; font-weight: bold;"&gt;true
&lt;/SPAN&gt;}&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;/PRE&gt;&lt;P&gt;I have tried to add the following things to keep these at run time. But still am facing the same issue.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;-keep &lt;/SPAN&gt;class com.esri.** {&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt; *; &lt;/SPAN&gt;}
&lt;SPAN style="color: #000080; font-weight: bold;"&gt;-keep &lt;/SPAN&gt;interface com.esri.** {&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt; *; &lt;/SPAN&gt;}
&lt;SPAN style="color: #000080; font-weight: bold;"&gt;-keep &lt;/SPAN&gt;class org.codehaus.jackson.** {&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt; *; &lt;/SPAN&gt;}
&lt;SPAN style="color: #000080; font-weight: bold;"&gt;-dontwarn &lt;/SPAN&gt;org.codehaus.jackson.map.ext.**
&lt;SPAN style="color: #000080; font-weight: bold;"&gt;-dontwarn &lt;/SPAN&gt;jcifs.http.**&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Reference:&amp;nbsp;&lt;A class="link-titled" href="https://stackoverflow.com/questions/34787925/com-esri-arcgis-androidarcgis-android10-2-6-2-with-proguard" title="https://stackoverflow.com/questions/34787925/com-esri-arcgis-androidarcgis-android10-2-6-2-with-proguard" rel="nofollow noopener noreferrer" target="_blank"&gt;com.esri.arcgis.android:arcgis-android:10.2.6-2 with proguard - Stack Overflow&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error message when I run the app:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;JNI DETECTED ERROR IN APPLICATION: JNI FindClass called with pending exception java.lang.ClassNotFoundException: Didn't find class "com.esri.arcgisruntime.ArcGISRuntimeEnvironment" on path: DexPathList&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Can you please help me on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:55:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/didn-t-find-class-quot-com-esri-arcgisruntime/m-p/751688#M5313</guid>
      <dc:creator>ShylendraMadda1</dc:creator>
      <dc:date>2021-12-12T07:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Didn't find class "com.esri.arcgisruntime.ArcGISRuntimeEnvironment"</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/didn-t-find-class-quot-com-esri-arcgisruntime/m-p/751689#M5314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any solution for this so far?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2020 10:46:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/didn-t-find-class-quot-com-esri-arcgisruntime/m-p/751689#M5314</guid>
      <dc:creator>ShylendraMadda1</dc:creator>
      <dc:date>2020-01-14T10:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Didn't find class "com.esri.arcgisruntime.ArcGISRuntimeEnvironment"</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/didn-t-find-class-quot-com-esri-arcgisruntime/m-p/751690#M5315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried as you suggested but still am getting the same error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #242729; background-color: #fbf2d4;"&gt;JNI DETECTED ERROR IN APPLICATION: JNI FindClass called with pending exception java.lang.ClassNotFoundException: Didn't find class "com.esri.arcgisruntime.ArcGISRuntimeEnvironment" on path: DexPathList&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2020 10:47:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/didn-t-find-class-quot-com-esri-arcgisruntime/m-p/751690#M5315</guid>
      <dc:creator>ShylendraMadda1</dc:creator>
      <dc:date>2020-01-14T10:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: Didn't find class "com.esri.arcgisruntime.ArcGISRuntimeEnvironment"</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/didn-t-find-class-quot-com-esri-arcgisruntime/m-p/751691#M5316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/368312"&gt;Shylendra Madda&lt;/A&gt;‌ &lt;A href="https://community.esri.com/migrated-users/359981"&gt;Ahmed Saeed&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We found that by adding this line to your&lt;EM&gt; proguard-rules.pro&lt;/EM&gt; file, R8 stops obfuscating the SDK:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;-keep class com.esri.arcgisruntime.** { *; }&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give it a try and report back if it works for your use case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We will add this to our SDK in feature releases for R8 to pick it up automatically so the user doesn't have to add it.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2020 19:09:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/didn-t-find-class-quot-com-esri-arcgisruntime/m-p/751691#M5316</guid>
      <dc:creator>Erick_1</dc:creator>
      <dc:date>2020-03-03T19:09:00Z</dc:date>
    </item>
  </channel>
</rss>

