title: Android: FATAL EXCEPTION: AdWorker #1 java.lang.NoSuchMethodError: java.io.IOException.<init>
body: <p>Since a few weeks i am receiving the following crash reports from users</p>
  
  <pre><code>FATAL EXCEPTION: AdWorker #1
  java.lang.NoSuchMethodError: java.io.IOException.&lt;init&gt;
  at com.google.android.gms.internal.g.f(Unknown Source)
  at com.google.android.gms.internal.g.b(Unknown Source)
  at com.google.android.gms.internal.e.a(Unknown Source)
  at com.google.android.gms.internal.e.a(Unknown Source)
  at com.google.android.gms.internal.bq.ac(Unknown Source)
  at com.google.android.gms.internal.cg$1.run(Unknown Source)
  at com.google.android.gms.internal.ch$1.run(Unknown Source)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
  at java.lang.Thread.run(Thread.java:1096)
  </code></pre>
  
  <p>Other than it has something to do with google ad/cloud services, i had no clue where it comes from. couldn't reproduce it till yesterday i started up a 10 inch emulator and saw immediately the problem. After removing parts of my code i identied to following piece to be the problem.</p>
  
  <pre><code>public void onActivityCreated(Bundle savedInstanceState) {
  
      ............
  
      AdView adView = (AdView)getActivity().findViewById(R.id.adView);
      AdRequest adRequest = new AdRequest.Builder()
      .addTestDevice(AdRequest.DEVICE_ID_EMULATOR)
      .addTestDevice("CED2A4FD2C192C08557081CC37AA9E54")
      .build();
       adView.loadAd(adRequest);
  }
  </code></pre>
  
  <p>The strange thing is that it only happens on 10 inch devices or up. I tested on various different devices/versions. The problem only occurs on 10 inch devices or bigger. Android versions doesnt matter. 2.2 or 4.4 it keeps crashing.</p>
  
  <p>To my understanding i dont have any different layout folders for specific device sizes.
  the xml where my ad is defined looks like:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
      android:id="@+id/mainContainer"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:fillViewport="true"
      android:orientation="vertical" &gt;
  
      &lt;LinearLayout
          android:id="@+id/titleContainer"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:orientation="horizontal" &gt;
      &lt;/LinearLayout&gt;
  
      &lt;com.viewpagerindicator.TabPageIndicator
          android:id="@+id/indicator"
          style="@style/tabsbackground"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content" /&gt;
  
      &lt;android.support.v4.view.ViewPager
          android:id="@+id/pager"
          android:layout_width="fill_parent"
          android:layout_height="0dp"
          android:layout_weight="1" /&gt;
  
      &lt;LinearLayout
          android:id="@+id/adViewContainer"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_alignParentBottom="true"
          android:orientation="horizontal" &gt;
  
          &lt;com.google.android.gms.ads.AdView
              xmlns:ads="http://schemas.android.com/apk/res-auto"
              android:id="@+id/adView"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              ads:adUnitId="@string/adid"
              ads:adSize="SMART_BANNER"
              android:gravity="bottom"
              /&gt;
      &lt;/LinearLayout&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>I tried out different banner sizes. Doesnt help. Removing the ad request code solves the problem, but also removes the advertising.
  Anyone a clue?</p>