Saturday, 14 September 2013

can't add plugin org.apache.cordova.geolocation.GeoBroker

can't add plugin org.apache.cordova.geolocation.GeoBroker

I am having some problems with PhoneGap 3.0 Everything was working as
should on PhoneGap 2.9
Now I upgraded to 3.0 And created a new PhoneGap Project.
$> phonegap create new_project
added to config.xml :
<feature name="http://api.phonegap.com/1.0/geolocation"/>
and for index.html I used the full example from
http://docs.phonegap.com/en/edge/cordova_geolocation_geolocation.md.html#geolocation.getCurrentPosition_full_example
then
$> phonegap build android
I imported the project to Eclipse and checked the following :
AndroidManifest.xml has
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
xml/config.xml has
<feature name="Geolocation">
<param name="android-package"
value="org.apache.cordova.geolocation.GeoBroker" />
</feature>
I also used this cmd :
$> phonegap local plugin add
https://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation.git
and that created the package src/
org.apache.cordova.geolocation
now when I run my app. I got the Following errors :
I/System.out(15155): Error adding plugin
org.apache.cordova.geolocation.GeoBroker.
D/PluginManager(15155): exec() call to unknown plugin: Geolocation
and the Javascript function onError() alert with code:null & message:
Any suggestions ?
Thank you in Advance

No comments:

Post a Comment