java.lang.RuntimeException: Unable to start activity ComponentInfo When add recyclerview
<p>I added recyclerview and then When I run application it stops.</p>

<p>1)MainActivity.java</p>

<pre><code>public class MainActivity extends AppCompatActivity
    implements NavigationView.OnNavigationItemSelectedListener {

RecyclerView recyclerView;
RecyclerView.LayoutManager layoutManager;
RecyclerView.Adapter adapter;

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
   Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
    setSupportActionBar(toolbar);

    recyclerView = (RecyclerView) findViewById(R.id.card_relative_1_9);

    layoutManager = new LinearLayoutManager(this);
    recyclerView.setLayoutManager(layoutManager);

    adapter = new RecyclerAdapter();
    recyclerView.setAdapter(adapter);


    DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
    ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(
            this, drawer, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close);
    drawer.addDrawerListener(toggle);
    toggle.syncState();

    NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view);
    navigationView.setNavigationItemSelectedListener(this);

    android.app.FragmentManager fm = getFragmentManager();
    fm.beginTransaction().add(R.id.content_frame, new about_fragment()).commit();
}

@Override
public void onBackPressed() {
    DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
    if (drawer.isDrawerOpen(GravityCompat.START)) {
        drawer.closeDrawer(GravityCompat.START);
    } else {
        super.onBackPressed();
    }
}

@Override
public boolean onCreateOptionsMenu(Menu menu) {
    // Inflate the menu; this adds items to the action bar if it is present.
    getMenuInflater().inflate(R.menu.main, menu);
    return true;
}

@Override
public boolean onOptionsItemSelected(MenuItem item) {
    // Handle action bar item clicks here. The action bar will
    // automatically handle clicks on the Home/Up button, so long
    // as you specify a parent activity in AndroidManifest.xml.
    int id = item.getItemId();

    //noinspection SimplifiableIfStatement
    if (id == R.id.action_settings) {
        return true;
    }

    return super.onOptionsItemSelected(item);
}

@SuppressWarnings("StatementWithEmptyBody")
@Override
public boolean onNavigationItemSelected(MenuItem item) {
    // Handle navigation view item clicks here.
    android.app.FragmentManager fn = getFragmentManager();
    int id = item.getItemId();

    if (id == R.id.nav_9) {
          fn.beginTransaction().replace(R.id.content_frame, new first_class_9()).commit();

    } else if (id == R.id.nav_10) {
        fn.beginTransaction().replace(R.id.content_frame, new first_class_10()).commit();

    } else if (id == R.id.nav_11) {
        fn.beginTransaction().replace(R.id.content_frame, new first_class_11()).commit();

    } else if (id == R.id.nav_12) {
        fn.beginTransaction().replace(R.id.content_frame, new first_class_12()).commit();

    } else if (id == R.id.nav_aboutUs) {
        fn.beginTransaction().replace(R.id.content_frame, new about_fragment()).commit();

    } else if (id == R.id.nav_feedback) {
        fn.beginTransaction().replace(R.id.content_frame, new feedback_fragment()).commit();

    }

    DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
    drawer.closeDrawer(GravityCompat.START);
    return true;
}


}
</code></pre>

<p>2)RecyclerAdapter.java</p>

<pre><code>public class RecyclerAdapter extends RecyclerView.Adapter&lt;RecyclerAdapter.ViewHolder&gt; {

    private String[] SubTxt = {"NCERT Solution",
            "Notes",
            "Sample Papers"};


    private int[] SubImage = { R.drawable.ic_answers_black_48dp,
            R.drawable.ic_notes_black_48dp,
            R.drawable.ic_sample_papers_black_48dp};

    class ViewHolder extends RecyclerView.ViewHolder{

        public int currentItem;
        public ImageView itemImage;
        public TextView itemTitle;


        public ViewHolder(View itemView) {
            super(itemView);
            itemImage = (ImageView)itemView.findViewById(R.id.SubImage);
            itemTitle = (TextView)itemView.findViewById(R.id.SubTxt);


            itemView.setOnClickListener(new View.OnClickListener() {
                @Override public void onClick(View v) {
                    int position = getAdapterPosition();

                    Snackbar.make(v, "Click detected on item " + position,
                            Snackbar.LENGTH_LONG)
                            .setAction("Action", null).show();

                }
            });
        }
    }

    @Override
    public ViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
        View v = LayoutInflater.from(viewGroup.getContext())
                .inflate(R.layout.recycler_1_9, null);
        ViewHolder viewHolder = new ViewHolder(v);
        return viewHolder;
    }

    @Override
    public void onBindViewHolder(ViewHolder viewHolder, int i) {
        viewHolder.itemTitle.setText(SubTxt[i]);
        viewHolder.itemImage.setImageResource(SubImage[i]);
    }

    @Override
    public int getItemCount() {
        return SubTxt.length;
    }
}
</code></pre>

<p>3)recycler_1_9.xml</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
</code></pre>

<p></p>

<pre><code>&lt;RelativeLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent"&gt;

    &lt;ImageView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:id="@+id/SubImage"
        android:padding="10dp"
        android:src="@drawable/ic_answers_black_48dp"/&gt;

    &lt;TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="NAME"
        android:id="@+id/SubTxt"
        android:padding="10dp"
        android:layout_alignParentTop="true"
        android:layout_toRightOf="@+id/SubImage"/&gt;


&lt;/RelativeLayout&gt;
</code></pre>

<p></p>

<p>4)first_class_9.xml</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/frame_nine_page_first"&gt;



 &lt;android.support.v7.widget.RecyclerView


android:id="@+id/recycler_nine_page_first"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
class="android.support.v7.widget.RecyclerView"/&gt;
&lt;/LinearLayout&gt;
</code></pre>

<p>MyProject</p>

<p><a href="https://drive.google.com/file/d/0B_YQAdQ2qIfiYjI2R2JTWU4yQVE/view?usp=sharing" rel="nofollow">https://drive.google.com/file/d/0B_YQAdQ2qIfiYjI2R2JTWU4yQVE/view?usp=sharing</a></p>