2
在我的Java程序中,我動態下載並加載SWT庫。所以我使用這個片段來檢查下載的jar是否有效。用Proguard跳過特定的警告/註釋?
try {
Class.forName("org.eclipse.swt.SWT");
//valid swt.jar
} catch (Exception e) {
//wrong swt.jar
}
但是當我使用ProGuard的混淆我的罐子上面的生產線生產下列注意事項/警告
[proguard] Note: org.MyClass: can't find dynamically referenced class org.eclipse.swt.SWT
[proguard] Note: there were 1 unresolved dynamic references to classes or interfaces.
我當然可以禁用任何音符爲整個類
-dontnote org.MyClass
但我想只禁用此特定筆記並查看其他人的同一個班級。
可能嗎?我檢查了Usage Manual,但無法找到如何實現它。
我會在星期一嘗試一下,謝謝! –
請參閱新問題:http://stackoverflow.com/questions/14098225/what-are-features-of-using-proguard-in-project-with-protocol-buffers –