0
votes

Im getting this error.

ReferenceError: Can't find variable: cordova at file:///android_asset/www/childbrowser.js:87

I have done all of this:

To install the plugin, move www/childbrowser.js to your project's www folder and include a reference to it in your html file after phonegap.js.

Copy the image files folder www/childbrowser to your project's www folder. Note you need the entire folder not just the images.

Create a directory within your project called "src/com/phonegap/plugins/childBrowser" and move ChildBrowser.java into it.

In your res/xml/plugins.xml file add the following line:

1
Are you getting the "deviceready" event from Cordova? Did you make sure your HTML correctly references the cordoava-1.7.0.js file?Simon MacDonald

1 Answers

1
votes

I had this same problem working in Eclipse off the demo from phonegap. They have use add this line in the "hello world":

<script type="text/javascript" charset="utf-8" src="phonegap-1.0.0.js"></script>

But when you download the new phonegap it should be:

<script type="text/javascript" charset="utf-8" src="cordova-1.7.0.js"></script>

Now it works for me :)