Titanium JIRA Archive
Appcelerator Community (AC)

[AC-6332] ti.playservices 16.1.3 and later versions are not compatible with ti.admob and i get the following:

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionNeeds more info
Resolution Date2019-08-23T16:41:28.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labels8.1.0.GA, android
ReporterAndreas Pingas
AssigneeShak Hossain
Created2019-08-05T09:02:39.000+0000
Updated2019-08-25T17:14:37.000+0000

Description

[ERROR] :  TiExceptionHandler: (main) [507,2896] 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:492)

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

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

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

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

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

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

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

[ERROR] :  TiExceptionHandler:     ti.modules.titanium.ui.widget.tabgroup.TiUITab.getContentView(TiUITab.java:52)

[ERROR] :  TiExceptionHandler:     ti.modules.titanium.ui.widget.tabgroup.TiUIAbstractTabGroup$TabFragment.onCreateView(TiUIAbstractTabGroup.java:539)

[ERROR] :  TiExceptionHandler:     android.support.v4.app.Fragment.performCreateView(Fragment.java:2346)

[ERROR] :  TiExceptionHandler:     android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1428)

[ERROR] :  TiExceptionHandler:     android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1759)

[ERROR] :  TiExceptionHandler:     android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1827)

[ERROR] :  TiExceptionHandler:     android.support.v4.app.BackStackRecord.executeOps(BackStackRecord.java:797)

[ERROR] :  TiExceptionHandler:     android.support.v4.app.FragmentManagerImpl.executeOps(FragmentManager.java:2596)

[ERROR] :  TiExceptionHandler:     android.support.v4.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2383)

[ERROR] :  TiExceptionHandler:     android.support.v4.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2338)

[ERROR] :  TiExceptionHandler:     android.support.v4.app.FragmentManagerImpl.execSingleAction(FragmentManager.java:2215)

[ERROR] :  TiExceptionHandler:     android.support.v4.app.BackStackRecord.commitNowAllowingStateLoss(BackStackRecord.java:649)

[ERROR] :  TiExceptionHandler:     android.support.v4.app.FragmentPagerAdapter.finishUpdate(FragmentPagerAdapter.java:145)

[ERROR] :  TiExceptionHandler:     android.support.v4.view.ViewPager.populate(ViewPager.java:1238)

[ERROR] :  TiExceptionHandler:     android.support.v4.view.ViewPager.populate(ViewPager.java:1086)

[ERROR] :  TiExceptionHandler:     android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1616)

[ERROR] :  TiExceptionHandler:     android.view.View.measure(View.java:22024)

[ERROR] :  TiExceptionHandler:     org.appcelerator.titanium.view.TiCompositeLayout.constrainChild(TiCompositeLayout.java:680)

[ERROR] :  TiExceptionHandler:     org.appcelerator.titanium.view.TiCompositeLayout.onMeasure(TiCompositeLayout.java:513)

[ERROR] :  TiExceptionHandler:     android.view.View.measure(View.java:22024)

[ERROR] :  TiExceptionHandler:     android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6584)

[ERROR] :  TiExceptionHandler:     android.widget.FrameLayout.onMeasure(FrameLayout.java:185)

[ERROR] :  TiExceptionHandler:     android.support.v7.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:141)

[ERROR] :  TiExceptionHandler:     android.view.View.measure(View.java:22024)

[ERROR] :  TiExceptionHandler:     android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6584)

[ERROR] :  TiExceptionHandler:     android.support.v7.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:400)

[ERROR] :  TiExceptionHandler:     android.view.View.measure(View.java:22024)

[ERROR] :  TiExceptionHandler:     android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6584)

[ERROR] :  TiExceptionHandler:     android.widget.FrameLayout.onMeasure(FrameLayout.java:185)

[ERROR] :  TiExceptionHandler:     android.view.View.measure(View.java:22024)

[ERROR] :  TiExceptionHandler:     android.widget.LinearLayout.measureVertical(LinearLayout.java:958)

[ERROR] :  TiExceptionHandler:     android.widget.LinearLayout.onMeasure(LinearLayout.java:685)

[ERROR] :  TiExceptionHandler:     android.view.View.measure(View.java:22024)

[ERROR] :  TiExceptionHandler:     android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6584)

[ERROR] :  TiExceptionHandler:     android.widget.FrameLayout.onMeasure(FrameLayout.java:185)

[ERROR] :  TiExceptionHandler:     com.android.internal.policy.DecorView.onMeasure(DecorView.java:724)

[ERROR] :  TiExceptionHandler:     android.view.View.measure(View.java:22024)

[ERROR] :  TiExceptionHandler:     android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2446)

[ERROR] :  TiExceptionHandler:     android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1534)

[ERROR] :  TiExceptionHandler:     android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1787)

[ERROR] :  TiExceptionHandler:     android

Comments

  1. Rakhi Mitro 2019-08-05

    Hello, Thanks for reaching out to us. Are you using latest SDK 8.0.2.GA? Can you please share a sample project for us to test the issue on our end?
  2. Andreas Pingas 2019-08-25

    Please check the following example.
           <modules>
             <module platform="android">ti.admob</module>
             <module platform="android" version="16.1.3">ti.playservices</module>
           </modules>
       
       Admob = require('ti.admob');
       PlayServices = require('ti.playservices');
       	
       var win = Ti.UI.createWindow();
       	
       if (PlayServices.isGooglePlayServicesAvailable() == PlayServices.RESULT_SUCCESS) {
       		
       	var ad = Admob.createView({
       	    height:400,
       		testing:true,
       	    adType:Admob.AD_TYPE_BANNER,
       		adUnitId:'ca-app-pub-3940256099942544/6300978111',
       	    adBackgroundColor:'#FFF',
       		testDevices:[Admob.SIMULATOR_ID],
       	    requestAgent:'Test',
       	    tagForChildDirectedTreatment:false
       	});
       	
       	win.add(ad);
       	
       }
       
       win.open();
       
       [ERROR] :  TiExceptionHandler: (main) [251,645] 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:492)
       [ERROR] :  TiExceptionHandler:     org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:464)
       [ERROR] :  TiExceptionHandler:     org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:515)
       [ERROR] :  TiExceptionHandler:     org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:498)
       [ERROR] :  TiExceptionHandler:     org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:464)
       [ERROR] :  TiExceptionHandler:     org.appcelerator.titanium.proxy.TiViewProxy.add(TiViewProxy.java:604)
       [ERROR] :  TiExceptionHandler:     ti.modules.titanium.ui.WindowProxy.windowCreated(WindowProxy.java:321)
       [ERROR] :  TiExceptionHandler:     org.appcelerator.titanium.TiActivityWindows.windowCreated(TiActivityWindows.java:57)
       [ERROR] :  TiExceptionHandler:     org.appcelerator.titanium.TiBaseActivity.windowCreated(TiBaseActivity.java:578)
       [ERROR] :  TiExceptionHandler:     org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:726)
       [ERROR] :  TiExceptionHandler:     org.appcelerator.titanium.TiActivity.onCreate(TiActivity.java:47)
       [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)
       

JSON Source