Skip to content
This repository was archived by the owner on Oct 17, 2022. It is now read-only.
This repository was archived by the owner on Oct 17, 2022. It is now read-only.

Issue with include.gradle and keyword "compile" on NS 8 #81

Description

@ipald

Hello all, I cannot build my app for android anymore due to an issue in include.gradle file.
I'm using NS8.1.4

The build fails with this error

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/ipald/Projects/my-app/platforms/tempPlugin/nativescript_socket.io/build.gradle' line: 137

* What went wrong:
A problem occurred evaluating root project 'nativescript_socket.io'.
> Could not find method compile() for arguments [io.socket:socket.io-client:1.+, build_5nh3wlr6x2bntajh43d81iz46$_run_closure6$_closure12@1d74c785] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s
Failed to build plugin nativescript-socket.io : 
Error: Command ./gradlew failed with exit code 1

I've tried to change the keyword "compile" with "implementation" (or "api") and i'm able to step over the build ma Socket.io layer doesn't work

iOS build has no problems

Someone have a solution?

Dependencies:
"@nativescript-community/ble": "3.0.29",
"@nativescript-community/ui-material-bottomsheet": "^6.2.21",
"@nativescript-community/ui-material-slider": "^6.2.23",
"@nativescript/appversion": "^2.0.0",
"@nativescript/camera": "^5.0.9",
"@nativescript/core": "^8.1.4",
"@nativescript/email": "^2.0.5",
"@nativescript/firebase": "^11.1.3",
"@nativescript/imagepicker": "^1.0.5",
"@nativescript/iqkeyboardmanager": "^2.0.0",
"@nativescript/local-notifications": "^5.0.3",
"@nativescript/theme": "^3.0.2",
"@nstudio/nativescript-checkbox": "^2.0.4",
"@triniwiz/nativescript-toasty": "^4.1.3",
"acorn": "^8.5.0",
"ajv": "^8.10.0",
"axios": "0.21.0",
"geojson-tools": "^0.2.2",
"lodash": "^4.17.21",
"marked": "^3.0.8",
"moment": "^2.29.1",
"nativescript-app-shortcuts": "^3.0.0",
"nativescript-dna-netservices": "^2.0.1",
"nativescript-fonticon": "^2.0.2",
"nativescript-nodeify": "^0.8.0",
"nativescript-socket.io": "^0.11.1",
"nativescript-speech-recognition": "^2.0.0",
"nativescript-ui-autocomplete": "^8.0.0",
"nativescript-ui-gauge": "^8.0.0",
"nativescript-ui-listview": "^10.0.1",
"nativescript-ui-sidedrawer": "^10.0.1",
"nativescript-vibrate": "^4.0.1",
"nativescript-vue": "^2.9.0",
"promise-any-polyfill": "^1.0.1",
"rxjs": "^7.3.1",
"util": "^0.12.4",
"util-inspect": "^0.1.8",
"utils": "^0.3.1",
"vue-moment": "^4.1.0",
"vuex": "^3.6.2",
"vuex-persistedstate": "^4.1.0"

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions