0

我正在使用以下代码:

    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在执行上面的代码时得到了。问题是什么?

4

1 回答 1

-1

请检查您在pom.xml. 可能存在一些相互冲突的依赖关系。确保它不是由于任何依赖关系引起的。

于 2014-08-25T11:27:23.890 回答