Titanium JIRA Archive
Appcelerator Modules (MOD)

[MOD-2513] The ti.admob does not function in the latest update (ti.playservices)

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsandroid, ti.admob, ti.playservices
ReporterAndreas Pingas
AssigneeShak Hossain
Created2019-04-16T11:25:41.000+0000
Updated2019-05-16T23:06:03.000+0000

Description


[ERROR] :  TiExceptionHandler: (main) [270,905] Failed resolution of: Lcom/google/android/gms/ads/AdSize;

[ERROR] :  TiExceptionHandler:

[ERROR] :  TiExceptionHandler:     dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93)

[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:490)

[ERROR] :  TiExceptionHandler:     org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:462)

[ERROR] :  TiExceptionHandler:     org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:513)

[ERROR] :  TiExceptionHandler:     org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:496)

[ERROR] :  TiExceptionHandler:     org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:462)

[ERROR] :  TiExceptionHandler:     ti.modules.titanium.ui.widget.TiUIDrawerLayout.setCenterView(TiUIDrawerLayout.java:314)

[ERROR] :  TiExceptionHandler:     ti.modules.titanium.ui.widget.TiUIDrawerLayout.processProperties(TiUIDrawerLayout.java:381)

[ERROR] :  TiExceptionHandler:     org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:1296)

[ERROR] :  TiExceptionHandler:     org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:506)

[ERROR] :  TiExceptionHandler:     org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:496)

[ERROR] :  TiExceptionHandler:     org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:462)

[ERROR] :  TiExceptionHandler:     org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:513)

[ERROR] :  TiExceptionHandler:     org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:496)

[ERROR] :  TiExceptionHandler:     org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:462)

[ERROR] :  TiExceptionHandler:     org.appcelerator.titanium.proxy.TiViewProxy.add(TiViewProxy.java:602)

[ERROR] :  TiExceptionHandler:     ti.modules.titanium.ui.WindowProxy.windowCreated(WindowProxy.java:293)

[ERROR] :  TiExceptionHandler:     org.appcelerator.titanium.TiActivityWindows.windowCreated(TiActivityWindows.java:33)

[ERROR] :  TiExceptionHandler:     org.appcelerator.titanium.TiBaseActivity.windowCreated(TiBaseActivity.java:624)

[ERROR] :  TiExceptionHandler:     org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:767)

[ERROR] :  TiExceptionHandler:     org.appcelerator.titanium.TiActivity.onCreate(TiActivity.java:21)

[ERROR] :  TiExceptionHandler:     android.app.Activity.performCreate(Activity.java:7040)

[ERROR] :  TiExceptionHandler:     android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214)

[ERROR] :  TiExceptionHandler:     android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2809)

[ERROR] :  TiExceptionHandler:     android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2931)

[ERROR] :  TiExceptionHandler:     android.app.ActivityThread.-wrap11(Unknown Source:0)

[ERROR] :  TiExceptionHandler:     android.app.ActivityThread$H.handleMessage(ActivityThread.java:1620)

[ERROR] :  TiExceptionHandler:     android.os.Handler.dispatchMessage(Handler.java:105)

[ERROR] :  TiExceptionHandler:     android.os.Looper.loop(Looper.java:173)

[ERROR] :  TiExceptionHandler:     android.app.ActivityThread.main(ActivityThread.java:6698)

[ERROR] :  TiExceptionHandler:     java.lang.reflect.Method.invoke(Native Method)

[ERROR] :  TiExceptionHandler:     com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)

[ERROR] :  TiExceptionHandler:     com.android.internal.os.ZygoteInit.main(ZygoteInit.java:782)

Comments

  1. Jebun Naher 2019-04-20

    Hi [~andreas.pingas], What version of ti.admob module did you use? Please share test case that reproduces the issue so we can replicate on our end and investigate. Thanks!
  2. Andreas Pingas 2019-04-20

    android-4.4.0
       var win = Ti.UI.createWindow();
       
       win.open();
       
       var Admob = require('ti.admob');
       
       var PlayServices = require('ti.playservices');
       
       var ad = Admob.createView({
           height:400,
           adType:Admob.AD_TYPE_BANNER
       });
       
       win.add(ad);
       
       [ERROR] :  TiExceptionHandler: (main) [122,219] Failed resolution of: Lcom/google/android/gms/ads/AdSize;
       [ERROR] :  TiExceptionHandler:
       [ERROR] :  TiExceptionHandler:     dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93)
       [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:490)
       [ERROR] :  TiExceptionHandler:     org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:462)
       [ERROR] :  TiExceptionHandler:     org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:513)
       [ERROR] :  TiExceptionHandler:     org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:496)
       [ERROR] :  TiExceptionHandler:     org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:462)
       [ERROR] :  TiExceptionHandler:     org.appcelerator.titanium.proxy.TiViewProxy.add(TiViewProxy.java:602)
       [ERROR] :  TiExceptionHandler:     ti.modules.titanium.ui.WindowProxy.windowCreated(WindowProxy.java:293)
       [ERROR] :  TiExceptionHandler:     org.appcelerator.titanium.TiActivityWindows.windowCreated(TiActivityWindows.java:33)
       [ERROR] :  TiExceptionHandler:     org.appcelerator.titanium.TiBaseActivity.windowCreated(TiBaseActivity.java:624)
       [ERROR] :  TiExceptionHandler:     org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:767)
       [ERROR] :  TiExceptionHandler:     org.appcelerator.titanium.TiActivity.onCreate(TiActivity.java:21)
       [ERROR] :  TiExceptionHandler:     android.app.Activity.performCreate(Activity.java:7040)
       [ERROR] :  TiExceptionHandler:     android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214)
       [ERROR] :  TiExceptionHandler:     android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2809)
       [ERROR] :  TiExceptionHandler:     android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2931)
       [ERROR] :  TiExceptionHandler:     android.app.ActivityThread.-wrap11(Unknown Source:0)
       [ERROR] :  TiExceptionHandler:     android.app.ActivityThread$H.handleMessage(ActivityThread.java:1620)
       [ERROR] :  TiExceptionHandler:     android.os.Handler.dispatchMessage(Handler.java:105)
       [ERROR] :  TiExceptionHandler:     android.os.Looper.loop(Looper.java:173)
       [ERROR] :  TiExceptionHandler:     android.app.ActivityThread.main(ActivityThread.java:6698)
       [ERROR] :  TiExceptionHandler:     java.lang.reflect.Method.invoke(Native Method)
       [ERROR] :  TiExceptionHandler:     com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
       [ERROR] :  TiExceptionHandler:     com.android.internal.os.ZygoteInit.main(ZygoteInit.java:782)
       
  3. Sharif AbuDarda 2019-05-01

    Hello [~andreas.pingas], Can you get back to us on the status of your issue?
  4. Andreas Pingas 2019-05-03

    I have tested it with SDK 8.0.1 version 11.0.40 and it works properly. With the version 16.1.2 does not work.

JSON Source