我正在使用以下代码:
try {
Class.forName("android.webkit.WebView")
.getMethod("onPause", (Class[]) null)
.invoke(myWebView, (Object[]) null);
} catch (Exception cnfe) {
cnfe.getCause();
Logger.appendErrorLog(cnfe.getMessage(), TAG);
}
我InvocationTargetException
在执行上面的代码时得到了。问题是什么?