title: Android : Application crashes after its configured using progurad
body: <p>I just developed my application and want to release but before that i want to remove the logs and other unnecessary things. The best way i find that to use <a href="http://proguard.sourceforge.net/" rel="nofollow">Proguard</a>. I am using command line so i use the command <code>ant release</code> and my application is built successfully and the new apk file which is generated in /bin directory is <code>&lt;app-name&gt;-release.apk</code>. I installed that apk in my device but after few screens its crashed and when i tried with restating my application and moved to other tabs then its crashed at some points.</p>
  
  <p>Don't know why its happened. so this is the contain of my <code>project.properties</code> file
  <code>target=android-15</code><br>
  <code>proguard.config=proguard-project.txt</code></p>
  
  <p>And this is my <code>proguard-project.txt</code></p>
  
  <pre><code>-optimizationpasses 5
  -dontusemixedcaseclassnames
  -dontskipnonpubliclibraryclasses
  -dontpreverify
  -verbose
  -optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
  -libraryjars smack.jar
  -libraryjars libphonenumber-5.0v1.5.jar
  #-keep class com.** { *; }
  #-keep class org.** { *; }
  
  -keep public class * extends android.app.Activity
  -keep public class * extends android.app.Application
  -keep public class * extends android.app.Service
  -keep public class * extends android.content.BroadcastReceiver
  -keep public class * extends android.content.ContentProvider
  -keep public class * extends android.app.backup.BackupAgentHelper
  -keep public class * extends android.preference.Preference
  -keep public class com.android.vending.licensing.ILicensingService
  
  -keepclasseswithmembernames class * {
  native &lt;methods&gt;;
  }
  
  -keepclasseswithmembers class * {
  public &lt;init&gt;(android.content.Context, android.util.AttributeSet);
  }
  
  -keepclasseswithmembers class * {
  public &lt;init&gt;(android.content.Context, android.util.AttributeSet, int);
  }
  
  -keepclassmembers class * extends android.app.Activity {
  public void *(android.view.View);
  }
  
  -keepclassmembers enum * {
  public static **[] values();
  public static ** valueOf(java.lang.String);
  }
  
  -keep class * implements android.os.Parcelable {
  public static final android.os.Parcelable$Creator *;
  }
  </code></pre>
  
  <p><strong>Error Log:</strong></p>
  
  <pre><code>10-08 07:25:18.356: E/AndroidRuntime(1733): FATAL EXCEPTION: Contact_sync_Service
  10-08 07:25:18.356: E/AndroidRuntime(1733): java.lang.NoClassDefFoundError: com.google.i18n.phonenumbers.PhoneNumberUtil
  10-08 07:25:18.356: E/AndroidRuntime(1733):     at org.sipchat.sipua.ui.ai.run(Unknown 
  Source)
  10-08 07:25:18.356: E/AndroidRuntime(1733):     at java.lang.Thread.run(Thread.java:856)
  10-08 07:26:26.756: E/dalvikvm(1751): Could not find class 'org.jivesoftware.smack.filter.MessageTypeFilter', referenced from method org.sipchat.sipua.ui.ConnectionService.a
  10-08 07:26:26.786: E/dalvikvm(1751): Could not find class 'org.jivesoftware.smack.ConnectionConfiguration', referenced from method org.sipchat.sipua.ui.ConnectionService.onStartCommand
  10-08 07:26:26.806: E/dalvikvm(1751): Could not find class 'org.jivesoftware.smack.ConnectionConfiguration', referenced from method org.sipchat.sipua.ui.af.run
  10-08 07:26:26.956: E/AndroidRuntime(1751): FATAL EXCEPTION: main
  10-08 07:26:26.956: E/AndroidRuntime(1751): java.lang.NoClassDefFoundError: org.jivesoftware.smack.ConnectionConfiguration
  10-08 07:26:26.956: E/AndroidRuntime(1751):     at org.sipchat.sipua.ui.ConnectionService.onStartCommand(Unknown Source)
  10-08 07:26:26.956: E/AndroidRuntime(1751):     at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2359)
  10-08 07:26:26.956: E/AndroidRuntime(1751):     at android.app.ActivityThread.access$1900(ActivityThread.java:123)
  10-08 07:26:26.956: E/AndroidRuntime(1751):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1210)
  10-08 07:26:26.956: E/AndroidRuntime(1751):     at android.os.Handler.dispatchMessage(Handler.java:99)
  10-08 07:26:26.956: E/AndroidRuntime(1751):     at android.os.Looper.loop(Looper.java:137)
  10-08 07:26:26.956: E/AndroidRuntime(1751):     at android.app.ActivityThread.main(ActivityThread.java:4424)
  10-08 07:26:26.956: E/AndroidRuntime(1751):     at java.lang.reflect.Method.invokeNative(Native Method)
  10-08 07:26:26.956: E/AndroidRuntime(1751):     at java.lang.reflect.Method.invoke(Method.java:511)
  10-08 07:26:26.956: E/AndroidRuntime(1751):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
  10-08 07:26:26.956: E/AndroidRuntime(1751):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
  10-08 07:26:26.956: E/AndroidRuntime(1751):     at dalvik.system.NativeStart.main(Native Method)
  </code></pre>
  
  <p><strong>Update :</strong></p>
  
  <p>The packages which are mentioned in error are the packages of jar files which i added already in <code>proguard-project.txt</code></p>
  
  <p>Please make me clear if i went wrong anywhere?<br>Thanks</p>