Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apk failed to generate on bitbucket pipeline #86

Open
ethanonfire opened this issue Jun 19, 2024 · 0 comments
Open

apk failed to generate on bitbucket pipeline #86

ethanonfire opened this issue Jun 19, 2024 · 0 comments

Comments

@ethanonfire
Copy link

Hello,

I am new to NDK. So far, I have been able to apply the plugin and create the APK locally. However, I have encountered issues when attempting to build it on Bitbucket Pipeline.

this is the error msg i get:

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':core_data:configureCMakeRelWithDebInfo[arm64-v8a]'.

[CXX1416] Could not find Ninja on PATH or in SDK CMake bin folders.

please note that i gitignored all files in .cxx folder

this is my bitbucket-pipeline.yml, does bitbucket support NDK?

deployment-production-release-apk:
  - variables:
      - name: VERSION_CODE
      - name: VERSION_GROUPS
        default: "Mobile-QA,Mobile-DEV,Mobile-DESG,Mobile-BIZ,External"
      - name: ADDITIONAL_NOTE
  - step:
      size: 2x
      name: Production Release APK
      clone:
        depth: full
      deployment: production
      caches:
        - gradle
      script:
        - if [ -z "$VERSION_CODE" ]; then export VERSION_CODE=$BITBUCKET_BUILD_NUMBER; fi
        - COMMIT_MESSAGES=`git log origin/development.. --oneline --pretty=format:" • [%h] %s ~%cn"`
        - COMMIT_HASH=`git rev-parse --short $BITBUCKET_COMMIT`
        - DATETIME=$(date '+%D %H:%M %Z');
        - export VERSION_NOTE="Branch=$BITBUCKET_BRANCH"$'\n'"Commit=$COMMIT_HASH"$'\n'"Datetime=$DATETIME"
        - if [ -n "$ADDITIONAL_NOTE" ]; then export VERSION_NOTE="$VERSION_NOTE"$'\n'"Note=$ADDITIONAL_NOTE"; fi
        - if [ -n "$COMMIT_MESSAGES" ]; then export VERSION_NOTE="$VERSION_NOTE"$'\n\n'"Commit History"$'\n'"${COMMIT_MESSAGES::15500}"; fi
        - echo $VERSION_NOTE
        # Setup licenses
        - mkdir "${ANDROID_HOME}/licenses" || true
        # Give execution access to gradle
        - chmod +x gradlew
        ##########  ASSEMBLE AND UPLOAD TO FIREBASE ##########
        # Firebase App Distribution requires FIREBASE_TOKEN environment variable
        - bash ./gradlew assembleProductionRelease appDistributionUploadProductionRelease

Thank you for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant