Skip to content

Error on updating android-sdks #31

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

Open
Romans96 opened this issue Feb 24, 2020 · 6 comments
Open

Error on updating android-sdks #31

Romans96 opened this issue Feb 24, 2020 · 6 comments

Comments

@Romans96
Copy link

Hello! When i try to update the android sdks it return this error:

$ androidjs u
updating ...
㋛ using androidjs-sdk {"version":"2.0.2"}
C:\Users\Mattia\AppData\Roaming\npm\node_modules\androidjs-builder\node_modules\progress\lib\node-progress.js:55
if ('number' != typeof options.total) throw new Error('total required');
^

Error: total required
at new ProgressBar (C:\Users\Mattia\AppData\Roaming\npm\node_modules\androidjs-builder\node_modules\progress\lib\node-progress.js:55:49)
at Request. (C:\Users\Mattia\AppData\Roaming\npm\node_modules\androidjs-builder\test.js:179:23)
at Request.emit (events.js:189:13)
at reportState (C:\Users\Mattia\AppData\Roaming\npm\node_modules\androidjs-builder\node_modules\request-progress\index.js:83:21)
at call (C:\Users\Mattia\AppData\Roaming\npm\node_modules\androidjs-builder\node_modules\throttleit\index.js:28:16)
at Object.throttled [as reportState] (C:\Users\Mattia\AppData\Roaming\npm\node_modules\androidjs-builder\node_modules\throttleit\index.js:20:26)
at onData (C:\Users\Mattia\AppData\Roaming\npm\node_modules\androidjs-builder\node_modules\request-progress\index.js:44:36)
at IncomingMessage.emit (events.js:194:15)
at addChunk (_stream_readable.js:284:12)
at readableAddChunk (_stream_readable.js:265:11)

@Chhekur
Copy link
Member

Chhekur commented Feb 24, 2020

run the same command repeatedly until it starts downloading the sdk ; )

@Romans96
Copy link
Author

run the same command repeatedly until it starts downloading the sdk ;

I'm continuing from half an hour, but the error is the same without any changes

@Chhekur
Copy link
Member

Chhekur commented Mar 13, 2020

we are actually implementing androidjs-builder from scratch so it'll solve most of the problems ; )

@yanickrochon
Copy link

.... this has to be the most duct-type answer I have seen in a long tme: "execute command until it runs". Clearly, some asynchronous process is being executed while the program considers it synchronous.

This is not a proper solution even though it works.

@Chhekur
Copy link
Member

Chhekur commented Mar 13, 2020

.... this has to be the most duct-type answer I have seen in a long tme: "execute command until it runs". Clearly, some asynchronous process is being executed while the program considers it synchronous.

This is not a proper solution even though it works.

Yes, you are right this is not the proper solution that's why we are implementing it from scratch and will be available soon ; )

@Chhekur
Copy link
Member

Chhekur commented Mar 15, 2020

Hey, we have release new version of androidjs-builder@2.1.5, which may solve all the existing problem.
So you can upgrade to the latest version 2.1.5 and enjoy.

Follow these instruction to upgrade androidjs-builder to latest

$ npm uninstall -g androidjs-builder
$ npm install -g androidjs-builder@2.1.5

Feel free to ask in case of any problem ; )

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