Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-6170

ti.admob Android error: Failed resolution of: Lcom/google/android/gms/ads/AdSize

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Invalid
    • Affects Version/s: None
    • Component/s: Appcelerator Modules
    • Labels:
      None
    • Environment:

      SDK 7.5.0
      Android ti.admob 4.4.0
      Huawei Mate 20 Pro (Android 9.0)

      Description

      An issue with ti.admob appeared in the latest release of one of my apps, and based on the crash reports through Google Play, it seems to be isolated to Huawei phones running Android 8.0 or above. I was able to replicate this crash on a Huawei phone of my own, but ti.admob seems to run fine on other Android brands (Samsung, HTC, Google).

      I was able to replicate this crash by running the example app.js included in the ti.admob repo.

      Output:
      [ERROR] TiExceptionHandler: (main) [1262,1708] Failed resolution of: Lcom/google/android/gms/ads/AdSize;
      [ERROR] TiExceptionHandler:
      [ERROR] TiExceptionHandler: dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
      [ERROR] TiExceptionHandler: java.lang.ClassLoader.loadClass(ClassLoader.java:379)

      [ERROR] TiExceptionHandler: java.lang.ClassLoader.loadClass(ClassLoader.java:312)
      [ERROR] TiExceptionHandler: ti.admob.View.<init>(View.java:34)
      [ERROR] TiExceptionHandler: ti.admob.ViewProxy.createView(ViewProxy.java:52)
      [ERROR] TiExceptionHandler: org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:587)
      [ERROR] TiExceptionHandler: org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:556)
      [ERROR] TiExceptionHandler: org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:609)
      [ERROR] TiExceptionHandler: org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:593)
      [ERROR] TiExceptionHandler: org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:556)
      [ERROR] TiExceptionHandler: org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:609)
      [ERROR] TiExceptionHandler: org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:593)
      [ERROR] TiExceptionHandler: org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:556)
      [ERROR] TiExceptionHandler: org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:798)
      [ERROR] TiExceptionHandler: org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:275)
      [ERROR] TiExceptionHandler: android.os.Handler.dispatchMessage(Handler.java:105)
      [ERROR] TiExceptionHandler: android.os.Looper.loop(Looper.java:207)
      [ERROR] TiExceptionHandler: android.app.ActivityThread.main(ActivityThread.java:7470)
      [ERROR] TiExceptionHandler: java.lang.reflect.Method.invoke(Native Method)
      [ERROR] TiExceptionHandler: com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
      [ERROR] TiExceptionHandler: com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)

        Attachments

          Activity

            People

            • Assignee:
              shossain Shak Hossain
              Reporter:
              jtickner Justin Tickner
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code