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

ti.playservices 16.1.3 and later versions are not compatible with ti.admob and i get the following:

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Admob
    • Labels:

      Description

      Please check the following example.

          <modules>
              <module platform="android" version="4.4.0">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)
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              andreas.pingas Andreas Pingas
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:

                Git Integration