-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Unable to build apk #241
Comments
@sebastiandanilonr what version of the plugin are you using because the "D:\GITHUB_proyectos\SapcoApp\SapcoApp\SapcoApp\platforms\android\src\com\plugin |
The version is 1.3.0, or at leas that says cordova plugins list command |
@sebastiandanilonr how do you add the plugin to your project? |
@macdonst I was usying cordova plugins add phonegap-plugin-push, that uses npm. D:\GITHUB_proyectos\SapcoApp\SapcoApp\SapcoApp\platforms\android\src\com\plugin ^ FAILURE: Build failed with an exception.
BUILD FAILED Total time: 2 mins 3.478 secs D:\GITHUB_proyectos\SapcoApp\SapcoApp\SapcoApp\platforms\android\cordova\node_mo You may not have the required environment or OS to build this project |
Ok, i think i solved, indeed the plugin was installed on ...\platforms\android\src\android\com\adobe\phonegap\push, but there was a residual folder "gcm" that had GCMIntentService.java on it and the build tried to compile it. Thanks! |
Please close the issue if it is resolved. |
BUILD FAILED Total time: 3.612 secs Error: cmd: Command failed with exit code 1 Error output:
|
This thread has been automatically locked. |
STACKTRACE:
:compileReleaseJava
D:\GITHUB_proyectos\SapcoApp\SapcoApp\SapcoApp\platforms\android\src\com\plugin
gcm\GCMIntentService.java:43: error: cannot find symbol
PushPlugin.sendJavascript( json );
^
symbol: variable PushPlugin
location: class GCMIntentService
D:\GITHUB_proyectos\SapcoApp\SapcoApp\SapcoApp\platforms\android\src\com\plugin
gcm\GCMIntentService.java:67: error: cannot find symbol
if (PushPlugin.isInForeground()) {
^
symbol: variable PushPlugin
location: class GCMIntentService
D:\GITHUB_proyectos\SapcoApp\SapcoApp\SapcoApp\platforms\android\src\com\plugin
gcm\GCMIntentService.java:69: error: cannot find symbol
PushPlugin.sendExtras(extras);
^
symbol: variable PushPlugin
location: class GCMIntentService
D:\GITHUB_proyectos\SapcoApp\SapcoApp\SapcoApp\platforms\android\src\com\plugin
gcm\GCMIntentService.java:87: error: cannot find symbol
Intent notificationIntent = new Intent(this, PushHandlerActivity
.class);
^
symbol: class PushHandlerActivity
location: class GCMIntentService
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 errors
:compileReleaseJava FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':compileReleaseJava'.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
BUILD FAILED
Total time: 1 mins 23.284 secs
D:\GITHUB_proyectos\SapcoApp\SapcoApp\SapcoApp\platforms\android\cordova\node_mo
dules\q\q.js:126
throw e;
^
Error code 1 for command: cmd with args: /s /c "D:\GITHUB_proyectos\SapcoApp\Sap
coApp\SapcoApp\platforms\android\gradlew cdvBuildRelease -b D:\GITHUB_proyectos
SapcoApp\SapcoApp\SapcoApp\platforms\android\build.gradle -Dorg.gradle.daemon=tr
ue"
ERROR building one of the platforms: Error: cmd: Command failed with exit code 1
You may not have the required environment or OS to build this project
Error: cmd: Command failed with exit code 1
at ChildProcess.whenDone (C:\Program Files\nodejs\node_modules\cordova\node_
modules\cordova-lib\src\cordova\superspawn.js:139:23)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:818:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
Hello, i got this error, seems problem with the Java Classes of the plugin, i already installed all the SDK needed extra libraries. Any ideas?
The text was updated successfully, but these errors were encountered: