title: Android: java.lang.NoSuchFieldError: android.os.Build.SERIAL
body: <p>In android, I have the following error thrown:</p>
  
  <pre><code>java.lang.NoSuchFieldError: android.os.Build.SERIAL
  </code></pre>
  
  <p>It happens only on certain devices, for instance: "sec_smdk6410" or "sdkDemo".</p>
  
  <p>I have tried to catch the exception but it ignores the try/catch block.</p>
  
  <pre><code>    try {
          return android.os.Build.SERIAL;
      } catch (Exception e) {
          return null;
      }
  </code></pre>
  
  <p>Is there anyway I can detect if this error will be thrown in order to adapt my code ?</p>
  
  <p>Thanks.</p>