Software Archive
Read-only legacy content
17061 Discussions

Build Error - Andriod Crosswalk (3088)

Dennis_K_
Beginner
480 Views

    Building a Cordova 5.1.1 application.
    Using platform cordova-android 4.1.1.
    The application name is "APP_NAME"
    The package name is "xdk.intel.blank.ad.template"
    Using Crosswalk Embedded 16
    Plugin "cordova-plugin-statusbar" (2.1.2) installed.
    Plugin "cordova-plugin-device" (1.1.1) installed.
    Plugin "cordova-plugin-splashscreen" (3.2.1) installed.
    Plugin "cordova-plugin-dialogs" (1.2.0) installed.
    Plugin "intel.xdk.cache" (1.2.4) installed.
    Plugin "phonegap-facebook-plugin" (0.12.0) installed.
    Plugin "cordova-plugin-whitelist" (1.2.1) installed.
    Plugin "cordova-plugin-crosswalk-webview" (1.4.0) installed.
    App name updated to [APP_NAME]
    Updated "minSdkVersion" with "15"
    Updated "targetSdkVersion" with "19"
    Updated "installLocation" to "auto"
    Updated "versionCode" to "21"
    Updated "versionName" to "0.2.1"
    Added "debuggable" to "false"
    Error: A build error occurred. Check the build log.

 

Any ideas about the problem to solve or circumvent it?

0 Kudos
5 Replies
Elroy_A_Intel
Employee
480 Views

Can you please provide your build log?

0 Kudos
Dennis_K_
Beginner
480 Views

In advance apology for the Google translation.

I'm trying for days to push notifications, it could then also implement last week and tested successfully.
Now I wanted to reflect on my test app all on my current. So far so good, mirrored everything and then adjusted.
Prefer the apk bodybuilding and get an error.

Current:(provoked error)
Building a Cordova 5.4.1 application.
Using platform cordova-android 5.0.0.
The application name is "APP_NAME"
The package name is "xdk.intel.taram.card"
Preference android-signed set to true. Application will be signed.
Using Crosswalk Embedded 15
Plugin "cordova-plugin-statusbar" (2.0.0) installed.
Plugin "cordova-plugin-device" (1.1.0) installed.
Plugin "cordova-plugin-splashscreen" (2.1.0) installed.
Plugin "phonegap-facebook-plugin" (0.12.0) installed.    <--------------
Plugin "intel.xdk.cache" (1.2.4) installed.                <--------------
Plugin "phonegap-plugin-push" (1.6.1) installed.
Plugin "cordova-plugin-whitelist" (1.2.1) installed.
Plugin "cordova-plugin-crosswalk-webview" (1.5.0) installed.
App name updated to [APP_NAME]
Updated "minSdkVersion" with "15"
Updated "targetSdkVersion" with "19"
Updated "installLocation" to "auto"
Updated "versionCode" to "24"
Updated "versionName" to "0.2.4"

Test-App:
Building a Cordova 5.4.1 application.
Using platform cordova-android 5.0.0.
The application name is "Test App"
The package name is "test.events.news.app"
Preference android-signed set to true. Application will be signed.
Using Crosswalk Embedded 15
Plugin "cordova-plugin-statusbar" (2.0.0) installed.
Plugin "cordova-plugin-device" (1.1.0) installed.
Plugin "cordova-plugin-splashscreen" (2.1.0) installed.
Plugin "phonegap-plugin-push" (1.6.1) installed.
Plugin "cordova-plugin-whitelist" (1.2.1) installed.
Plugin "cordova-plugin-crosswalk-webview" (1.5.0) installed.
App name updated to [Test App]
Updated "minSdkVersion" with "15"
Updated "targetSdkVersion" with "19"
Updated "installLocation" to "preferExternal"
Updated "versionCode" to "4"
Updated "versionName" to "0.0.4"


* 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 16.804 secs
ERROR building one of the platforms: Error: .../builds/build.2016-04-11.15-04-38.U8m3GY.tmp/app/platforms/android/gradlew: Command failed with exit code 1
You may not have the required environment or OS to build this project
Error: .../builds/build.2016-04-11.15-04-38.U8m3GY.tmp/tara_m/platforms/android/gradlew: Command failed with exit code 1
    at ChildProcess.whenDone (.../builds/build.2016-04-11.15-04-38.U8m3GY.tmp/app/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:139: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
PaulF_IntelCorp
Employee
480 Views

You're using some very old plugins for your CLI 5.4.1 build, especially the splash screen plugin. Here’s what I suggest:

  • change to CLI 5.1.1 and choose “Downgrade CLI and Plugins" (or it might say "Upgrade CLI and Plugins")
  • try the build and see if it works
  • if that fails, change to CLI 5.4.1 and choose “Upgrade CLI and Plugins”
  • try the build and see if it works

Report your results here.

0 Kudos
Dennis_K_
Beginner
480 Views

still not working, even after downgrade phonegap-plugin-push to 1.4.3

Build Log
Building a Cordova 5.4.1 application.
Using platform cordova-android 5.0.0.
The application name is "APP_NAME"
The package name is "xdk.intel.taram.card"
Preference android-signed set to true. Application will be signed.
Using Crosswalk Embedded 15
Plugin "cordova-plugin-statusbar" (2.1.0) installed.
Plugin "cordova-plugin-device" (1.1.1) installed.
Plugin "cordova-plugin-splashscreen" (3.2.0) installed.
Plugin "phonegap-facebook-plugin" (0.12.0) installed.
Plugin "intel.xdk.cache" (1.2.4) installed.
Plugin "phonegap-plugin-push" (1.6.1) installed.
Plugin "cordova-plugin-legacy-whitelist" (1.1.1) installed.
Plugin "cordova-plugin-crosswalk-webview" (1.5.0) installed.
App name updated to [APP_NAME]
Updated "minSdkVersion" with "15"
Updated "targetSdkVersion" with "19"
Updated "installLocation" to "auto"
Updated "versionCode" to "24"
Updated "versionName" to "0.2.4"
Added "debuggable" to "false"
Error: A build error occurred. Check the build log.

* 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 17.46 secs
ERROR building one of the platforms: Error: .../app/platforms/android/gradlew: Command failed with exit code 1
You may not have the required environment or OS to build this project
Error: .../app/platforms/android/gradlew: Command failed with exit code 1
    at ChildProcess.whenDone (.../app/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:139: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)

--------------------------------------------------------------------------------------------------------------------------------------------------------------

Build Log
Building a Cordova 5.1.1 application.
Using platform cordova-android 4.1.1.
The application name is "APP_NAME"
The package name is "xdk.intel.taram.card"
Preference android-signed set to true. Application will be signed.
Using Crosswalk Embedded 15
Plugin "cordova-plugin-statusbar" (2.0.0) installed.
Plugin "cordova-plugin-device" (1.1.0) installed.
Plugin "cordova-plugin-splashscreen" (2.1.0) installed.
Plugin "phonegap-facebook-plugin" (0.12.0) installed.
Plugin "intel.xdk.cache" (1.2.4) installed.
Plugin "phonegap-plugin-push" (1.6.1) installed.
Plugin "cordova-plugin-legacy-whitelist" (1.1.1) installed.
Plugin "cordova-plugin-crosswalk-webview" (1.4.0) installed.
App name updated to [APP_NAME]
Updated "minSdkVersion" with "15"
Updated "targetSdkVersion" with "19"
Updated "installLocation" to "auto"
Updated "versionCode" to "24"
Updated "versionName" to "0.2.4"
Added "debuggable" to "false"
Error: A build error occurred. Check the build log.


* 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 16.818 secs

.../app/platforms/android/cordova/node_modules/q/q.js:126
                    throw e;
                    ^
Error code 1 for command: .../app/platforms/android/gradlew with args: cdvBuildRelease,-b,.../app/platforms/android/build.gradle,--no-daemon
Command finished with error code 1: .../app/platforms/android/cordova/build --release
ERROR building one of the platforms: Error: .../app/platforms/android/cordova/build: Command failed with exit code 1
You may not have the required environment or OS to build this project
Error: .../app/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
PaulF_IntelCorp
Employee
480 Views

What happens if you remove the intel.xdk.cache plugin? Also, have you tried removing individual plugins and building after each removal, to isolate which plugin is causing the problem?

0 Kudos
Reply