File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -56,19 +56,13 @@ RUN curl -sS -L https://github.com/facebook/buck/releases/download/v${BUCK_VERSI
56
56
# Full reference at https://dl.google.com/android/repository/repository2-1.xml
57
57
# download and unpack android
58
58
RUN curl -sS https://dl.google.com/android/repository/${SDK_VERSION} -o /tmp/sdk.zip \
59
- && mkdir /opt/android \
60
- && unzip -q -d /opt/android /tmp/sdk.zip \
61
- && rm /tmp/sdk.zip
62
-
63
-
64
- # Add android SDK tools
65
- RUN cd ~ && mkdir ~/.android && echo '### User Sources for Android SDK Manager' > ~/.android/repositories.cfg \
59
+ && mkdir ${ANDROID_HOME} \
60
+ && unzip -q -d ${ANDROID_HOME} /tmp/sdk.zip \
61
+ && rm /tmp/sdk.zip \
66
62
&& yes | sdkmanager --licenses \
67
63
&& yes | sdkmanager "platform-tools" \
68
64
"emulator" \
69
65
"platforms;android-$ANDROID_BUILD_VERSION" \
70
66
"build-tools;$ANDROID_TOOLS_VERSION" \
71
- "add-ons;addon-google_apis-google-23" \
72
- "system-images;android-19;google_apis;armeabi-v7a" \
73
- "extras;android;m2repository" \
74
- && sdkmanager --update
67
+ "system-images;android-19;default;armeabi-v7a" \
68
+ "extras;android;m2repository"
You can’t perform that action at this time.
0 commit comments