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

appPackageJson.dependencies mistaken for dependencies {} block #1

Open
wa3l opened this issue Nov 6, 2023 · 2 comments
Open

appPackageJson.dependencies mistaken for dependencies {} block #1

wa3l opened this issue Nov 6, 2023 · 2 comments

Comments

@wa3l
Copy link

wa3l commented Nov 6, 2023

Hi, I had a build issue due to Gradle mistaking this line for a dependencies {} block when it generates build.gradle. Removing the line in node_modules/@nativescript-community/ui-cameraview/platforms/android/include.gradle (not commenting it out) fixed the issue. Seems that gradle treats the word dependencies like a reserved word.

Credit goes to @CatchABus for catching it.

@CatchABus
Copy link

Let me point out this is the fault of NativeScript CLI being unable to parse those blocks properly. The problem seems to lie in this method: https://github.com/NativeScript/nativescript-cli/blob/main/lib/services/android-plugin-build-service.ts#L179

@farfromrefug
Copy link
Member

OK it is weird it works here. Must be my CLI fork which makes it work
Will have to find what I changed...
Just so you know those line exist to make the plugin build using my fork of N if it is installed

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

3 participants