解决方法:
方法一:在 \android-sdk-windows\tools\lib\目录下新建proguard.cfg文件 内容如下:
1 -optimizationpasses 5 2 -dontusemixedcaseclassnames 3 -dontskipnonpubliclibraryclasses 4 -dontpreverify 5 -verbose 6 -optimizations !code/simplification/arithmetic,!field/*,!class/merging/* 7 -keep public class * extends android.app.Activity 8 -keep public class * extends android.app.Application 9 -keep public class * extends android.app.Service 10 -keep public class * extends android.content.BroadcastReceiver 11 -keep public class * extends android.content.ContentProvider 12 -keep public class com.android.vending.licensing.ILicensingService 13 -keepclasseswithmembernames class * { 14 native ; 15 } 16 -keepclasseswithmembernames class * { 17 public (android.content.Context, android.util.AttributeSet); 18 } 19 -keepclasseswithmembernames class * { 20 public (android.content.Context, android.util.AttributeSet, int); 21 } 22 -keepclassmembers enum * { 23 public static **[] values(); 24 public static ** valueOf(java.lang.String); 25 } 26 -keep class * implements android.os.Parcelable { 27 public static final android.os.Parcelable$Creator *; 28 }
方法二:通过Android SDK and AVD Manager更新SDK。