Androidでapkを出力時にproguard.cfgで下記のようなエラーになりました。
Obsolete proguard file; use -keepclasseswithmembers instead of -keepclasseswithmembernames
昨日アップデートとしたときにRun Android Lintというメニューが追加になっていたので何か変わったのでしょう。
insted of なので下記のように変更してみました。
<変更前>
-keepclasseswithmembernames class * { native <methods>; } -keepclasseswithmembernames class * { public <init>(android.content.Context, android.util.AttributeSet); } -keepclasseswithmembernames class * { public <init>(android.content.Context, android.util.AttributeSet, int); } -keepclassmembers enum * { public static **[] values(); public static ** valueOf(java.lang.String); }
<変更後>
-keepclasseswithmembernames class * { native <methods>; } -keepclasseswithmembers class * { public <init>(android.content.Context, android.util.AttributeSet); } -keepclasseswithmembers class * { public <init>(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); }
一つずつ試してみて2つだけ直すだけで特に問題なくapkが出力できるようになりました。
全部直していいのかわからないので取りあえずです。