我怎样才能解决科尔多瓦的 "Plugin blocking main Thread for Xms" 警告

How can I resolve cordova's "Plugin blocking main Thread for Xms" warning

我 运行 我的应用程序是通过 Eclipse 在 android 模拟器上运行的。

当我尝试导航到新页面时,我在控制台日志中看到警告 "call to app.show blocked the main thread for xms. Plugin should use CordovaInterface.getThreadPool"

我也得到了"call to file.requestallpaths blocked the main thread for xms..."

我检查了 org.apache.cordova.file 插件,可以看到正在使用 cordova 线程池调用文件插件。

我该如何纠正?

您需要编辑 eclipse.ini 以获得更高的性能。

更改此行

-Xms512m
-Xmx1024m

进入这个

-Xms768m
-Xmx768m

eclipse.ini

-startup
../../../plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.200.v20120913-144807
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-XX:MaxPermSize=192m
-Xms768m
-Xmx768m
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts