Last active
June 2, 2018 17:19
-
-
Save ursusursus/4831610acbc4f23377fe64bc141d72d8 to your computer and use it in GitHub Desktop.
android linux install and build + unittest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install openjdk-8-jdk | |
wget https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip -O sdk_tools.zip | |
unzip sdk_tools.zip -d android_sdk | |
echo y | android_sdk/tools/bin/sdkmanager "build-tools;27.0.3" | |
echo y | android_sdk/tools/bin/sdkmanager "platforms;android-P" | |
export ANDROID_HOME=$(pwd)/android_sdk | |
git clone https://github.com/ursusursus/RoomTest.git | |
cd RoomTest | |
chmod +x gradlew | |
./gradlew build | |
./gradlew :app:test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment