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 #17

Open
Nikolay-01620 opened this issue Apr 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Nikolay-01620
Copy link

Nikolay-01620 commented Apr 30, 2024

Bug description

Caused by: org.gradle.api.resources.MissingResourceException: Could not read script 'C:\Users\Kolya\AndroidStudioProjects\other Projects\DeepFondation\android\capacitor-cordova-android-plugins\cordova.variables.gradle' as it does not exist.

Expected Behavior

launch of the project

Current Behavior

an error occurred due to a missing file

Steps to reproduce

  1. created a project via: https://github.com/deep-foundation/sdk.git

  2. cleared the "pages/index.tsx" file

3)git remote add sdk https://github.com/deep-foundation/sdk.git

4)git fetch sdk

5)git merge sdk/main --allow-unrelated-histories --strategy ours

6)git fetch sdk main

7)git merge sdk/some_old_commit_hash --allow-unrelated-histories --strategy ours

8)git merge sdk/main

  1. installed node version 20

  2. npm ci; cd electron; npm ci
    After entering the command
    An error appeared in the terminal indicating that the version must be at least 18

  3. reinstalled the node to version 18

  4. npm ci; cd electron; npm ci
    no error occurred

  5. npm run build
    answer :

PS C:\Users\Kolya\AndroidStudioProjects\other Projects\DeepFondation> npm run build-android

@deep-foundation/[email protected] build-android
rimraf app && npm run export && npx cap sync android

@deep-foundation/[email protected] export
(cross-env NEXT_PUBLIC_EXPORT=1 NEXT_PUBLIC_I18N_DISABLE=1 next build)

⚠ Invalid next.config.js options detected:
⚠ Unrecognized key(s) in object: 'strictMode'
⚠ See more info here: https://nextjs.org/docs/messages/invalid-next-config
▲ Next.js 14.2.2

✓ Linting and checking validity of types
Creating an optimized production build ...
⚠ Compiled with warnings

./node_modules/@deep-foundation/deeplinks/imports/client.js
Critical dependency: the request of a dependency is an expression

Import trace for requested module:
./node_modules/@deep-foundation/deeplinks/imports/client.js

✓ Collecting page data

Build optimization failed: found page without a React Component as default export in
pages/

See https://nextjs.org/docs/messages/page-without-valid-component for more info.

@deep-foundation/[email protected] open-android
npx cap open android
[info] Opening Android project at: android.
[?] Would you like to help improve Capacitor by sharing anonymous usage data? 💖
Read more about what is being collected and why here: https://capacitorjs.com/telemetry. You can change your mind at
any time by using the npx cap telemetry command.
? Share anonymous usage data? "(Y/n)

13)npm run start
The project opened, but with an error:

Caused by: org.gradle.api.resources.MissingResourceException: Could not read script 'C:\Users\Kolya\AndroidStudioProjects\other Projects\DeepFondation\android\capacitor-cordova-android-plugins\cordova.variables.gradle' as it does not exist.

Workaround

  1. command:
    npm ci; (cd electron; npm ci)
    you need to enter without parentheses, that is:
    npm ci; cd electron; npm ci

Environment

I don't understand what needs to be inserted here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant