title: Application crashed on setContentView android with no stack trace
body: <p>Application crashed when it executes the line <code>setContentView(R.layout.activity_main);</code> in my mobile <strong>samsung galaxy s4 android 5.0 custom</strong> it works fine. but i tried 3 other (android 4.0+) mobiles and bluestack it application crashed.</p>
  
  <p>i can't track the bug where is wrong in my app. there is no <strong>stack trace</strong> of exception, application just crashed and closed silently.
  any help!</p>
  
  <p>issue is not with layout file because it works fine on my mobile only.</p>
  
  <p>Layout is drawer layout and using fragment.</p>
  
  <p>here is build.gradel</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 23
      buildToolsVersion "23.0.2"
  
  defaultConfig {
      applicationId "com.iorzb.malik.proximity"
      minSdkVersion 17
      targetSdkVersion 23
      versionCode 1
      versionName "1.0"
  }
  buildTypes {
      release {
          minifyEnabled false
          proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
      }
  }
  }
  
  dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      testCompile 'junit:junit:4.12'
      compile 'com.android.support:appcompat-v7:23.2.0'
      compile 'com.android.support:design:23.2.0'
      compile 'com.google.android.gms:play-services:8.1.0'
      compile 'com.google.android.gms:play-services-location:7.5.0'
      compile 'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client:4.1.2'
      compile files('libs/your jar volley.jar')
      compile 'com.google.code.gson:gson:2.6.2'
  }
  </code></pre>
  
  <p>here is manifest file.</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.iorzb.malik.proximity"
      android:versionCode="1"
      android:versionName="1.0"&gt;
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.READ_PHONE_STATE" /&gt;
  
  &lt;application
      android:name=".Help.AppController"
      android:allowBackup="true"
      android:icon="@mipmap/ic_launcher"
      android:label="@string/app_name"
      android:largeHeap="true"
      android:supportsRtl="true"
      android:theme="@style/AppTheme"&gt;
      &lt;activity
          android:name=".MainActivity"
          android:configChanges="orientation|keyboardHidden"
          android:label="@string/app_name"
          android:screenOrientation="portrait"
          android:theme="@style/AppTheme.NoActionBar"&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;/application&gt;
  </code></pre>
  
  <p></p>
  
  <p><strong>here is actvity_main.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.v4.widget.DrawerLayout `xmlns:android="http://schemas.android.com/apk/res/android"`
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:id="@+id/drawer_layout"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:fitsSystemWindows="true"
      tools:openDrawer="start"&gt;
  
      &lt;include
          layout="@layout/app_bar_main"
          android:layout_width="match_parent"
          android:layout_height="match_parent" /&gt;
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="vertical"&gt;
  
          &lt;FrameLayout
              android:id="@+id/container_body"
              android:layout_width="fill_parent"
              android:layout_height="0dp"
              android:layout_weight="1" /&gt;
  
  
      &lt;/LinearLayout&gt;
      &lt;android.support.design.widget.NavigationView
          android:id="@+id/nav_view"
          android:layout_width="wrap_content"
          android:layout_height="match_parent"
          android:layout_gravity="start"
          android:fitsSystemWindows="true"
          app:headerLayout="@layout/nav_header_main"
          app:menu="@menu/activity_main_drawer" /&gt;
  
  &lt;/android.support.v4.widget.DrawerLayout&gt;
  </code></pre>
  
  <p><strong>Here is app_bar_main.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:fitsSystemWindows="true"
      tools:context="com.iorzb.malik.proximity.MainActivity"&gt;
      &lt;android.support.design.widget.AppBarLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:theme="@style/AppTheme.AppBarOverlay"&gt;
          &lt;android.support.v7.widget.Toolbar
              android:id="@+id/toolbar"
              android:layout_width="match_parent"
              android:layout_height="?attr/actionBarSize"
              android:background="?attr/colorPrimary"
              app:popupTheme="@style/AppTheme.PopupOverlay" /&gt;
      &lt;/android.support.design.widget.AppBarLayout&gt;
      &lt;include layout="@layout/content_main" /&gt;
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>
  
  <p><strong>Here is nav_header_main.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="@dimen/nav_header_height"
      android:background="@drawable/side_nav_bar"
      android:gravity="bottom"
      android:orientation="vertical"
      android:paddingBottom="@dimen/activity_vertical_margin"
      android:paddingLeft="@dimen/activity_horizontal_margin"
      android:paddingRight="@dimen/activity_horizontal_margin"
      android:paddingTop="@dimen/activity_vertical_margin"
      android:theme="@style/ThemeOverlay.AppCompat.Dark"&gt;
  
      &lt;ImageView
          android:id="@+id/imageView"
          android:background="@drawable/round_corner"
          android:layout_marginTop="20dp"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:scaleType="fitXY"
          android:paddingTop="@dimen/nav_header_vertical_spacing"
          android:src="@drawable/logo_proximity" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p><strong>Here isactivity_main_drawer.xml (navigation menu)</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;menu xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  
      &lt;group android:checkableBehavior="single"&gt;
          &lt;item
              android:id="@+id/nav_home"
              android:icon="@mipmap/ic_home_black_36dp"
              android:title="Home" /&gt;
          &lt;item
              android:id="@+id/nav_map"
              android:icon="@mipmap/ic_directions_car_black_36dp"
              android:title="Driving Directions" /&gt;
          &lt;item
              android:id="@+id/nav_my_stores"
              android:icon="@mipmap/ic_shopping_cart_black_36dp"
              android:title="My Stores" /&gt;
          &lt;item
              android:id="@+id/nav_new_stores"
              android:icon="@drawable/signup_icon"
              android:title="New Stores" /&gt;
      &lt;/group&gt;
  
  
  &lt;/menu&gt;
  </code></pre>
  
  <p><strong>Here is MainActivity.class</strong></p>
  
  <pre><code>public class MainActivity extends AppCompatActivity{
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
   }
  }
  </code></pre>