Issue
When running the command sdkmanager to install or update the Android SDK using the command line interface, I always get a progress bar.
The problem is when running docker build the installation of the SDK takes over the logs with all the progress bar logged.
I'm using the this sdkmanager command from the version sdk-tools-linux-4333796.zip, and I am not setting the flag --verbose.
Is there any way to make the command run silent, without progress bar?
Solution
Currently, sdkmanager doesn't have quite mode option. It is possible to suppress all standard output with >/dev/null though. For example,
RUN echo "y" | sdkmanager "build-tools;28.0.3" \
"emulator" \
"platform-tools" \
"platforms;android-28" \
"system-images;android-28;google_apis;x86_64" \
"tools" >/dev/null
Answered By - Sergii Pechenizkyi
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.