Project: titanium
Issue TIMOB-20398: Ti.admob: Android issues starting from Ti SDK 5.1
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: {code:java} [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. [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: com.google.android.gms.ads.internal.zzp.(Unknown Source) [ERROR] : TiApplication: com.google.android.gms.ads.internal.zzp.(Unknown Source) [ERROR] : TiApplication: com.google.android.gms.ads.internal.zzb.(Unknown Source) [ERROR] : TiApplication: com.google.android.gms.ads.internal.zzc.(Unknown Source) [ERROR] : TiApplication: com.google.android.gms.ads.internal.zze.(Unknown Source) [ERROR] : TiApplication: com.google.android.gms.ads.internal.client.zze.zza(Unknown Source) [ERROR] : TiApplication: com.google.android.gms.ads.internal.client.zzy.zzcO(Unknown Source) [ERROR] : TiApplication: com.google.android.gms.ads.internal.client.zzy.zza(Unknown Source) [ERROR] : TiApplication: com.google.android.gms.ads.AdView.loadAd(Unknown Source) [ERROR] : TiApplication: ti.admob.View$2.run(View.java:81) [ERROR] : TiApplication: android.app.Activity.runOnUiThread(Activity.java:4673) [ERROR] : TiApplication: ti.admob.View.loadAd(View.java:69) [ERROR] : TiApplication: ti.admob.View.createAdView(View.java:64) [ERROR] : TiApplication: ti.admob.View.processProperties(View.java:135) [ERROR] : TiApplication: org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:1209) [ERROR] : TiApplication: org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:505) [ERROR] : TiApplication: org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:496) [ERROR] : TiApplication: org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:474) [ERROR] : TiApplication: org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:512) [ERROR] : TiApplication: org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:496) [ERROR] : TiApplication: org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:474) [ERROR] : TiApplication: org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:512) [ERROR] : TiApplication: org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:496) [ERROR] : TiApplication: org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:474) [ERROR] : TiApplication: com.tripvi.drawerlayout.Drawer.replaceCenterView(Drawer.java:381) [ERROR] : TiApplication: com.tripvi.drawerlayout.Drawer.processProperties(Drawer.java:443) [ERROR] : TiApplication: org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:1209) [ERROR] : TiApplication: org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:505) [ERROR] : TiApplication: org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java [ERROR] : TiApplication: org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:474) [ERROR] : TiApplication: org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:512) [ERROR] : TiApplication: org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:496) [ERROR] : TiApplication: org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:474) [ERROR] : TiApplication: org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:675) [ERROR] : TiApplication: org.appcelerator.titanium.proxy.TiViewProxy.add(TiViewProxy.java:569) [ERROR] : TiApplication: ti.modules.titanium.ui.WindowProxy.windowCreated(WindowProxy.java:237) [ERROR] : TiApplication: org.appcelerator.titanium.TiActivityWindows.windowCreated(TiActivityWindows.java:33) [ERROR] : TiApplication: org.appcelerator.titanium.TiBaseActivity.windowCreated(TiBaseActivity.java:508) [ERROR] : TiApplication: org.appcelerator.titani [ERROR] : TiApplication: org.appcelerator.titanium.TiActivity.onCreate(TiActivity.java:18) [ERROR] : TiApplication: android.app.Activity.performCreate(Activity.java:5133) [ERROR] : TiApplication: android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) [ERROR] : TiApplication: android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175) [ERROR] : TiApplication: android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261) [ERROR] : TiApplication: android.app.ActivityThread.access$600(ActivityThread.java:141) [ERROR] : TiApplication: android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256) [ERROR] : TiApplication: android.os.Handler.dispatchMessage(Handler.java:99) [ERROR] : TiApplication: android.os.Looper.loop(Looper.java:137) [ERROR] : TiApplication: android.app.ActivityThread.main(ActivityThread.java:5103) [ERROR] : TiApplication: java.lang.reflect.Method.invokeNative(Native Method) [ERROR] : TiApplication: java.lang.reflect.Method.invoke(Method.java:525) [ERROR] : TiApplication: com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737) [ERROR] : TiApplication: com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) [ERROR] : TiApplication: dalvi {code}
Story points: 5