title: Unable to instantiate activity ComponentInfo only on GooglePlay
body: <p>I've built an android app that uses android maps API V2, and it works fine with me.</p>
  
  <p>when I submitted the app to Google play I got many exceptions and people said that the app is not working. </p>
  
  <p>the system can't find the MainActivity.</p>
  
  <p>The StackTrace is </p>
  
  <pre><code>java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.mostafa.cairometrobeta/com.mostafa.cairometrobeta.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "com.mostafa.cairometrobeta.MainActivity" on path: /system/framework/com.google.android.maps.jar:/data/app/com.mostafa.cairometrobeta-1.apk
  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2106)
  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
  at android.app.ActivityThread.access$600(ActivityThread.java:141)
  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
  at android.os.Handler.dispatchMessage(Handler.java:99)
  at android.os.Looper.loop(Looper.java:137)
  at android.app.ActivityThread.main(ActivityThread.java:5041)
  at java.lang.reflect.Method.invokeNative(Native Method)
  at java.lang.reflect.Method.invoke(Method.java:511)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
  at dalvik.system.NativeStart.main(Native Method)
  Caused by: java.lang.ClassNotFoundException: Didn't find class "com.mostafa.cairometrobeta.MainActivity" on path: /system/framework/com.google.android.maps.jar:/data/app/com.mostafa.cairometrobeta-1.apk
  at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
  at android.app.Instrumentation.newActivity(Instrumentation.java:1054)
  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2097)
  ... 11 more
  </code></pre>
  
  <p>and the Manifest file </p>
  
  <pre><code>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.mostafa.cairometrobeta"
      android:versionCode="7"
      android:versionName="1.0.2"
       android:installLocation="auto"&gt;
  
      &lt;uses-sdk
          android:minSdkVersion="10"
          android:targetSdkVersion="10" /&gt;
  
      &lt;uses-feature
          android:glEsVersion="0x00020000"
          android:required="true"/&gt;
      &lt;permission android:name="com.mostafa.cairometrobeta.permission.MAPS_RECEIVE" android:protectionLevel="signature"/&gt;
      &lt;uses-permission android:name="com.mostafa.cairometrobeta.permission.MAPS_RECEIVE"/&gt;
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
      &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/&gt;
      &lt;uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt;
  
      &lt;application
          android:icon="@drawable/ic_launcher"
          android:label="@string/app_name"
          android:theme="@style/AppTheme" &gt;
                  &lt;uses-library android:name="com.google.android.maps" /&gt;
          &lt;activity
              android:name="MainActivity"
              android:label="@string/app_name" &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="GuideActivity"&gt;&lt;/activity&gt;
          &lt;activity android:name="GalleryActivity"&gt;&lt;/activity&gt;
          &lt;activity android:name="NearbyActivity"&gt;&lt;/activity&gt;
          &lt;activity android:name="SettingsActivity"&gt;&lt;/activity&gt;
          &lt;meta-data
              android:name="com.google.android.maps.v2.API_KEY"
              android:value="MapKey" /&gt;
      &lt;/application&gt;
  </code></pre>
  
  <p></p>
  
  <p>What's the problem ?!</p>