eifersucht
eifersucht

Reputation: 691

Cordova 1.7.0 + childbrowser (Android)

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:

Upvotes: 0

Views: 1654

Answers (1)

sirmdawg
sirmdawg

Reputation: 2579

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 :)

Upvotes: 1

Related Questions