Ionic package build android not working

Hello,

When I try the ionic package build android I got a Java errors from the build at Ionic Package side. But if I do the ionic build android locally, works perfect.
The output from ionic package info:

You have been opted out of telemetry. To change this, run: cordova telemetry on.
ANDROID_HOME=/usr/local/src/android-sdk-linux
JAVA_HOME=/usr/lib/jvm/java-8-oracle
null
org.xwalk:xwalk_core_library:18+
:preBuild UP-TO-DATE
:preDebugBuild UP-TO-DATE
:checkDebugManifest
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:compileDebugNdk UP-TO-DATE
:CordovaLib:compileLint
:CordovaLib:copyDebugLint UP-TO-DATE
:CordovaLib:mergeDebugProguardFiles
:CordovaLib:packageDebugRenderscript UP-TO-DATE
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugRenderscript
:CordovaLib:generateDebugResValues
:CordovaLib:generateDebugResources
:CordovaLib:packageDebugResources
:CordovaLib:compileDebugAidl
:CordovaLib:generateDebugBuildConfig
:CordovaLib:generateDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugAssets
:CordovaLib:processDebugManifest
:CordovaLib:processDebugResources
:CordovaLib:generateDebugSources
:CordovaLib:compileDebugJavaWithJavacNote: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

:CordovaLib:processDebugJavaRes UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForDebug
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug
:CordovaLib:mergeDebugJniLibFolders
:CordovaLib:transformNative_libsWithMergeJniLibsForDebug
:CordovaLib:transformNative_libsWithSyncJniLibsForDebug
:CordovaLib:bundleDebug
:prepareAndroidCordovaLibUnspecifiedDebugLibrary
:preReleaseBuild UP-TO-DATE
:CordovaLib:preReleaseBuild UP-TO-DATE
:CordovaLib:compileReleaseNdk UP-TO-DATE
:CordovaLib:copyReleaseLint UP-TO-DATE
:CordovaLib:mergeReleaseProguardFiles
:CordovaLib:packageReleaseRenderscript UP-TO-DATE
:CordovaLib:checkReleaseManifest
:CordovaLib:prepareReleaseDependencies
:CordovaLib:compileReleaseRenderscript
:CordovaLib:generateReleaseResValues
:CordovaLib:generateReleaseResources
:CordovaLib:packageReleaseResources
:CordovaLib:compileReleaseAidl
:CordovaLib:generateReleaseBuildConfig
:CordovaLib:generateReleaseAssets UP-TO-DATE
:CordovaLib:mergeReleaseAssets
:CordovaLib:processReleaseManifest
:CordovaLib:processReleaseResources
:CordovaLib:generateReleaseSources
:CordovaLib:compileReleaseJavaWithJavacNote: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

:CordovaLib:processReleaseJavaRes UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForRelease
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease
:CordovaLib:mergeReleaseJniLibFolders
:CordovaLib:transformNative_libsWithMergeJniLibsForRelease
:CordovaLib:transformNative_libsWithSyncJniLibsForRelease
:CordovaLib:bundleRelease
:prepareComAndroidSupportMultidex101Library
:prepareComAndroidSupportSupportV42411Library
:prepareComFacebookAndroidFacebookAndroidSdk482Library
:prepareOrgXwalkXwalk_core_library184847713Library
:prepareDebugDependencies
:compileDebugAidl
:compileDebugRenderscript
:generateDebugBuildConfig
:generateDebugAssets UP-TO-DATE
:mergeDebugAssets
:createXwalkCommandLineFileDebug
:generateDebugResValues
:generateDebugResources
:mergeDebugResources
:processDebugManifest
:processDebugResources
:generateDebugSources
:compileDebugJavaWithJavac/home/package/workspace/apps-fe87b5cf-10/cordova/platforms/android/src/org/crosswalk/engine/XWalkCordovaClientCertRequest.java:55: error: cannot find symbol
        return request.getKeyTypes();
                      ^
  symbol:   method getKeyTypes()
  location: variable request of type ClientCertRequest
/home/package/workspace/apps-fe87b5cf-10/cordova/platforms/android/src/org/crosswalk/engine/XWalkCordovaClientCertRequest.java:70: error: cannot find symbol
        return request.getPrincipals();
                      ^
  symbol:   method getPrincipals()
  location: variable request of type ClientCertRequest
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors
 FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileDebugJavaWithJavac'.
> 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: 10.792 secs
Error: Error code 1 for command: /home/package/workspace/apps-fe87b5cf-10/cordova/platforms/android/gradlew with args: cdvBuildDebug,-b,/home/package/workspace/apps-fe87b5cf-10/cordova/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true

ionic build android -d

Running 'build:before' gulp task before build
[15:41:04] Starting 'clean'...
[15:41:04] Finished 'clean' after 70 ms
[15:41:04] Starting 'build'...
[15:41:04] Starting 'images'...
[15:41:04] Finished 'images' after 12 ms
[15:41:04] Starting 'svg'...
[15:41:04] Finished 'svg' after 1.2 ms
[15:41:04] Starting 'sass'...
[15:41:04] Starting 'html'...
[15:41:04] Starting 'fonts'...
[15:41:04] Starting 'scripts'...
[15:41:04] Finished 'scripts' after 178 ms
[15:41:04] Finished 'fonts' after 206 ms
[15:41:04] Finished 'html' after 225 ms
[15:41:06] Finished 'sass' after 1.95 s
[15:41:19] Finished 'build' after 16 s
[15:41:19] Starting 'build:before'...
[15:41:19] Finished 'build:before' after 13 μs

No scripts found for hook "before_build".


No scripts found for hook "before_prepare".


Checking config.xml for saved platforms that haven't been added to the project


Checking for any plugins added to the project that have not been installed in android platform


No differences found between plugins added to project and installed in android platform. Continuing...


Generating platform-specific config.xml from defaults for android at /home/projects/captain-app/platforms/android/res/xml/config.xml


Merging project's config.xml into platform-specific android config.xml


Merging and updating files from [www, ../../../../home/projects/captain-app/platforms/android/platform_www] to ../../../../home/projects/captain-app/platforms/android/assets/www


  copy  www/build/app.html ../../../../home/projects/captain-app/platforms/android/assets/www/build/app.html (updated file)


  copy  www/build/css/app.ios.css ../../../../home/projects/captain-app/platforms/android/assets/www/build/css/app.ios.css (updated file)


  copy  www/build/css/app.md.css ../../../../home/projects/captain-app/platforms/android/assets/www/build/css/app.md.css (updated file)


  copy  www/build/css/app.wp.css ../../../../home/projects/captain-app/platforms/android/assets/www/build/css/app.wp.css (updated file)


  copy  www/build/fonts/ionicons.ttf ../../../../home/projects/captain-app/platforms/android/assets/www/build/fonts/ionicons.ttf (updated file)


  copy  www/build/fonts/ionicons.woff ../../../../home/projects/captain-app/platforms/android/assets/www/build/fonts/ionicons.woff (updated file)


  copy  www/build/fonts/ionicons.woff2 ../../../../home/projects/captain-app/platforms/android/assets/www/build/fonts/ionicons.woff2 (updated file)


  copy  www/build/fonts/noto-sans-bold.ttf ../../../../home/projects/captain-app/platforms/android/assets/www/build/fonts/noto-sans-bold.ttf (updated file)


  copy  www/build/fonts/noto-sans-regular.ttf ../../../../home/projects/captain-app/platforms/android/assets/www/build/fonts/noto-sans-regular.ttf (updated file)


  copy  www/build/fonts/roboto-bold.ttf ../../../../home/projects/captain-app/platforms/android/assets/www/build/fonts/roboto-bold.ttf (updated file)


  copy  www/build/fonts/roboto-bold.woff ../../../../home/projects/captain-app/platforms/android/assets/www/build/fonts/roboto-bold.woff (updated file)


  copy  www/build/fonts/roboto-light.ttf ../../../../home/projects/captain-app/platforms/android/assets/www/build/fonts/roboto-light.ttf (updated file)


  copy  www/build/fonts/roboto-light.woff ../../../../home/projects/captain-app/platforms/android/assets/www/build/fonts/roboto-light.woff (updated file)


  copy  www/build/fonts/roboto-medium.ttf ../../../../home/projects/captain-app/platforms/android/assets/www/build/fonts/roboto-medium.ttf (updated file)


  copy  www/build/fonts/roboto-medium.woff ../../../../home/projects/captain-app/platforms/android/assets/www/build/fonts/roboto-medium.woff (updated file)


  copy  www/build/fonts/roboto-regular.ttf ../../../../home/projects/captain-app/platforms/android/assets/www/build/fonts/roboto-regular.ttf (updated file)


  copy  www/build/fonts/roboto-regular.woff ../../../../home/projects/captain-app/platforms/android/assets/www/build/fonts/roboto-regular.woff (updated file)


  copy  www/build/imgs/pages/assets/1.jpg ../../../../home/projects/captain-app/platforms/android/assets/www/build/imgs/pages/assets/1.jpg (updated file)


  copy  www/build/imgs/pages/assets/2.jpg ../../../../home/projects/captain-app/platforms/android/assets/www/build/imgs/pages/assets/2.jpg (updated file)


  copy  www/build/imgs/pages/assets/profile.png ../../../../home/projects/captain-app/platforms/android/assets/www/build/imgs/pages/assets/profile.png (updated file)


  copy  www/build/imgs/pages/assets/waasland-bg.jpg ../../../../home/projects/captain-app/platforms/android/assets/www/build/imgs/pages/assets/waasland-bg.jpg (updated file)


  copy  www/build/imgs/pages/assets/waasland-bg.png ../../../../home/projects/captain-app/platforms/android/assets/www/build/imgs/pages/assets/waasland-bg.png (updated file)


  copy  www/build/imgs/pages/assets/waasland.png ../../../../home/projects/captain-app/platforms/android/assets/www/build/imgs/pages/assets/waasland.png (updated file)


  copy  www/build/imgs/pages/guided-tour/1.jpg ../../../../home/projects/captain-app/platforms/android/assets/www/build/imgs/pages/guided-tour/1.jpg (updated file)


  copy  www/build/imgs/pages/guided-tour/2.jpg ../../../../home/projects/captain-app/platforms/android/assets/www/build/imgs/pages/guided-tour/2.jpg (updated file)


  copy  www/build/js/Reflect.js ../../../../home/projects/captain-app/platforms/android/assets/www/build/js/Reflect.js (updated file)


  copy  www/build/js/Reflect.js.map ../../../../home/projects/captain-app/platforms/android/assets/www/build/js/Reflect.js.map (updated file)


  copy  www/build/js/app.bundle.js ../../../../home/projects/captain-app/platforms/android/assets/www/build/js/app.bundle.js (updated file)


  copy  www/build/js/app.bundle.js.map ../../../../home/projects/captain-app/platforms/android/assets/www/build/js/app.bundle.js.map (updated file)


  copy  www/build/js/es6-shim.map ../../../../home/projects/captain-app/platforms/android/assets/www/build/js/es6-shim.map (updated file)


  copy  www/build/js/es6-shim.min.js ../../../../home/projects/captain-app/platforms/android/assets/www/build/js/es6-shim.min.js (updated file)


  copy  www/build/js/zone.js ../../../../home/projects/captain-app/platforms/android/assets/www/build/js/zone.js (updated file)


  copy  www/build/pages/about/about.html ../../../../home/projects/captain-app/platforms/android/assets/www/build/pages/about/about.html (updated file)


  copy  www/build/pages/account/account.html ../../../../home/projects/captain-app/platforms/android/assets/www/build/pages/account/account.html (updated file)


  copy  www/build/pages/change-password/change-password.html ../../../../home/projects/captain-app/platforms/android/assets/www/build/pages/change-password/change-password.html (updated file)


  copy  www/build/pages/event-view/event-view.html ../../../../home/projects/captain-app/platforms/android/assets/www/build/pages/event-view/event-view.html (updated file)


  copy  www/build/pages/event/event.html ../../../../home/projects/captain-app/platforms/android/assets/www/build/pages/event/event.html (updated file)

  copy  www/build/pages/floor-map/floor-map.html ../../../../home/projects/captain-app/platforms/android/assets/www/build/pages/floor-map/floor-map.html (updated file)

  copy  www/build/pages/gift-card/gift-card.html ../../../../home/projects/captain-app/platforms/android/assets/www/build/pages/gift-card/gift-card.html (updated file)

  copy  www/build/pages/guided-tour/guided-tour.html ../../../../home/projects/captain-app/platforms/android/assets/www/build/pages/guided-tour/guided-tour.html (updated file)

  copy  www/build/pages/info/info.html ../../../../home/projects/captain-app/platforms/android/assets/www/build/pages/info/info.html (updated file)

  copy  www/build/pages/login-capp/login.html ../../../../home/projects/captain-app/platforms/android/assets/www/build/pages/login-capp/login.html (updated file)


  copy  www/build/pages/login/login.html ../../../../home/projects/captain-app/platforms/android/assets/www/build/pages/login/login.html (updated file)


  copy  www/build/pages/map/map.html ../../../../home/projects/captain-app/platforms/android/assets/www/build/pages/map/map.html (updated file)


  copy  www/build/pages/promotion-view/promotion-view.html ../../../../home/projects/captain-app/platforms/android/assets/www/build/pages/promotion-view/promotion-view.html (updated file)


  copy  www/build/pages/promotion/promotion.html ../../../../home/projects/captain-app/platforms/android/assets/www/build/pages/promotion/promotion.html (updated file)


  copy  www/build/pages/register/register.html ../../../../home/projects/captain-app/platforms/android/assets/www/build/pages/register/register.html (updated file)


  copy  www/build/pages/restaurant/restaurant.html ../../../../home/projects/captain-app/platforms/android/assets/www/build/pages/restaurant/restaurant.html (updated file)


  copy  www/build/pages/schedule-filter/schedule-filter.html ../../../../home/projects/captain-app/platforms/android/assets/www/build/pages/schedule-filter/schedule-filter.html (updated file)


  copy  www/build/pages/session-detail/session-detail.html ../../../../home/projects/captain-app/platforms/android/assets/www/build/pages/session-detail/session-detail.html (updated file)


  copy  www/build/pages/signup/signup.html ../../../../home/projects/captain-app/platforms/android/assets/www/build/pages/signup/signup.html (updated file)


  copy  www/build/pages/speaker-detail/speaker-detail.html ../../../../home/projects/captain-app/platforms/android/assets/www/build/pages/speaker-detail/speaker-detail.html (updated file)

  copy  www/build/pages/speaker-list/speaker-list.html ../../../../home/projects/captain-app/platforms/android/assets/www/build/pages/speaker-list/speaker-list.html (updated file)


  copy  www/build/pages/store-view/store-view.html ../../../../home/projects/captain-app/platforms/android/assets/www/build/pages/store-view/store-view.html (updated file)

  copy  www/build/pages/stores/stores.html ../../../../home/projects/captain-app/platforms/android/assets/www/build/pages/stores/stores.html (updated file)
  copy  www/build/pages/tabs/tabs.html ../../../../home/projects/captain-app/platforms/android/assets/www/build/pages/tabs/tabs.html (updated file)
  copy  www/build/pages/tutorial/tutorial.html ../../../../home/projects/captain-app/platforms/android/assets/www/build/pages/tutorial/tutorial.html (updated file)
  copy  www/build/svg/pages/floor-map/map.svg ../../../../home/projects/captain-app/platforms/android/assets/www/build/svg/pages/floor-map/map.svg (updated file)


  copy  www/index.html ../../../../home/projects/captain-app/platforms/android/assets/www/index.html (updated file)


Wrote out android application name "Waasland Shopping" to /home/projects/captain-app/platforms/android/res/values/strings.xml


android-versionCode not found in config.xml. Generating a code based on version in config.xml (0.0.1): 1


Wrote out Android package name "io.ionic.conference" to /home/projects/captain-app/platforms/android/src/io/ionic/conference/MainActivity.java


Updating icons at ../../../../home/projects/captain-app/platforms/android/res

  copy  resources/android/icon/drawable-hdpi-icon.png ../../../../home/projects/captain-app/platforms/android/res/drawable-hdpi/icon.png (updated file)


  copy  resources/android/icon/drawable-ldpi-icon.png ../../../../home/projects/captain-app/platforms/android/res/drawable-ldpi/icon.png (updated file)


  copy  resources/android/icon/drawable-mdpi-icon.png ../../../../home/projects/captain-app/platforms/android/res/drawable-mdpi/icon.png (updated file)


  copy  resources/android/icon/drawable-xhdpi-icon.png ../../../../home/projects/captain-app/platforms/android/res/drawable-xhdpi/icon.png (updated file)


  copy  resources/android/icon/drawable-xxhdpi-icon.png ../../../../home/projects/captain-app/platforms/android/res/drawable-xxhdpi/icon.png (updated file)


  copy  resources/android/icon/drawable-xxxhdpi-icon.png ../../../../home/projects/captain-app/platforms/android/res/drawable-xxxhdpi/icon.png (updated file)


Updating splash screens at ../../../../home/projects/captain-app/platforms/android/res


  copy  resources/android/splash/drawable-port-hdpi-screen.png ../../../../home/projects/captain-app/platforms/android/res/drawable-port-hdpi/screen.png (updated file)


  copy  resources/android/splash/drawable-port-ldpi-screen.png ../../../../home/projects/captain-app/platforms/android/res/drawable-port-ldpi/screen.png (updated file)


  copy  resources/android/splash/drawable-port-mdpi-screen.png ../../../../home/projects/captain-app/platforms/android/res/drawable-port-mdpi/screen.png (updated file)


  copy  resources/android/splash/drawable-port-xhdpi-screen.png ../../../../home/projects/captain-app/platforms/android/res/drawable-port-xhdpi/screen.png (updated file)


  copy  resources/android/splash/drawable-port-xxhdpi-screen.png ../../../../home/projects/captain-app/platforms/android/res/drawable-port-xxhdpi/screen.png (updated file)


  copy  resources/android/splash/drawable-port-xxxhdpi-screen.png ../../../../home/projects/captain-app/platforms/android/res/drawable-port-xxxhdpi/screen.png (updated file)


Prepared android project successfully


No scripts found for hook "after_prepare".


Checking config.xml for saved plugins that haven't been added to the project


No scripts found for hook "before_compile".


ANDROID_HOME=/Users/bda/Library/Android/sdk

JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home

Running command: /home/projects/captain-app/platforms/android/gradlew cdvBuildDebug -b /home/projects/captain-app/platforms/android/build.gradle -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=true


Incremental java compilation is an incubating feature.


:preBuild
 UP-TO-DATE
:preDebugBuild UP-TO-DATE
:checkDebugManifest
:CordovaLib:preBuild UP-TO-DATE

:CordovaLib:preDebugBuild UP-TO-DATE

:CordovaLib:compileDebugNdk
 UP-TO-DATE
:CordovaLib:compileLint
:CordovaLib:copyDebugLint UP-TO-DATE
:CordovaLib:mergeDebugProguardFiles
 UP-TO-DATE
:CordovaLib:packageDebugRenderscript UP-TO-DATE
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugRenderscript
 UP-TO-DATE
:CordovaLib:generateDebugResValues
 UP-TO-DATE
:CordovaLib:generateDebugResources UP-TO-DATE
:CordovaLib:packageDebugResources
 UP-TO-DATE
:CordovaLib:compileDebugAidl
 UP-TO-DATE
:CordovaLib:generateDebugBuildConfig UP-TO-DATE
:CordovaLib:mergeDebugShaders
 UP-TO-DATE
:CordovaLib:compileDebugShaders
 UP-TO-DATE
:CordovaLib:generateDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugAssets
 UP-TO-DATE
:CordovaLib:processDebugManifest
 UP-TO-DATE
:CordovaLib:processDebugResources
 UP-TO-DATE
:CordovaLib:generateDebugSources UP-TO-DATE
:CordovaLib:incrementalDebugJavaCompilationSafeguard
 UP-TO-DATE

:CordovaLib:compileDebugJavaWithJavac
 UP-TO-DATE
:CordovaLib:processDebugJavaRes UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForDebug
 UP-TO-DATE

:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE

:CordovaLib:mergeDebugJniLibFolders
 UP-TO-DATE

:CordovaLib:transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
:CordovaLib:transformNative_libsWithSyncJniLibsForDebug UP-TO-DATE
:CordovaLib:bundleDebug
 UP-TO-DATE
:prepareAndroidCordovaLibUnspecifiedDebugLibrary
 UP-TO-DATE
:preReleaseBuild UP-TO-DATE
:CordovaLib:preReleaseBuild UP-TO-DATE
:CordovaLib:compileReleaseNdk UP-TO-DATE
:CordovaLib:copyReleaseLint UP-TO-DATE
:CordovaLib:mergeReleaseProguardFiles
 UP-TO-DATE
:CordovaLib:packageReleaseRenderscript
UP-TO-DATE
:CordovaLib:checkReleaseManifest

:CordovaLib:prepareReleaseDependencies
:CordovaLib:compileReleaseRenderscript
 UP-TO-DATE
:CordovaLib:generateReleaseResValues
 UP-TO-DATE
:CordovaLib:generateReleaseResources
 UP-TO-DATE
:CordovaLib:packageReleaseResources
 UP-TO-DATE

:CordovaLib:compileReleaseAidl
 UP-TO-DATE
:CordovaLib:generateReleaseBuildConfig
 UP-TO-DATE
:CordovaLib:mergeReleaseShaders UP-TO-DATE
:CordovaLib:compileReleaseShaders UP-TO-DATE
:CordovaLib:generateReleaseAssets
 UP-TO-DATE

:CordovaLib:mergeReleaseAssets UP-TO-DATE
:CordovaLib:processReleaseManifest
 UP-TO-DATE
:CordovaLib:processReleaseResources
 UP-TO-DATE

:CordovaLib:generateReleaseSources UP-TO-DATE
:CordovaLib:incrementalReleaseJavaCompilationSafeguard UP-TO-DATE
:CordovaLib:compileReleaseJavaWithJavac
 UP-TO-DATE
:CordovaLib:processReleaseJavaRes
 UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForRelease

UP-TO-DATE

:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease UP-TO-DATE
:CordovaLib:mergeReleaseJniLibFolders

UP-TO-DATE


:CordovaLib:transformNative_libsWithMergeJniLibsForRelease
 UP-TO-DATE

:CordovaLib:transformNative_libsWithSyncJniLibsForRelease
 UP-TO-DATE

:CordovaLib:bundleRelease
 UP-TO-DATE

:prepareComAndroidSupportMultidex101Library
 UP-TO-DATE

:prepareComAndroidSupportSupportV42301Library
 UP-TO-DATE

:prepareComFacebookAndroidFacebookAndroidSdk482Library
 UP-TO-DATE


:prepareDebugDependencies

:compileDebugAidl
 UP-TO-DATE
:compileDebugRenderscript
 UP-TO-DATE

:generateDebugBuildConfig

UP-TO-DATE
:mergeDebugShaders
 UP-TO-DATE


:compileDebugShaders
 UP-TO-DATE

:generateDebugAssets UP-TO-DATE

:mergeDebugAssets

UP-TO-DATE
:generateDebugResValues
 UP-TO-DATE

:generateDebugResources UP-TO-DATE

:mergeDebugResources


:processDebugManifest

UP-TO-DATE

:processDebugResources


:generateDebugSources

:incrementalDebugJavaCompilationSafeguard
 UP-TO-DATE
:compileDebugJavaWithJavac
 UP-TO-DATE
:compileDebugNdk UP-TO-DATE

:compileDebugSources UP-TO-DATE
:prePackageMarkerForDebug

:transformClassesWithDexForDebug
 UP-TO-DATE
:mergeDebugJniLibFolders
 UP-TO-DATE
:transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
:processDebugJavaRes UP-TO-DATE
:transformResourcesWithMergeJavaResForDebug
 UP-TO-DATE
:validateDebugSigning
:packageDebug


:zipalignDebug


:assembleDebug


:cdvBuildDebug


BUILD SUCCESSFUL

Total time: 6.234 secs

Command finished with error code 0: /home/projects/captain-app/platforms/android/gradlew cdvBuildDebug,-b,/home/projects/captain-app/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true

Built the following apk(s):
	/home/projects/captain-app/platforms/android/build/outputs/apk/android-debug.apk


No scripts found for hook "after_compile".


No scripts found for hook "after_build".

ionic info:

Your system information:

Cordova CLI: 6.3.1
Ionic Framework Version: 2.0.0-beta.11
Ionic CLI Version: 2.0.0
Ionic App Lib Version: 2.0.0-beta.20
ios-deploy version: 1.8.6
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v4.4.7
Xcode version: Xcode 7.3.1 Build version 7D1014
1 Like

I don’t see any errors on the output, do you get something on ionic serve -l -c -s ?

the first output has the errors:

output from ionic serve -l -c -s

Running 'serve:before' gulp task before serve
[16:26:37] Starting 'clean'...
[16:26:37] Finished 'clean' after 67 ms
[16:26:37] Starting 'watch'...
[16:26:37] Starting 'images'...
[16:26:37] Finished 'images' after 9.46 ms
[16:26:37] Starting 'svg'...
[16:26:37] Finished 'svg' after 1.04 ms
[16:26:37] Starting 'sass'...
[16:26:37] Starting 'html'...
[16:26:37] Starting 'fonts'...
[16:26:37] Starting 'scripts'...
[16:26:37] Finished 'scripts' after 180 ms
[16:26:37] Finished 'fonts' after 198 ms
[16:26:37] Finished 'html' after 212 ms
[16:26:39] Finished 'sass' after 1.59 s
10.1 MB bytes written (9.37 seconds)
[16:26:54] Finished 'watch' after 17 s
[16:26:54] Starting 'serve:before'...
[16:26:54] Finished 'serve:before' after 11 μs

Running live reload server: http://localhost:35729
Watching: www/**/*, !www/lib/**/*
√ Running dev server:  http://localhost:8100
Ionic server commands, enter:
  restart or r to restart the client app from the root
  goto or g and a url to have the app navigate to the given url
  consolelogs or c to enable/disable console log output
  serverlogs or s to enable/disable server log output
  quit or q to shutdown the server and exit

ionic $ serve  /?ionicplatform=android  (www/index.html)
serve  /?ionicplatform=ios  (www/index.html)
serve  /?ionicplatform=windows  (www/index.html)
serve  /cordova.js  (mocked)
serve  /build/js/es6-shim.min.js
serve  /build/js/zone.js
serve  /build/js/Reflect.js
serve  /build/js/app.bundle.js
serve  /build/css/app.md.css
serve  /build/css/app.wp.css
serve  /build/css/app.ios.css
serve  /build/app.html
0     017946   log      Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode.
serve  /build/app.html
0     018561   log      Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode.
1     018752   warn     Native: tried calling StatusBar.styleDefault, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator
2     018753   warn     Native: tried calling Splashscreen.hide, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator
serve  /build/pages/event/event.html
1     018865   warn     Native: tried calling StatusBar.styleDefault, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator
2     018865   warn     Native: tried calling Splashscreen.hide, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator

Miss the one with the output,
does it show something or not in the browser?

What are these ones for:

it seems that the error is located there

This issue occurs after I run the ionic package build android.

What I understood about the ‘Package’ thing is: I upload the package, ionic.io does the build on their side, and it will be available at https://apps.ionic.io/app/app_id/package

If I run the build LOCALLY, works perfect. I have the apk here, but the issue is about creating the Package to upload to ionic.io

Everything is perfect in my dev env

EDIT: this is not on my env:

Error: Error code 1 for command: /home/package/workspace/apps-fe87b5cf-10/cordova/platforms/android/gradlew with args: cdvBuildDebug,-b,/home/package/workspace/apps-fe87b5cf-10/cordova/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true

Maybe there’s a problem or a bug with the feature, i think it is very new, correct me if i am wrong, did you manage to solve it?

Not yet. I decided to keep develping the app because I can create the builds locally. I figure that some packages on my packages.json are outdated, but if I do the update, a lot of dependencies warns conflicts. So I decided to stay as I am right now, and after I finish it I will do more research.
Thanks

I had the same problem both on ionic cloud and locally. I was able to make it go away by updating the crosswalk plugin view version to the latest (22+)

<preference name="xwalkVersion" value="22+"/>

Since both error are in crosswalk/engine it might be either an issue with the crosswalk plugin or older version of the cross walk view (combined with newer versions of android?)

You can find some info here: https://github.com/crosswalk-project/crosswalk-website/wiki/Release-dates

4 Likes

This worked for me. Thanks @paaat

1 Like

This worked for me too… Thank you :smiley:

This worked for me too… Thank you :smiley:

Cool … note that, for to work, you also need to have in your config.xml.

Lower than 16 (e.g. 14) doesn’t work.