Harmony的WebView如何开启debug进行inject调试
我查了下,hap文件包含apk,那么harmony可能依赖Android运行环境,那么极大可能Harmony的webview使用的就是android的webview。如此我使用了以下代码在ability的onStart方法中try{ClasswebClass.forName("android.webkit.WebView");if(web!null){Methodmethodweb.getMethod("setWebContentsDebuggingEnabled",boolean.class);method.invoke(web,true);}}catch(ClassNotFoundExceptionNoSuchMethodExceptione){e.printStackTrace(...