Skip to content

Caused by: org.gradle.api.resources.MissingResourceException: Could not read script #17

@Nikolay-01620

Description

@Nikolay-01620

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/sdk@0.0.0-dev.5 build-android
rimraf app && npm run export && npx cap sync android

@deep-foundation/sdk@0.0.0-dev.5 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/sdk@0.0.0-dev.5 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions