You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to build a Cordova CLI ( v.3.2.0) project including the PhoneGap-Geofencing plugin. But, however I am having the following errors while building it. Below, is a debug log of my project.
E:\geo\geofencingApp>cordova build android -d
cordova library for "android" already exists. No need to download. Continuing.
Generating config.xml from defaults for platform "android"
Calling plugman.prepare for platform "android"
Preparing android project
Processing configuration changes for plugins.
Iterating over installed plugins: [ 'org.apache.cordova.device',
'org.apache.cordova.geolocation',
'org.apache.cordova.plugin.DGGeofencing' ]
Writing out cordova_plugins.js...
Ensuring plugin "org.apache.cordova.device" is installed correctly...
Plugin "org.apache.cordova.device" is good to go.
Ensuring plugin "org.apache.cordova.geolocation" is installed correctly...
Plugin "org.apache.cordova.geolocation" is good to go.
Ensuring plugin "org.apache.cordova.plugin.DGGeofencing" is installed correctly...
Plugin "org.apache.cordova.plugin.DGGeofencing" is good to go.
Wrote out Android application name to "HelloCordova"
Wrote out Android package name to "io.cordova.hellocordova"
Compiling app on platform "android" via command "cmd" /c E:\geo\geofencingApp\platforms\android\cordova\build
Looks like your environment fully supports cordova-android development!
exec: ant clean -f E:\geo\geofencingApp\platforms\android\build.xml
exec: ant debug -f E:\geo\geofencingApp\platforms\android\build.xml
[ 'ant debug -f E:\geo\geofencingApp\platforms\android\build.xml',
{ [Error: Command failed:
BUILD FAILED
E:\sdk\tools\ant\build.xml:720: The following error occurred while executing this line:
E:\sdk\tools\ant\build.xml:734: Compile failed; see the compiler error output for details.
Total time: 3 seconds
] killed: false, code: 1, signal: null },
'Buildfile: E:\geo\geofencingApp\platforms\android\build.xml\r\n\r\n-set-mode-check:\r\n\r\n-set-debug-
files:\r\n\r\n-check-env:\r\n [checkenv] Android SDK Tools Revision 22.3.0\r\n [checkenv] Installed at E:\sdk\r
\n\r\n-setup:\r\n [echo] Project Name: HelloCordova\r\n [gettype] Project Type: Application\r\n\r\n-set-debug-mode:
\r\n\r\n-debug-obfuscation-check:\r\n\r\n-pre-build:\r\n\r\n-build-setup:\r\n[getbuildtools] Using latest Build Tools: 1
9.0.0\r\n [echo] Resolving Build Target for HelloCordova...\r\n[gettarget] Project Target: Android 4.3\r\n[gettarg
et] API level: 18\r\n [echo] ----------\r\n [echo] Creating output directories if needed...\r\n [mkdir
] Created dir: E:\geo\geofencingApp\platforms\android\bin\r\n [mkdir] Created dir: E:\geo
geofencingApp\platforms\android\bin\res\r\n [mkdir] Created dir: E:\geo\geofencingApp\platforms\and
roid\bin\rsObj\r\n [mkdir] Created dir: E:\geo\geofencingApp\platforms\android\bin\rsLibs\r\n [m
kdir] Created dir: E:\geo\geofencingApp\platforms\android\gen\r\n [mkdir] Created dir: E:\g
eo\geofencingApp\platforms\android\bin\classes\r\n [mkdir] Created dir: E:\geo\geofencingApp\platfo
rms\android\bin\dexedLibs\r\n [echo] ----------\r\n [echo] Resolving Dependencies for HelloCordova...\r\n[dep
endency] Library dependencies:\r\n[dependency] No Libraries\r\n[dependency] \r\n[dependency] ------------------\r\n
[echo] ----------\r\n [echo] Building Libraries with 'debug'...\r\n [subant] No sub-builds to iterate on\r\n\r\n
-code-gen:\r\n[mergemanifest] Merging AndroidManifest files into one.\r\n[mergemanifest] Manifest merger disabled. Using
project manifest only.\r\n [echo] Handling aidl files...\r\n [aidl] No AIDL files to compile.\r\n [echo] --
--------\r\n [echo] Handling RenderScript files...\r\n [echo] ----------\r\n [echo] Handling Resources...\r
n [aapt] Generating resource IDs...\r\n [echo] ----------\r\n [echo] Handling BuildConfig class...\r\n[build
config] Generating BuildConfig class.\r\n\r\n-pre-compile:\r\n\r\n-compile:\r\n [javac] Compiling 15 source files to
E:\geo\geofencingApp\platforms\android\bin\classes\r\n [javac] E:\geo\geofencingApp\plat
forms\android\src\org\apache\cordova\plugin\geo\DGGeofencing.java:10: error: package org.apache.cordova.api does
not exist\r\n [javac] import org.apache.cordova.api.CallbackContext;\r\n [javac] ^\r
\n [javac] E:\geo\geofencingApp\platforms\android\src\org\apache\cordova\plugin\geo\DGGeofencing
.java:11: error: package org.apache.cordova.api does not exist\r\n [javac] import org.apache.cordova.api.CordovaInter
face;\r\n [javac] ^\r\n [javac] E:\geo\geofencingApp\platforms\android
\src\org\apache\cordova\plugin\geo\DGGeofencing.java:12: error: package org.apache.cordova.api does not exist\r\n
[javac] import org.apache.cordova.api.CordovaPlugin;\r\n [javac] ^\r\n [javac] E:\geo\geofencingApp\platforms\android\src\org\apache\cordova\plugin\geo\DGGeofencing.java:27: error:
cannot find symbol\r\n [javac] public class DGGeofencing extends CordovaPlugin {\r\n [javac]
^\r\n [javac] symbol: class CordovaPlugin\r\n [javac] E:\geo\geofencingApp\platforms
android\src\org\apache\cordova\plugin\geo\DGGeofencing.java:52: error: cannot find symbol\r\n [javac] public
void initialize(CordovaInterface cordova, CordovaWebView webView) {\r\n [javac] ^\r\n [j
avac] symbol: class CordovaInterface\r\n [javac] location: class DGGeofencing\r\n [javac] E:\geo
\geofencingApp\platforms\android\src\org\apache\cordova\plugin\geo\DGGeofencing.java:65: error: cannot find sym
bol\r\n [javac] public boolean execute(String action, JSONArray data, CallbackContext callbackContext) throws JSONE
xception {\r\n [javac] ^\r\n [javac] symbol: class Cal
lbackContext\r\n [javac] location: class DGGeofencing\r\n [javac] E:\geo\geofencingApp\platforms\a
ndroid\src\org\apache\cordova\plugin\geo\DGGeofencing.java:46: error: method does not override or implement a met
hod from a supertype\r\n [javac] @OverRide\r\n [javac] ^\r\n [javac] E:\geo\geofencingApp
platforms\android\src\org\apache\cordova\plugin\geo\DGGeofencing.java:53: error: cannot find symbol\r\n [java
c] super.initialize(cordova, webView);\r\n [javac] ^\r\n [javac] symbol: variable super\r\n [javac]
location: class DGGeofencing\r\n [javac] E:\geo\geofencingApp\platforms\android\src\org\apache\c
ordova\plugin\geo\DGGeofencing.java:51: error: method does not override or implement a method from a supertype\r\n
[javac] @OverRide\r\n [javac] ^\r\n [javac] E:\geo\geofencingApp\platforms\android\src\or
g\apache\cordova\plugin\geo\DGGeofencing.java:61: error: cannot find symbol\r\n [javac] cordova.getActivity(
).unbindService(connection);\r\n [javac] ^\r\n [javac] symbol: variable cordova\r\n [javac] location:
class DGGeofencing\r\n [javac] E:\geo\geofencingApp\platforms\android\src\org\apache\cordova\plug
in\geo\DGGeofencing.java:59: error: method does not override or implement a method from a supertype\r\n [javac] @
Override\r\n [javac] ^\r\n [javac] E:\geo\geofencingApp\platforms\android\src\org\apache\cordo
va\plugin\geo\DGGeofencing.java:64: error: method does not override or implement a method from a supertype\r\n [ja
vac] @OverRide\r\n [javac] ^\r\n [javac] E:\geo\geofencingApp\platforms\android\src\org\apach
e\cordova\plugin\geo\DGGeofencing.java:124: error: cannot find symbol\r\n [javac] webView.loadUrl("javasc
ript:DGGeofencing.locationMonitorUpdate(" + createLocationEvent(location) + ")");\r\n [javac] ^\r\n [javac
] symbol: variable webView\r\n [javac] E:\geo\geofencingApp\platforms\android\src\org\apache\cord
ova\plugin\geo\DGGeofencing.java:121: error: cannot find symbol\r\n [javac] cordova.getActivity().runOnUiThrea
d(new Runnable() {\r\n [javac] ^\r\n [javac] symbol: variable cordova\r\n [javac] location: class DGG
eofencing\r\n [javac] E:\geo\geofencingApp\platforms\android\src\org\apache\cordova\plugin\geo\D
GGeofencing.java:161: error: cannot find symbol\r\n [javac] webView.loadUrl("javascript:DGGeofencing.regionMo
nitorUpdate(" + createRegionEvent(id, status) + ")");\r\n [javac] ^\r\n [javac] symbol: variable webView
\r\n [javac] E:\geo\geofencingApp\platforms\android\src\org\apache\cordova\plugin\geo\DGGeofenci
ng.java:156: error: cannot find symbol\r\n [javac] cordova.getActivity().runOnUiThread(new Runnable() {\r\n [j
avac] ^\r\n [javac] symbol: variable cordova\r\n [javac] location: class DGGeofencing\r\n [javac] E:\geo\geofencingApp\platforms\android\src\org\apache\cordova\plugin\geo\ProximityReceiver.java:25: er
ror: cannot find symbol\r\n [javac] Intent cordovaIntent = new Intent(context.getApplicationContext(), HelloCordo
va.class);\r\n [javac] ^\r\n [javac] symb
ol: class HelloCordova\r\n [javac] location: class ProximityReceiver\r\n [javac] E:\geo\geofencing
App\platforms\android\src\org\apache\cordova\plugin\geo\ProximityReceiver.java:45: error: package R does not ex
ist\r\n [javac] notification.icon = R.drawable.icon;\r\n [javac] ^\r\n [javac] 18
errors\r\n',
'\r\nBUILD FAILED\r\nE:\sdk\tools\ant\build.xml:720: The following error occurred while executing this lin
e:\r\nE:\sdk\tools\ant\build.xml:734: Compile failed; see the compiler error output for details.\r\n\r\nTota
l time: 3 seconds\r\n' ]
Error executing "ant debug -f E:\geo\geofencingApp\platforms\android\build.xml":
BUILD FAILED
E:\sdk\tools\ant\build.xml:720: The following error occurred while executing this line:
E:\sdk\tools\ant\build.xml:734: Compile failed; see the compiler error output for details.
Total time: 3 seconds
child_process.spawn(cmd,[/c, E:\geo\geofencingApp\platforms\android\cordova\build]) = 2
Error: An error occurred while building the android project.Error executing "ant debug -f E:\geo\geofencingApp
platforms\android\build.xml":
BUILD FAILED
E:\sdk\tools\ant\build.xml:720: The following error occurred while executing this line:
E:\sdk\tools\ant\build.xml:734: Compile failed; see the compiler error output for details.
Total time: 3 seconds
at ChildProcess. (C:\Users\MyPC\AppData\Roaming\npm\node_modules\cordova\src\compile.js:65:22)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:735:16)
at Socket. (child_process.js:948:11)
at Socket.EventEmitter.emit (events.js:95:17)
at Pipe.close (net.js:466:12)
Thanks for any help on fixing this.
The text was updated successfully, but these errors were encountered:
Hi,
I am trying to build a Cordova CLI ( v.3.2.0) project including the PhoneGap-Geofencing plugin. But, however I am having the following errors while building it. Below, is a debug log of my project.
E:\geo\geofencingApp>cordova build android -d
cordova library for "android" already exists. No need to download. Continuing.
Generating config.xml from defaults for platform "android"
Calling plugman.prepare for platform "android"
Preparing android project
Processing configuration changes for plugins.
Iterating over installed plugins: [ 'org.apache.cordova.device',
'org.apache.cordova.geolocation',
'org.apache.cordova.plugin.DGGeofencing' ]
Writing out cordova_plugins.js...
Ensuring plugin "org.apache.cordova.device" is installed correctly...
Plugin "org.apache.cordova.device" is good to go.
Ensuring plugin "org.apache.cordova.geolocation" is installed correctly...
Plugin "org.apache.cordova.geolocation" is good to go.
Ensuring plugin "org.apache.cordova.plugin.DGGeofencing" is installed correctly...
Plugin "org.apache.cordova.plugin.DGGeofencing" is good to go.
Wrote out Android application name to "HelloCordova"
Wrote out Android package name to "io.cordova.hellocordova"
Compiling app on platform "android" via command "cmd" /c E:\geo\geofencingApp\platforms\android\cordova\build
Looks like your environment fully supports cordova-android development!
exec: ant clean -f E:\geo\geofencingApp\platforms\android\build.xml
[ 'ant clean -f E:\geo\geofencingApp\platforms\android\build.xml',
null,
'Buildfile: E:\geo\geofencingApp\platforms\android\build.xml\r\n\r\n-check-env:\r\n [checkenv] Android
SDK Tools Revision 22.3.0\r\n [checkenv] Installed at E:\sdk\r\n\r\n-setup:\r\n [echo] Project Name: HelloC
ordova\r\n [gettype] Project Type: Application\r\n\r\n-pre-clean:\r\n\r\nclean:\r\n [delete] Deleting directory E:\geo\geofencingApp\platforms\android\bin\r\n [delete] Deleting directory E:\geo\geofencingApp
\platforms\android\gen\r\n[getlibpath] Library dependencies:\r\n[getlibpath] No Libraries\r\n [subant] No sub-builds
to iterate on\r\n\r\nBUILD SUCCESSFUL\r\nTotal time: 1 second\r\n',
'' ]
exec: ant debug -f E:\geo\geofencingApp\platforms\android\build.xml
[ 'ant debug -f E:\geo\geofencingApp\platforms\android\build.xml',
{ [Error: Command failed:
BUILD FAILED
E:\sdk\tools\ant\build.xml:720: The following error occurred while executing this line:
E:\sdk\tools\ant\build.xml:734: Compile failed; see the compiler error output for details.
Total time: 3 seconds
] killed: false, code: 1, signal: null },
'Buildfile: E:\geo\geofencingApp\platforms\android\build.xml\r\n\r\n-set-mode-check:\r\n\r\n-set-debug-
files:\r\n\r\n-check-env:\r\n [checkenv] Android SDK Tools Revision 22.3.0\r\n [checkenv] Installed at E:\sdk\r
\n\r\n-setup:\r\n [echo] Project Name: HelloCordova\r\n [gettype] Project Type: Application\r\n\r\n-set-debug-mode:
\r\n\r\n-debug-obfuscation-check:\r\n\r\n-pre-build:\r\n\r\n-build-setup:\r\n[getbuildtools] Using latest Build Tools: 1
9.0.0\r\n [echo] Resolving Build Target for HelloCordova...\r\n[gettarget] Project Target: Android 4.3\r\n[gettarg
et] API level: 18\r\n [echo] ----------\r\n [echo] Creating output directories if needed...\r\n [mkdir
] Created dir: E:\geo\geofencingApp\platforms\android\bin\r\n [mkdir] Created dir: E:\geo
geofencingApp\platforms\android\bin\res\r\n [mkdir] Created dir: E:\geo\geofencingApp\platforms\and
roid\bin\rsObj\r\n [mkdir] Created dir: E:\geo\geofencingApp\platforms\android\bin\rsLibs\r\n [m
kdir] Created dir: E:\geo\geofencingApp\platforms\android\gen\r\n [mkdir] Created dir: E:\g
eo\geofencingApp\platforms\android\bin\classes\r\n [mkdir] Created dir: E:\geo\geofencingApp\platfo
rms\android\bin\dexedLibs\r\n [echo] ----------\r\n [echo] Resolving Dependencies for HelloCordova...\r\n[dep
endency] Library dependencies:\r\n[dependency] No Libraries\r\n[dependency] \r\n[dependency] ------------------\r\n
[echo] ----------\r\n [echo] Building Libraries with 'debug'...\r\n [subant] No sub-builds to iterate on\r\n\r\n
-code-gen:\r\n[mergemanifest] Merging AndroidManifest files into one.\r\n[mergemanifest] Manifest merger disabled. Using
project manifest only.\r\n [echo] Handling aidl files...\r\n [aidl] No AIDL files to compile.\r\n [echo] --
--------\r\n [echo] Handling RenderScript files...\r\n [echo] ----------\r\n [echo] Handling Resources...\r
n [aapt] Generating resource IDs...\r\n [echo] ----------\r\n [echo] Handling BuildConfig class...\r\n[build
config] Generating BuildConfig class.\r\n\r\n-pre-compile:\r\n\r\n-compile:\r\n [javac] Compiling 15 source files to
E:\geo\geofencingApp\platforms\android\bin\classes\r\n [javac] E:\geo\geofencingApp\plat
forms\android\src\org\apache\cordova\plugin\geo\DGGeofencing.java:10: error: package org.apache.cordova.api does
not exist\r\n [javac] import org.apache.cordova.api.CallbackContext;\r\n [javac] ^\r
\n [javac] E:\geo\geofencingApp\platforms\android\src\org\apache\cordova\plugin\geo\DGGeofencing
.java:11: error: package org.apache.cordova.api does not exist\r\n [javac] import org.apache.cordova.api.CordovaInter
face;\r\n [javac] ^\r\n [javac] E:\geo\geofencingApp\platforms\android
\src\org\apache\cordova\plugin\geo\DGGeofencing.java:12: error: package org.apache.cordova.api does not exist\r\n
[javac] import org.apache.cordova.api.CordovaPlugin;\r\n [javac] ^\r\n [javac] E:\geo\geofencingApp\platforms\android\src\org\apache\cordova\plugin\geo\DGGeofencing.java:27: error:
cannot find symbol\r\n [javac] public class DGGeofencing extends CordovaPlugin {\r\n [javac]
^\r\n [javac] symbol: class CordovaPlugin\r\n [javac] E:\geo\geofencingApp\platforms
android\src\org\apache\cordova\plugin\geo\DGGeofencing.java:52: error: cannot find symbol\r\n [javac] public
void initialize(CordovaInterface cordova, CordovaWebView webView) {\r\n [javac] ^\r\n [j
avac] symbol: class CordovaInterface\r\n [javac] location: class DGGeofencing\r\n [javac] E:\geo
\geofencingApp\platforms\android\src\org\apache\cordova\plugin\geo\DGGeofencing.java:65: error: cannot find sym
bol\r\n [javac] public boolean execute(String action, JSONArray data, CallbackContext callbackContext) throws JSONE
xception {\r\n [javac] ^\r\n [javac] symbol: class Cal
lbackContext\r\n [javac] location: class DGGeofencing\r\n [javac] E:\geo\geofencingApp\platforms\a
ndroid\src\org\apache\cordova\plugin\geo\DGGeofencing.java:46: error: method does not override or implement a met
hod from a supertype\r\n [javac] @OverRide\r\n [javac] ^\r\n [javac] E:\geo\geofencingApp
platforms\android\src\org\apache\cordova\plugin\geo\DGGeofencing.java:53: error: cannot find symbol\r\n [java
c] super.initialize(cordova, webView);\r\n [javac] ^\r\n [javac] symbol: variable super\r\n [javac]
location: class DGGeofencing\r\n [javac] E:\geo\geofencingApp\platforms\android\src\org\apache\c
ordova\plugin\geo\DGGeofencing.java:51: error: method does not override or implement a method from a supertype\r\n
[javac] @OverRide\r\n [javac] ^\r\n [javac] E:\geo\geofencingApp\platforms\android\src\or
g\apache\cordova\plugin\geo\DGGeofencing.java:61: error: cannot find symbol\r\n [javac] cordova.getActivity(
).unbindService(connection);\r\n [javac] ^\r\n [javac] symbol: variable cordova\r\n [javac] location:
class DGGeofencing\r\n [javac] E:\geo\geofencingApp\platforms\android\src\org\apache\cordova\plug
in\geo\DGGeofencing.java:59: error: method does not override or implement a method from a supertype\r\n [javac] @
Override\r\n [javac] ^\r\n [javac] E:\geo\geofencingApp\platforms\android\src\org\apache\cordo
va\plugin\geo\DGGeofencing.java:64: error: method does not override or implement a method from a supertype\r\n [ja
vac] @OverRide\r\n [javac] ^\r\n [javac] E:\geo\geofencingApp\platforms\android\src\org\apach
e\cordova\plugin\geo\DGGeofencing.java:124: error: cannot find symbol\r\n [javac] webView.loadUrl("javasc
ript:DGGeofencing.locationMonitorUpdate(" + createLocationEvent(location) + ")");\r\n [javac] ^\r\n [javac
] symbol: variable webView\r\n [javac] E:\geo\geofencingApp\platforms\android\src\org\apache\cord
ova\plugin\geo\DGGeofencing.java:121: error: cannot find symbol\r\n [javac] cordova.getActivity().runOnUiThrea
d(new Runnable() {\r\n [javac] ^\r\n [javac] symbol: variable cordova\r\n [javac] location: class DGG
eofencing\r\n [javac] E:\geo\geofencingApp\platforms\android\src\org\apache\cordova\plugin\geo\D
GGeofencing.java:161: error: cannot find symbol\r\n [javac] webView.loadUrl("javascript:DGGeofencing.regionMo
nitorUpdate(" + createRegionEvent(id, status) + ")");\r\n [javac] ^\r\n [javac] symbol: variable webView
\r\n [javac] E:\geo\geofencingApp\platforms\android\src\org\apache\cordova\plugin\geo\DGGeofenci
ng.java:156: error: cannot find symbol\r\n [javac] cordova.getActivity().runOnUiThread(new Runnable() {\r\n [j
avac] ^\r\n [javac] symbol: variable cordova\r\n [javac] location: class DGGeofencing\r\n [javac] E:\geo\geofencingApp\platforms\android\src\org\apache\cordova\plugin\geo\ProximityReceiver.java:25: er
ror: cannot find symbol\r\n [javac] Intent cordovaIntent = new Intent(context.getApplicationContext(), HelloCordo
va.class);\r\n [javac] ^\r\n [javac] symb
ol: class HelloCordova\r\n [javac] location: class ProximityReceiver\r\n [javac] E:\geo\geofencing
App\platforms\android\src\org\apache\cordova\plugin\geo\ProximityReceiver.java:45: error: package R does not ex
ist\r\n [javac] notification.icon = R.drawable.icon;\r\n [javac] ^\r\n [javac] 18
errors\r\n',
'\r\nBUILD FAILED\r\nE:\sdk\tools\ant\build.xml:720: The following error occurred while executing this lin
e:\r\nE:\sdk\tools\ant\build.xml:734: Compile failed; see the compiler error output for details.\r\n\r\nTota
l time: 3 seconds\r\n' ]
Error executing "ant debug -f E:\geo\geofencingApp\platforms\android\build.xml":
BUILD FAILED
E:\sdk\tools\ant\build.xml:720: The following error occurred while executing this line:
E:\sdk\tools\ant\build.xml:734: Compile failed; see the compiler error output for details.
Total time: 3 seconds
child_process.spawn(cmd,[/c, E:\geo\geofencingApp\platforms\android\cordova\build]) = 2
Error: An error occurred while building the android project.Error executing "ant debug -f E:\geo\geofencingApp
platforms\android\build.xml":
BUILD FAILED
E:\sdk\tools\ant\build.xml:720: The following error occurred while executing this line:
E:\sdk\tools\ant\build.xml:734: Compile failed; see the compiler error output for details.
Total time: 3 seconds
at ChildProcess. (C:\Users\MyPC\AppData\Roaming\npm\node_modules\cordova\src\compile.js:65:22)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:735:16)
at Socket. (child_process.js:948:11)
at Socket.EventEmitter.emit (events.js:95:17)
at Pipe.close (net.js:466:12)
Thanks for any help on fixing this.
The text was updated successfully, but these errors were encountered: