Software Archive
Read-only legacy content
17061 Discussions

Error on build, failed for task

nicolas_r_
Beginner
444 Views
I have the next error log when i build my apk. on androi. i search in google but no look.

                   ^
  symbol:   method setColor(int)
  location: variable mBuilder of type Builder
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.
1 error
 FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileReleaseJava'.
> Compilation failed; see the compiler error output for details.

* 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: 37.251 secs

.../builds/build.2016-03-29.12-10-37.NSECas.tmp/prueba2/platforms/android/cordova/node_modules/q/q.js:126
                    throw e;
                    ^
Error code 1 for command: .../builds/build.2016-03-29.12-10-37.NSECas.tmp/prueba2/platforms/android/gradlew with args: cdvBuildRelease,-b,.../builds/build.2016-03-29.12-10-37.NSECas.tmp/prueba2/platforms/android/build.gradle,--no-daemon
Command finished with error code 1: .../builds/build.2016-03-29.12-10-37.NSECas.tmp/prueba2/platforms/android/cordova/build --release
ERROR building one of the platforms: Error: .../builds/build.2016-03-29.12-10-37.NSECas.tmp/prueba2/platforms/android/cordova/build: Command failed with exit code 1
You may not have the required environment or OS to build this project
Error: .../builds/build.2016-03-29.12-10-37.NSECas.tmp/prueba2/platforms/android/cordova/build: Command failed with exit code 1
    at ChildProcess.whenDone (.../cordova/cordova-cli/5.1.1/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:134:23)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at maybeClose (internal/child_process.js:821:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)

 

0 Kudos
1 Solution
John_H_Intel2
Employee
444 Views

I spoke with engineering on this and came up with this.

1. remove the existing fb plugin

2. add this 3rd party fb plugin  cordova-plugin-facebook4

3. You will need to update the Min Android API to at least 15 in the XDK Build Settings.

You should be able to build then :)

View solution in original post

0 Kudos
5 Replies
John_H_Intel2
Employee
444 Views

What plugins are you using? Currently our build system does not support plugins that contain gradle scripts. Try removing your 3rd party plugins 1 by 1 and build after each removal to determine what plugin is causing the issue.

0 Kudos
nicolas_r_
Beginner
444 Views

Captura de pantalla 2016-03-29 a las 9.58.22_0.png

0 Kudos
nicolas_r_
Beginner
444 Views

is the Facebook plugin =/, i remove it and it works, what can be the problem whit that plugin i use alone in a demo of Facebook and it works well.

0 Kudos
John_H_Intel2
Employee
445 Views

I spoke with engineering on this and came up with this.

1. remove the existing fb plugin

2. add this 3rd party fb plugin  cordova-plugin-facebook4

3. You will need to update the Min Android API to at least 15 in the XDK Build Settings.

You should be able to build then :)

0 Kudos
nicolas_r_
Beginner
444 Views

it works great now thanks very much =))

0 Kudos
Reply