-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[DOCKER] Fix Dockerfile.demo_android #6361
Conversation
ENV PATH ${PATH}:${VULKAN_SDK}/bin | ||
ENV LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${VULKAN_SDK}/lib | ||
ENV VK_LAYER_PATH ${VULKAN_SDK}/etc/explicit_layer.d | ||
ENV VULKAN_SDK=/usr |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as #5566
platforms;android-26 | ||
platforms;android-27 | ||
tools | ||
ndk-bundle | ||
ndk;21.3.6528147 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ndk-bundle
install the latest NDK version.
I specified the currently latest version.
@@ -68,20 +67,20 @@ extras;google;simulators | |||
extras;google;webdriver | |||
extras;m2repository;com;android;support;constraint;constraint-layout;1.0.2 | |||
extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.2 | |||
lldb;2.3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I check with sdkmanager --list
, I Deleted the package that does not currently exist.
EOF | ||
|
||
mkdir /root/.android 2>/dev/null || true | ||
touch /root/.android/repositories.cfg | ||
(yes || true) | sdkmanager --licenses --sdk_root="$ANDROID_HOME" | ||
# NOTE: sdkmanager returns exit code 141 | ||
(yes || true) | sdkmanager --licenses --sdk_root="$ANDROID_HOME" || true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
similar to facebook/flipper#362
THanks @tkat0 ! |
* [DOCKER] Fix Dockerfile.demo_android * fix
* [DOCKER] Fix Dockerfile.demo_android * fix
* [DOCKER] Fix Dockerfile.demo_android * fix
Fixed Deploy model on android, docker build error - Troubleshooting - TVM Discuss
After this fix, I was able to build the apk of
apps/android_deploy
in the Docker container.