title: Android Studio Support Lib SlidePanel
body: <p>I'm trying to make simple SlidingPanel in android studio.
  I've downloaded repositories (Google and Support) in SDK manager, and edited the gradle file by adding following lines:</p>
  
  <pre><code>compile 'com.android.support:support-v4:18.0.0'
  compile 'com.android.support:appcompat-v7:18.0.+'
  </code></pre>
  
  <p>Libs are visible in the project.
  I've also added a layout:</p>
  
  <pre><code>&lt;android.support.v4.widget.SlidingPaneLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:id="@+id/main_layout"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:paddingLeft="@dimen/activity_horizontal_margin"
      android:paddingRight="@dimen/activity_horizontal_margin"
      android:paddingTop="@dimen/activity_vertical_margin"
      android:paddingBottom="@dimen/activity_vertical_margin"
      tools:context=".MainActivity"&gt;
  &lt;include layout="@layout/fragment_menu_panel" android:layout_height="match_parent" android:layout_width="wrap_content"/&gt;
      &lt;RelativeLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:background="#ff333333" &gt;
  
          &lt;WebView
              android:id="@+id/content_text"
              android:layout_width="match_parent"
              android:layout_height="match_parent" /&gt;
  
          &lt;ProgressBar
              android:id="@+id/progressBar1"
              style="?android:attr/progressBarStyleLarge"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_centerHorizontal="true"
              android:layout_centerVertical="true" /&gt;
      &lt;/RelativeLayout&gt;
  
  &lt;/android.support.v4.widget.SlidingPaneLayout&gt;
  </code></pre>
  
  <p>It renders quite ok in the IDE, but when I'm trying to run this application on the device, it crashes with following error:</p>
  
  <pre><code>10-22 14:54:03.633  11099-11099/com.example.myapplication2 E/AndroidRuntime﹕ FATAL EXCEPTION: main
          java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.myapplication2/com.example.myapplication2.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "com.example.myapplication2.MainActivity" on path: DexPathList[[zip file "/data/app/com.example.myapplication2-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.myapplication2-1, /vendor/lib, /system/lib]]
          at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2137)
          at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
          at android.app.ActivityThread.access$600(ActivityThread.java:141)
          at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
          at android.os.Handler.dispatchMessage(Handler.java:99)
          at android.os.Looper.loop(Looper.java:137)
          at android.app.ActivityThread.main(ActivityThread.java:5103)
          at java.lang.reflect.Method.invokeNative(Native Method)
          at java.lang.reflect.Method.invoke(Method.java:525)
          at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
          at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
          at dalvik.system.NativeStart.main(Native Method)
          Caused by: java.lang.ClassNotFoundException: Didn't find class "com.example.myapplication2.MainActivity" on path: DexPathList[[zip file "/data/app/com.example.myapplication2-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.myapplication2-1, /vendor/lib, /system/lib]]
          at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:53)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
          at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
          at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2128)
  </code></pre>
  
  <p>The problem as far as I see that library is not attached to the apk. How can I fix it?</p>