title: App crashing with java.lang.NoClassDefFoundError for com.facebook.FacebookContentProvider after using proguard
body: <p>My app has facebook login and facebook share. I had configured my manifest file as specified in facebook android SDK documentation.</p>
  
  <p>App is working properly in release and debug modes. </p>
  
  <p>After I create release APK with 'minifyEnabled true' , app is crashing at startup with the following log:</p>
  
  <pre><code>java.lang.RuntimeException: Unable to get provider com.facebook.FacebookContentProvider: java.lang.ClassNotFoundException: Didn't find class "com.facebook.FacebookContentProvider" on path: DexPathList[[zip file "/data/app/com.pocketium.trollmonkey-1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
  at android.app.ActivityThread.installProvider(ActivityThread.java:5087)
  at android.app.ActivityThread.installContentProviders(ActivityThread.java:4679)
  at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4619)
  at android.app.ActivityThread.access$1500(ActivityThread.java:155)
  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1378)
  at android.os.Handler.dispatchMessage(Handler.java:102)
  at android.os.Looper.loop(Looper.java:135)
  at android.app.ActivityThread.main(ActivityThread.java:5343)
  at java.lang.reflect.Method.invoke(Native Method)
  at java.lang.reflect.Method.invoke(Method.java:372)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)
  Caused by: java.lang.ClassNotFoundException: Didn't find class "com.facebook.FacebookContentProvider" on path: DexPathList[[zip file "/data/app/com.pocketium.trollmonkey-1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
  at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
  at android.app.ActivityThread.installProvider(ActivityThread.java:5072)
  ... 11 more
  Suppressed: java.lang.ClassNotFoundException: com.facebook.FacebookContentProvider
  at java.lang.Class.classForName(Native Method)
  at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
  at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
  ... 13 more
  Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
  </code></pre>
  
  <p>I tried disabling shrinking and optimization and added keep option to keep facebook classes, but app still crashes. I am new to android. Searched a lot in google, but could not find a solution. </p>
  
  <p><strong>UPDATE Dec 1 , 2015</strong></p>
  
  <p>I tried creating release APK with proguard enabled in linux. There is no issue when I create apk on my linux machine. But the apks that I create in my windows machine as well as mac crashes at start up. I did not change any code while taking build in linux environment. </p>
  
  <p>PS: I tried Dex protector and obfuscated release apk that I created with proguard disabled. APK created by dexprotector is working properly.</p>