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

Caused by: org.gradle.api.resources.MissingResourceException: Could not read script '.\ionic-ref\angular\ionic-conference-app\android\capacitor-cordova-android-plugins\cordova.variables.gradle' as it does not exist. #1815

Open
bdhindsa opened this issue Aug 11, 2024 · 0 comments
Labels

Comments

@bdhindsa
Copy link

I'm submitting a ... (check one with "x")
[ x ] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/

Current behavior:

Android studio when trying to build the ionic-reference-app fails with "Caused by: org.gradle.api.resources.MissingResourceException: Could not read script 'C:\Users\bdhin\src\ionic-ref\angular\ionic-conference-app\android\capacitor-cordova-android-plugins\cordova.variables.gradle' as it does not exist."
Screenshot 2024-08-11 082655_success-ionic-ref-app_web-browser-build
Screenshot 2024-08-11 082538_issue-ionic-ref-app_android-build

Expected behavior:

Expected behavior would be no such failure

Steps to reproduce

  • build web browser app (which runs successfully)
    mkdir -p ~/src/ionic-ref/angular
    pushd ~/src/ionic-ref/angular/

    clone-reference-app

    git clone https://github.com/ionic-team/ionic-conference-app.git

    build-reference-app

    cd ionic-conference-app/
    npm install

    run-reference-app: default port is 8100

    ionic serve

  • builld for ionic-reference-app for android this is where the error occurs:
    ionic capacitor run android --prod

    android studio correctly fires up, does the build BUT then issues error:

    "Caused by: org.gradle.api.resources.MissingResourceException: Could not read script 'C:\Users\bdhin\src\ionic-ref\angular\ionic-conference-app\android\capacitor-cordova-android-plugins\cordova.variables.gradle' as it does not exist."

  • points to note:

    • standard ionic-reference-app commands used to build reference application
    • standard command used to build reference application for android.
@ionitron-bot ionitron-bot bot added the triage label Aug 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant