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

android does not compile #109

Open
wxlfrank opened this issue Nov 20, 2024 · 4 comments
Open

android does not compile #109

wxlfrank opened this issue Nov 20, 2024 · 4 comments

Comments

@wxlfrank
Copy link

Make sure to check the demo app(s) for sample usage

nativescript-socketio\platforms\android\include.gradle' line: 7
A problem occurred evaluating script.
Could not find method compile() for arguments [io.socket:socket.io-client:1.0.0, include_arc3hrtht4zbchrmvong8xqgn$_run_closure2$_closure3@c0674c7] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

the reason is gradle 8 does not support compile, change it to implementation will solve the problem

Make sure to check the existing issues in this repository

If the demo apps cannot help and there is no issue for your problem, tell us about it

Please, ensure your title is less than 63 characters long and starts with a capital
letter.

Which platform(s) does your issue occur on?

  • iOS/Android/Both
  • iOS/Android versions
  • emulator or device. What type of device?

Please, provide the following version numbers that your issue occurs with:

  • CLI: (run tns --version to fetch it)
  • Cross-platform modules: (check the 'version' attribute in the
    node_modules/tns-core-modules/package.json file in your project)
  • Runtime(s): (look for the "tns-android" and "tns-ios" properties in the package.json file of your project)
  • Plugin(s): (look for the version numbers in the package.json file of your
    project and paste your dependencies and devDependencies here)

Please, tell us how to recreate the issue in as much detail as possible.

Describe the steps to reproduce it.

Is there any code involved?

  • provide a code example to recreate the problem
  • (EVEN BETTER) provide a .zip with application or refer to a repository with application where the problem is reproducible.
@triniwiz
Copy link
Owner

What version of NativeScript are you using ?

@wxlfrank
Copy link
Author

"@nativescript/core": "~8.8.5"

@triniwiz
Copy link
Owner

You need @triniwiz/nativescript-socketio

@wxlfrank
Copy link
Author

i did include it. and find the problem.
As I said, the gradle does not support compile after 8, instead, they use implementation

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

No branches or pull requests

2 participants