Help with build

Hi I am starting to use bitrise but my build is failing giving the following error

    Using cordova-fetch for cordova-android@6.3.0
Failed to fetch platform cordova-android@6.3.0
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
Error: npm: Command failed with exit code 1 Error output:
npm ERR! sha512-8SVKQoMcib6EJKX5QXuNwyJhF8FW25TNyRYsRKWRUE1/uf6ElQmTbz7qgrqG2Qk6ItMtaTf0IfJCeGvDq/1Fjg== integrity checksum failed when using sha512: wanted sha512-8SVKQoMcib6EJKX5QXuNwyJhF8FW25TNyRYsRKWRUE1/uf6ElQmTbz7qgrqG2Qk6ItMtaTf0IfJCeGvDq/1Fjg== but got sha512-96p2A/P4/KRbg6rowl0vq1QMhIQh89f6xQ9gkRPMFyrUmgFTlgF7vSEZP6DLqcS1pgJDPcE+ctYLYsWSPpuPYg==. (83090 bytes)
npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/vagrant/.npm/_logs/2019-07-02T04_53_12_495Z-debug.log
[ERROR] An error occurred while running subprocess cordova.
        cordova platform add android --save exited with exit code 1.
        Re-running this command with the --verbose flag may provide more information.
command failed, error: exit status 1

I specifically use cordova android 6.3.0

This is my yml

format_version: '8'
project_type: ionic
- push_branch: "*"
  workflow: primary
- pull_request_source_branch: "*"
  workflow: primary
    - activate-ssh-key@4.0.3:
        run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
    - git-clone@4.0.14: {}
    - script@1.1.5:
        title: Do anything with Script step
    - certificate-and-profile-installer@1.10.1: {}
    - npm@1.0.2:
        - command: cache clean --force
        - command: install
        - command: cordova platform remove android
        - command: cordova platform add android@6.3.0
    - generate-cordova-build-configuration@0.9.6: {}
    - ionic-archive@2.0.0:
        - configuration: debug
        - cordova_version: ''
        - target: emulator
    - deploy-to-bitrise-io@1.6.0: {}
  - opts:
      is_expand: false
    IONIC_PLATFORM: ios,android

It looks like the platform is not properly installed, but I can’t find a place to get commands to run, like corodova uninstall platform and so on…

Sorry to hear about the issue! Could you also include an URL to this build please?


Thanks in advance.

Hi again, now build is failing with following code

Script file does't exist and will be skipped: /Users/vagrant/git/hooks/copy_android_notification_icons.js

Thanks for the info, @emiliodom!

Can you please send us the log file or the URL of the related build and also enable Support Access on the Settings tab of the app ( Enabling the Bitrise Support user for your app | Bitrise DevCenter ) so that we can take a more in-depth look? :slightly_smiling_face:

Hi Roland, URL

I can’t upload the log here, tell me if you are able to see the build.


We can see it, thanks @emiliodom!

As I can see you’re currently only running an npm cache clean --force commands before building but I suspect your project would need an npm install command to build. Can you try that? :slight_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.