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

Ti.admob: Android issues starting from Ti SDK 5.1

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 6.0.0
    • Component/s: Admob
    • Labels:
    • Environment:

      Android

    • Story Points:
      5
    • Sprint:
      2016 Sprint 20 SDK

      Description

      Since I updated to Ti SDK 5.1, Android ti.admob module no longer works. When I add the view to the window, win.add(adMobView); the app crashes with this logs:

      [INFO] :   dalvikvm: Could not find method android.content.res.TypedArray.getChangingConfigurations, referenced from method android.support.v7.internal.widget.TintTypedArray.getChangingConfigurations
      [WARN] :   dalvikvm: VFY: unable to resolve virtual method 748: Landroid/content/res/TypedArray;.getChangingConfigurations ()I
      [INFO] :   dalvikvm: Could not find method android.content.res.TypedArray.getType, referenced from method android.support.v7.internal.widget.TintTypedArray.getType
      [WARN] :   dalvikvm: VFY: unable to resolve virtual method 770: Landroid/content/res/TypedArray;.getType (I)I
      [INFO] :   dalvikvm: Failed resolving Lcom/google/android/gms/ads/internal/zzl; interface 4115 'Lcom/google/android/gms/internal/zznw$zza;'
      [WARN] :   dalvikvm: Link of class 'Lcom/google/android/gms/ads/internal/zzl;' failed
      [INFO] :   dalvikvm: Could not find method com.google.android.gms.ads.internal.zzl.zzq, referenced from method com.google.android.gms.ads.internal.client.zzac.zzt
      [WARN] :   dalvikvm: VFY: unable to resolve static method 22175: Lcom/google/android/gms/ads/internal/zzl;.zzq (Landroid/content/Context;)Lcom/google/android/gms/ads/internal/zzl;
      [WARN] :   dalvikvm: VFY: unable to resolve static field 12552 (common_google_play_services_unknown_issue) in Lcom/google/android/gms/R$string;
      [INFO] :   I/[RevMob]: Install registered on server
      [WARN] :   dalvikvm: VFY: unable to resolve static field 12549 (common_google_play_services_notification_ticker) in Lcom/google/android/gms/R$string;
      [WARN] :   dalvikvm: VFY: unable to resolve static field 12528 (common_ic_googleplayservices) in Lcom/google/android/gms/R$drawable;
      [INFO] :   dalvikvm: Could not find method android.app.AppOpsManager.checkPackage, referenced from method com.google.android.gms.common.GooglePlayServicesUtil.zza
      [INFO] :   dalvikvm: Could not find method android.content.pm.PackageManager.getPackageInstaller, referenced from method com.google.android.gms.common.GooglePlayServicesUtil.zzh
      [WARN] :   dalvikvm: VFY: unable to resolve static field 12549 (common_google_play_services_notification_ticker) in Lcom/google/android/gms/R$string;
      [WARN] :   dalvikvm: VFY: unable to resolve virtual method 156: Landroid/app/AppOpsManager;.checkPackage (ILjava/lang/String;)V
      [WARN] :   dalvikvm: VFY: unable to resolve virtual method 661: Landroid/content/pm/PackageManager;.getPackageInstaller ()Landroid/content/pm/PackageInstaller;
      [INFO] :   dalvikvm: DexOpt: unable to optimize static field ref 0x30ef at 0x66 in Lcom/google/android/gms/common/GooglePlayServicesUtil;.zza
      [INFO] :   dalvikvm: DexOpt: unable to optimize static field ref 0x3110 at 0x68 in Lcom/google/android/gms/common/GooglePlayServicesUtil;.zza
      [ERROR] :  GooglePlayServicesUtil: The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
      [WARN] :   GooglePlayServicesUtil: Google Play services out of date.  Requires 7571000 but found 7099070
      [INFO] :   dalvikvm: Failed resolving Lcom/google/android/gms/ads/internal/zzl; interface 4115 'Lcom/google/android/gms/internal/zznw$zza;'
      [WARN] :   dalvikvm: Link of class 'Lcom/google/android/gms/ads/internal/zzl;' failed
      [INFO] :   dalvikvm: Could not find method com.google.android.gms.ads.internal.zzl.zzq, referenced from method com.google.android.gms.ads.internal.zzb.zza
      [WARN] :   dalvikvm: VFY: unable to resolve static method 22175: Lcom/google/android/gms/ads/internal/zzl;.zzq (Landroid/content/Context;)Lcom/google/android/gms/ads/internal/zzl;
      [WARN] :   dalvikvm: VFY: unable to find class referenced in signature (Lcom/google/android/gms/internal/zzan;)
      [INFO] :   dalvikvm: Failed resolving Lcom/google/android/gms/ads/internal/zzl; interface 4115 'Lcom/google/android/gms/internal/zznw$zza;'
      [WARN] :   dalvikvm: Link of class 'Lcom/google/android/gms/ads/internal/zzl;' failed
      [INFO] :   dalvikvm: Could not find method com.google.android.gms.ads.internal.zzl.zzq, referenced from method com.google.android.gms.ads.internal.zza.zza
      [WARN] :   dalvikvm: VFY: unable to resolve static method 22175: Lcom/google/android/gms/ads/internal/zzl;.zzq (Landroid/content/Context;)Lcom/google/android/gms/ads/internal/zzl;
      [INFO] :   dalvikvm: Failed resolving Lcom/google/android/gms/ads/internal/zzl; interface 4115 'Lcom/google/android/gms/internal/zznw$zza;'
      [WARN] :   dalvikvm: Link of class 'Lcom/google/android/gms/ads/internal/zzl;' failed
      [INFO] :   dalvikvm: Could not find method com.google.android.gms.ads.internal.zzl.zzq, referenced from method com.google.android.gms.ads.internal.zza.zza
      [WARN] :   dalvikvm: VFY: unable to resolve static method 22175: Lcom/google/android/gms/ads/internal/zzl;.zzq (Landroid/content/Context;)Lcom/google/android/gms/ads/internal/zzl;
      [WARN] :   dalvikvm: VFY: unable to find class referenced in signature (Lcom/google/android/gms/internal/zzan;)
      [WARN] :   dalvikvm: VFY: unable to find class referenced in signature (Lcom/google/android/gms/internal/zzan;)
      [ERROR] :  dalvikvm: Could not find class 'com.google.android.gms.internal.zzan', referenced from method com.google.android.gms.ads.internal.zzp.<init>
      [WARN] :   dalvikvm: VFY: unable to resolve new-instance 3580 (Lcom/google/android/gms/internal/zzan;) in Lcom/google/android/gms/ads/internal/zzp;
      [INFO] :   dalvikvm: Failed resolving Lcom/google/android/gms/ads/internal/zzg; interface 3578 'Lcom/google/android/gms/internal/zzaj;'
      [WARN] :   dalvikvm: Link of class 'Lcom/google/android/gms/ads/internal/zzg;' failed
      [WARN] :   dalvikvm: VFY: unable to find class referenced in signature (Lcom/google/android/gms/internal/zzan;)
      [INFO] :   dalvikvm: Could not find method com.google.android.gms.internal.zzan.zzc, referenced from method com.google.android.gms.internal.zzhl.zza
      [WARN] :   dalvikvm: VFY: unable to resolve virtual method 26052: Lcom/google/android/gms/internal/zzan;.zzc (Landroid/net/Uri;)Z
      [WARN] :   dalvikvm: VFY: unable to find class referenced in signature (Lcom/google/android/gms/internal/zzan;)
      [WARN] :   dalvikvm: VFY: unable to find class referenced in signature (Lcom/google/android/gms/internal/zzan;)
      [WARN] :   dalvikvm: threadid=1: thread exiting with uncaught exception (group=0xa4c13648)
      [ERROR] :  TiApplication: (main) [312,3235] Sending event: exception on thread: main msg:java.lang.NoClassDefFoundError: com.google.android.gms.internal.zzan; Titanium 5.1.2,2015/12/16 19:00,ca822b2
      [ERROR] :  TiApplication: java.lang.NoClassDefFoundError: com.google.android.gms.internal.zzan
      [ERROR] :  TiApplication: 	at com.google.android.gms.ads.internal.zzp.<init>(Unknown Source)
      [ERROR] :  TiApplication: 	at com.google.android.gms.ads.internal.zzp.<init>(Unknown Source)
      [ERROR] :  TiApplication: 	at com.google.android.gms.ads.internal.zzb.<init>(Unknown Source)
      [ERROR] :  TiApplication: 	at com.google.android.gms.ads.internal.zzc.<init>(Unknown Source)
      [ERROR] :  TiApplication: 	at com.google.android.gms.ads.internal.zze.<init>(Unknown Source)
      [ERROR] :  TiApplication: 	at com.google.android.gms.ads.internal.client.zze.zza(Unknown Source)
      [ERROR] :  TiApplication: 	at com.google.android.gms.ads.internal.client.zzy.zzcO(Unknown Source)
      [ERROR] :  TiApplication: 	at com.google.android.gms.ads.internal.client.zzy.zza(Unknown Source)
      [ERROR] :  TiApplication: 	at com.google.android.gms.ads.AdView.loadAd(Unknown Source)
      [ERROR] :  TiApplication: 	at ti.admob.View$2.run(View.java:81)
      [ERROR] :  TiApplication: 	at android.app.Activity.runOnUiThread(Activity.java:4673)
      [ERROR] :  TiApplication: 	at ti.admob.View.loadAd(View.java:69)
      [ERROR] :  TiApplication: 	at ti.admob.View.createAdView(View.java:64)
      [ERROR] :  TiApplication: 	at ti.admob.View.processProperties(View.java:135)
      [ERROR] :  TiApplication: 	at org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:1209)
      [ERROR] :  TiApplication: 	at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:505)
      [ERROR] :  TiApplication: 	at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:496)
      [ERROR] :  TiApplication: 	at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:474)
      [ERROR] :  TiApplication: 	at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:512)
      [ERROR] :  TiApplication: 	at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:496)
      [ERROR] :  TiApplication: 	at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:474)
      [ERROR] :  TiApplication: 	at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:512)
      [ERROR] :  TiApplication: 	at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:496)
      [ERROR] :  TiApplication: 	at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:474)
      [ERROR] :  TiApplication: 	at com.tripvi.drawerlayout.Drawer.replaceCenterView(Drawer.java:381)
      [ERROR] :  TiApplication: 	at com.tripvi.drawerlayout.Drawer.processProperties(Drawer.java:443)
      [ERROR] :  TiApplication: 	at org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:1209)
      [ERROR] :  TiApplication: 	at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:505)
      [ERROR] :  TiApplication: 	at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java
      [ERROR] :  TiApplication: 	at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:474)
      [ERROR] :  TiApplication: 	at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:512)
      [ERROR] :  TiApplication: 	at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:496)
      [ERROR] :  TiApplication: 	at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:474)
      [ERROR] :  TiApplication: 	at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:675)
      [ERROR] :  TiApplication: 	at org.appcelerator.titanium.proxy.TiViewProxy.add(TiViewProxy.java:569)
      [ERROR] :  TiApplication: 	at ti.modules.titanium.ui.WindowProxy.windowCreated(WindowProxy.java:237)
      [ERROR] :  TiApplication: 	at org.appcelerator.titanium.TiActivityWindows.windowCreated(TiActivityWindows.java:33)
      [ERROR] :  TiApplication: 	at org.appcelerator.titanium.TiBaseActivity.windowCreated(TiBaseActivity.java:508)
      [ERROR] :  TiApplication: 	at org.appcelerator.titani
      [ERROR] :  TiApplication: 	at org.appcelerator.titanium.TiActivity.onCreate(TiActivity.java:18)
      [ERROR] :  TiApplication: 	at android.app.Activity.performCreate(Activity.java:5133)
      [ERROR] :  TiApplication: 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
      [ERROR] :  TiApplication: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175)
      [ERROR] :  TiApplication: 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
      [ERROR] :  TiApplication: 	at android.app.ActivityThread.access$600(ActivityThread.java:141)
      [ERROR] :  TiApplication: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
      [ERROR] :  TiApplication: 	at android.os.Handler.dispatchMessage(Handler.java:99)
      [ERROR] :  TiApplication: 	at android.os.Looper.loop(Looper.java:137)
      [ERROR] :  TiApplication: 	at android.app.ActivityThread.main(ActivityThread.java:5103)
      [ERROR] :  TiApplication: 	at java.lang.reflect.Method.invokeNative(Native Method)
      [ERROR] :  TiApplication: 	at java.lang.reflect.Method.invoke(Method.java:525)
      [ERROR] :  TiApplication: 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
      [ERROR] :  TiApplication: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
      [ERROR] :  TiApplication: 	at dalvi
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gmathews Gary Mathews
                Reporter:
                astrovicapps Vittorio Sorbera
              • Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code