Uploaded image for project: 'Appcelerator Modules'
  1. Appcelerator Modules
  2. MOD-2467

Ti.Map: Exception thrown when targeting Android P

    Details

    • Type: Bug
    • Status: Open
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: Release 7.5.0
    • Fix Version/s: None
    • Component/s: Map
    • Labels:
    • Story Points:
      3

      Description

      When using Ti.Map on Android P, an error is thrown:

      [ERROR] TiExceptionHandler: (main) [13088,13088]
      [ERROR] TiExceptionHandler:     dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
      [ERROR] TiExceptionHandler:     java.lang.ClassLoader.loadClass(ClassLoader.java:379)
      [ERROR] TiExceptionHandler:     dhd.loadClass(:com.google.android.gms@12862026@12.8.62 (040700-199405334):3)
      [ERROR] TiExceptionHandler:     java.lang.ClassLoader.loadClass(ClassLoader.java:312)
      [ERROR] TiExceptionHandler:     el.b(:com.google.android.gms.dynamite_mapsdynamite@12862026@12.8.62 (040700-199405334):3)
      [ERROR] TiExceptionHandler:     ek.a(:com.google.android.gms.dynamite_mapsdynamite@12862026@12.8.62 (040700-199405334):4)
      [ERROR] TiExceptionHandler:     em.a(:com.google.android.gms.dynamite_mapsdynamite@12862026@12.8.62 (040700-199405334):51)
      [ERROR] TiExceptionHandler:     com.google.maps.api.android.lib6.drd.ap.a(:com.google.android.gms.dynamite_mapsdynamite@12862026@12.8.62 (040700-199405334):11)
      [ERROR] TiExceptionHandler:     dw.a(:com.google.android.gms.dynamite_mapsdynamite@12862026@12.8.62 (040700-199405334):16)
      [ERROR] TiExceptionHandler:     dw.run(:com.google.android.gms.dynamite_mapsdynamite@12862026@12.8.62 (040700-199405334):61)
      

      Following the Android bug tracker, this is a known issue and the workaround is to add the following to the manifest:

      <uses-library android:name="org.apache.http.legacy" android:required="false"/>
      

      I can confirm the fix works fine for Titanium as well.

        Attachments

          Activity

            People

            • Assignee:
              ybanev Yordan Banev
              Reporter:
              hknoechel Hans Knöchel
            • Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:

                Git Source Code