I recently installed ADT 16, which is now highlighting a problem that I have the obsolete option -keepclasseswithmembernames instead of -keepclasseswithnames. I’ve fixed the proguard.cfg file already but lint refuses to recognise the fix and is preventing Eclipse from building the file.
My current proguard.cfg file:
-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-verbose
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
-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
-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet);
}
-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet, int);
}
-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}
-keep class * implements android.os.Parcelable {
public static final android.os.Parcelable$Creator *;
}
In the Lint warnings window, select the warning and click the ‘Ignore type button’ (upper right corner, looks like an eraser or something).
After that, go to http://b.android.com and file a bug.
Update: ADT fails to refresh non-Java and non-XML files, here’s the link to the issue:
http://code.google.com/p/android/issues/detail?id=23196
As newer answers suggest, clicking ‘Refresh’ will clear the error.