apache_conf 为Android Gradle配置GitLab Runner

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了apache_conf 为Android Gradle配置GitLab Runner相关的知识,希望对你有一定的参考价值。

# DEPENDS: sudo apt install -y wget tar unzip lib32stdc++6 lib32z1
# DEPENDS: sudo apt install -y openjdk-8-jdk libc6-dev-i386 lib32z1 default-jdk
# ARCH: gitlab-runner jdk8-openjdk
#echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55\nd56f5187479451eabf01fb78af6dfcb131a6481e" > "/var/lib/gitlab-runner/licenses/android-sdk-license"
#echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "/var/lib/gitlab-runner/licenses/android-sdk-preview-license" 

ANDROID_COMPILE_SDK="26"
ANDROID_BUILD_TOOLS="26.0.1"
ANDROID_SDK_TOOLS="3859397"
ANDROID_EMULATOR_SDK="26"
ANDROID_EMULATOR_ABI="armeabi-v7a"
ANDROID_EMULATOR_PLATFORM="arm"
cd
wget --quiet --output-document=android-sdk.zip https://dl.google.com/android/repository/sdk-tools-linux-${ANDROID_SDK_TOOLS}.zip
unzip android-sdk.zip
rm android-sdk.zip
mkdir ~/.android/
touch ~/.android/repositories.cfg
echo y | tools/bin/sdkmanager "platforms;android-${ANDROID_COMPILE_SDK}"
echo y | tools/bin/sdkmanager "platform-tools"
echo y | tools/bin/sdkmanager "build-tools;${ANDROID_BUILD_TOOLS}"
echo y | tools/bin/sdkmanager "extras;google;m2repository"
echo y | tools/bin/sdkmanager "extras;google;google_play_services"
echo y | tools/bin/sdkmanager "extras;android;m2repository"
export ANDROID_HOME=~/
export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license"
echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license"

以上是关于apache_conf 为Android Gradle配置GitLab Runner的主要内容,如果未能解决你的问题,请参考以下文章

apache_conf Photoshop CC的Android资产生成器

pytorch 错误:“预期 isFloatingType(grad.scalar_type()) || (input_is_complex == grad_is_complex) 为真,但结果为假”

使用 grad 将 PyTorch 张量调整为更小的尺寸

net.zero_grad() 与 optim.zero_grad() pytorch

PyTorch autograd -- 只能为标量输出隐式创建 grad

E-03RuntimeError: element 0 of tensors does not require grad and does not have a grad_fn