androidjs-builder icon indicating copy to clipboard operation
androidjs-builder copied to clipboard

Error on updating android-sdks

Open Romans96 opened this issue 5 years ago • 6 comments

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)

Romans96 avatar Feb 24 '20 02:02 Romans96

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

Chhekur avatar Feb 24 '20 06:02 Chhekur

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

Romans96 avatar Feb 24 '20 10:02 Romans96

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

Chhekur avatar Mar 13 '20 10:03 Chhekur

.... 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.

yanickrochon avatar Mar 13 '20 13:03 yanickrochon

.... 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 avatar Mar 13 '20 17:03 Chhekur

Hey, we have release new version of [email protected], 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 [email protected]

Feel free to ask in case of any problem ; )

Chhekur avatar Mar 15 '20 17:03 Chhekur