Skip to content

Commit f981379

Browse files
authored
fix install warning (#30)
Signed-off-by: gengjiawen <[email protected]>
1 parent 7f1297b commit f981379

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,13 @@ RUN curl -sS https://dl.google.com/android/repository/${SDK_VERSION} -o /tmp/sdk
6060
&& unzip -q -d /opt/android /tmp/sdk.zip \
6161
&& rm /tmp/sdk.zip
6262

63+
RUN mkdir ~/.android && echo '### User Sources for Android SDK Manager' > ~/.android/repositories.cfg \
64+
&& yes | sdkmanager --licenses && sdkmanager --update
65+
6366
# Add android SDK tools
64-
RUN yes | sdkmanager --licenses && sdkmanager --update
6567
RUN sdkmanager "system-images;android-19;google_apis;armeabi-v7a" \
6668
"platform-tools" \
6769
"platforms;android-$ANDROID_BUILD_VERSION" \
6870
"build-tools;$ANDROID_TOOLS_VERSION" \
6971
"add-ons;addon-google_apis-google-23" \
7072
"extras;android;m2repository"
71-
72-
# clean up unnecessary directories
73-
RUN rm -rf /opt/android/.android

0 commit comments

Comments
 (0)