title: Android Works in Emulator/Arc Welder but crash ClassNotFoundException on GenyMotion
body: <p>I'm trying to run my app in GenyMotion, but I get the following error:</p>
  
  <blockquote>
    <p>FATAL EXCEPTION: main
        java.lang.RuntimeException: Unable to start activity ComponentInfo{com.voopter/com.myapp.splash.Splash}:
    android.view.InflateException: Binary XML file line #14: Error
    inflating class com.myapp.widgets.DosisRegularTextView
                at android.app.ActivityThread.performLaunchActivity</p>
  </blockquote>
  
  <p>My XML:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
       &gt;
  
      &lt;ImageView
          android:id="@+id/imageView1"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:scaleType="centerCrop"
          android:background="@drawable/bg_splash" /&gt;
  
      &lt;com.myapp.widgets.DosisRegularTextView
          android:id="@+id/dosisBoldTextView1"
          android:textSize="20sp"
          android:textColor="#5C5C5C"
          android:visibility="gone"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_below="@+id/imageView1"
          android:layout_centerHorizontal="true"
          android:layout_marginTop="20dp"
          android:text="@string/splash" /&gt;
  
      &lt;com.myapp.widgets.DosisRegularTextView
          android:id="@+id/DosisRegularTextView01"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentBottom="true"
          android:layout_centerHorizontal="true"
          android:layout_marginBottom="15dp"
          android:text="@string/splash_versao"
          android:textColor="#5C5C5C"
          android:textSize="14sp" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>If I simply comment out the <code>DosisRegularTextView</code> in my xml, the error shifts to for other place. If I comment that out, it shifts to another, and so on... It never ends. Can be in class, xml, Handler, etc.</p>
  
  <p>My DosisRegularTextView:</p>
  
  <pre class="lang-java prettyprint-override"><code>    public class DosisRegularTextView extends TextView {
  
      public DosisRegularTextView(Context context) {
          super(context);
          if (!isInEditMode())
              setFont();
      }
  
      public DosisRegularTextView(Context context, AttributeSet attrs) {
          super(context, attrs);
          if (!isInEditMode())
              setFont();
      }
  
      public DosisRegularTextView(Context context, AttributeSet attrs, int defStyle) {
          super(context, attrs, defStyle);
          if (!isInEditMode())
              setFont();
      }
  
      private void setFont() {
          if (!isInEditMode())
              setTypeface(Applic.typefaceDosisRegular);
      }
  }
  </code></pre>
  
  <p>My Android Manifest:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.myapp"
      android:versionCode="2"
      android:versionName="2.0" &gt;
  
      &lt;uses-sdk
          android:minSdkVersion="11"
          android:targetSdkVersion="19" /&gt;
  
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.WRITE_INTERNAL_STORAGE" /&gt;
      &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
      &lt;uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /&gt;
      &lt;uses-permission android:name="android.permissions.READ_DATABASE" /&gt;
      &lt;uses-permission android:name="android.permissioms.WRITE_DATABASE" /&gt;
      &lt;uses-permission android:name="android.permission.STORAGE" /&gt;
      &lt;uses-permission android:name="android.permission.MANAGE_DOCUMENTS" /&gt;
      &lt;uses-permission android:name="android.permission.USE_CREDENTIALS" /&gt;
      &lt;uses-permission android:name="android.permission.SET_DEBUG_APP" /&gt;
  
      &lt;!-- PARSE --&gt;
      &lt;uses-permission android:name="android.permission.WAKE_LOCK" /&gt;
      &lt;uses-permission android:name="android.permission.VIBRATE" /&gt;
      &lt;uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /&gt;
      &lt;uses-permission android:name="android.permission.GET_ACCOUNTS" /&gt;
      &lt;uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /&gt;
  
      &lt;uses-feature
          android:name="android.hardware.camera"
          android:required="false"  /&gt;
      &lt;uses-feature
          android:name="android.hardware.location"
          android:required="false" /&gt;
      &lt;uses-feature
          android:name="android.hardware.location.gps"
          android:required="false" /&gt;
  
      &lt;permission
          android:name="com.myapp.permission.C2D_MESSAGE"
          android:protectionLevel="signature" /&gt;
  
      &lt;uses-permission android:name="com.myapp.permission.C2D_MESSAGE" /&gt;
  
      &lt;uses-permission android:name="android.permission.READ_PHONE_STATE" /&gt; &lt;!-- PARSE --&gt;
      &lt;application
          android:name=".Applic"
          android:allowBackup="true"
          android:icon="@drawable/ico_app"
          android:label="@string/app_name"
          android:theme="@style/AppTheme" &gt;
  
          &lt;!-- &lt;meta-data android:name="com.google.android.gms.version" android:value="7571000" /&gt; --&gt;
  
          &lt;meta-data
              android:name="com.google.android.gms.version"
              android:value="@integer/google_play_services_version" /&gt;
          &lt;meta-data
              android:name="com.google.android.geo.API_KEY"
              android:value="11111" /&gt;
          &lt;meta-data
              android:name="com.facebook.sdk.ApplicationId"
              android:value="@string/app_id" /&gt;
  
          &lt;!--&lt;meta-data--&gt;
              &lt;!--android:name="com.facebook.sdk.ApplicationId"--&gt;
              &lt;!--android:value="@string/app_id" /&gt;--&gt;
          &lt;!--&lt;meta-data--&gt;
              &lt;!--android:name="com.google.android.maps.v2.API_KEY"--&gt;
              &lt;!--android:value="xxxx" /&gt;--&gt;
  
          &lt;activity android:name="com.facebook.FacebookActivity"
              android:configChanges=
                  "keyboard|keyboardHidden|screenLayout|screenSize|orientation"
              android:theme="@android:style/Theme.Translucent.NoTitleBar"
              android:label="@string/app_name" /&gt;
  
          &lt;meta-data
              android:name="com.facebook.sdk.ApplicationName"
              android:value="@string/facebook_app_name" /&gt;
  
  
          &lt;!--    Chave facebook homologacao   - --&gt;
          &lt;!--&lt;provider--&gt;
              &lt;!--android:name="com.facebook.FacebookContentProvider"--&gt;
              &lt;!--android:authorities="com.facebook.app.FacebookContentProvider1111111111"--&gt;
              &lt;!--android:exported="true" /&gt;--&gt;
  
  
          &lt;!--    Chave facebook producao   - --&gt;
          &lt;provider
              android:name="com.facebook.FacebookContentProvider"
              android:authorities="com.facebook.app.FacebookContentProvider11111111"
              android:exported="true" /&gt;
  
          &lt;receiver android:name=".login.enter.social.MyFacebookBroadcastReceiver" &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="com.facebook.platform.AppCallResultBroadcast" /&gt;
              &lt;/intent-filter&gt;
          &lt;/receiver&gt;
  
          &lt;activity
              android:name=".Home"
              android:label="@string/app_name"
              android:screenOrientation="portrait" &gt;
          &lt;/activity&gt;
          &lt;activity
              android:name=".buscar.calendar.CalendarHost"
              android:label="@string/app_name"
              android:screenOrientation="portrait" &gt;
          &lt;/activity&gt;
  
          &lt;activity
              android:name=".splash.Splash"
              android:label="@string/app_name"
              android:screenOrientation="portrait" &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
  
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
          &lt;activity
              android:name=".login.Login"
              android:label="@string/app_name"
              android:screenOrientation="portrait" &gt;
          &lt;/activity&gt;
  
          &lt;!-- PARSE --&gt;
          &lt;service android:name="com.parse.PushService" /&gt;
  
          &lt;receiver
              android:name="com.parse.ParsePushBroadcastReceiver"
              android:exported="false" &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="com.parse.push.intent.RECEIVE" /&gt;
                  &lt;action android:name="com.parse.push.intent.DELETE" /&gt;
                  &lt;action android:name="com.parse.push.intent.OPEN" /&gt;
              &lt;/intent-filter&gt;
          &lt;/receiver&gt;
          &lt;receiver
              android:name="com.parse.GcmBroadcastReceiver"
              android:permission="com.google.android.c2dm.permission.SEND" &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="com.google.android.c2dm.intent.RECEIVE" /&gt;
                  &lt;action android:name="com.google.android.c2dm.intent.REGISTRATION" /&gt;
  
                  &lt;!-- IMPORTANT: Change "com.parse.starter" to match your app's package name. --&gt;
                  &lt;category android:name="com.myapp" /&gt;
              &lt;/intent-filter&gt;
          &lt;/receiver&gt;
      &lt;/application&gt;
  &lt;/manifest&gt;
  </code></pre>
  
  <p>The strangest part is that it runs fine in Android Studio Emulator and ARC Welder. It only crashes on GenyMotion (even using an apk installation).</p>
  
  <p>Tried to update Google Play service and getting login, but doesn't work.</p>
  
  <p>What's happening here?</p>