-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Error while getting gradle data for android runtime from view command: SyntaxError: Unexpected end of JSON input #9814
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
Comments
Due to this change, obviously (removal of the |
Please install npm i -g nativescript@next |
we just found that there is a merged PR for nativescript-cli NativeScript/nativescript-cli#5614 which fixes this, but no 8.2.0 CLI release which includes this PR. |
@rigor789 thanks. This impacts our CI builds so we'll need to create new images which takes some time. I'm thinking of building a patched version just for the sake of getting our builds stable. |
@lambourn you could pin |
@rigor789 I would - but there is no published |
Sorry, I meant 8.1.1 - the previous stable version |
@rigor789 well, this is what we actually use as a pinned version, I just locally patched the
|
I re-tagged |
Added the |
@rigor789 thanks for the prompt resolution. I gave it a try: at least for us this does not resolve the issue. The 8.1.4 CLI now gets the values from the android 8.2.1 package.json which is expected Iif I got you right:
and as a result the CLI downloads G7 which in the end leads to build failures as some of our custom code and 3rd party plugins is not yet G7 compatible. In the end this boils down to the missing line in We'll have to stay with {N} 8.1.4/5 for now, so local patching of the CLI is the only option for us. |
Just looked a bit more into this - cli 8.2 should definitely fix this for older projects too (it's backwards compatible, so should be safe to upgrade the CLI whenever you can). I also just prepared a PR that changes the behavior slightly - to always try reading from the local runtime package.json before going to |
Hey @rigor789 - nice, sounds great 🤘 |
Uh oh!
There was an error while loading. Please reload this page.
Issue Description
NS CLI 8.1.4 is installed, now our Android builds after @nativescript/android@8.2.0 was introduced.
Obviously the
gradle
node is not existing in the publishedpackage.json
but the ns build process does annpm view @nativescript/android@8.2.0 gradle --json
which yields an empty string/JSONReproduction
or most specifically:
Relevant log output (if applicable)
No response
Environment
No response
Please accept these terms
The text was updated successfully, but these errors were encountered: