使用PhoneGap的Ripple Emulator + android项目

nie*_*lsv 4 javascript android google-chrome ripple cordova

我正在Eclipse IDE中使用PhoneGap创建一个android项目.

现在我想使用Ripple Emulator而不是Android Virtual Device Manager(AVD),因为AVD非常慢.

我在Google Chrome浏览器中安装了扩展程序并启用了"允许访问文件网址"选项.

当我打开index.html页面时,我得到一个像这样的javascript弹出窗口: 在此输入图像描述

如果我单击"确定"或"取消",页面就会冻结,因此我无法启用纹波仿真器....

这是我的"index.html"文件:

<!DOCTYPE HTML>
<html>
 <head>
  <title>PhoneGap Testing</title>
  <meta http-equiv="Content-type" content="text/html;charset=utf-8">
  <meta name="viewport" id="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, user-scalable=no;" />
  <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
  <script type="text/javascript" charset="utf-8">
    function onBodyLoad(){
        document.addEventListener("deviceready", onDeviceReady, false);
    }
    function onDeviceReady(){
        navigator.notification.alert("PhoneGap is ready!");
    }
  </script>
 </head>
 <body onload="onBodyLoad()">
    <h1>Hello PhoneGap</h1>
    <p>This is a sample app</p>
 </body>
</html>
Run Code Online (Sandbox Code Playgroud)

有谁知道为什么我会弹出这个弹出窗口?

wir*_*res 7

卸载Chrome扩展程序(不再需要).