也許有人可以幫助我。 如何生成類似於位於android sdk-platform中的android.jar的jar庫。 應該刪除所有方法的實現,並與throw new RuntimeException("Stub!");
這樣的替換:只有可用方法和成員列表的庫jar生成
AppWidgetManager() { throw new RuntimeException("Stub!"); }
public NdefMessage(NdefRecord[] records) { throw new RuntimeException("Stub!"); }
public NdefRecord[] getRecords() { throw new RuntimeException("Stub!"); }
所有公共成員也存在。
你爲什麼要這麼做? –