Это рабочая конфигурация того же проекта.
travis.yml
language: android
env:
matrix:
- ANDROID_TARGET=android-19 ANDROID_ABI=armeabi-v7a
android:
components:
- tools
- platform-tools
# The BuildTools version used by your project
- build-tools-26.0.2
# The SDK version used to compile your project
- android-19
- android-26
# Additional components
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
- addon-google_apis-google-26
- extra-android-support
- sys-img-${ANDROID_ABI}-${ANDROID_TARGET}
script:
- ./gradlew build
#- ./gradlew lint test connectedAndroidTest
#- ./gradlew build jacocoTestReport --stacktrace
gradle / wrapper / gradle-wrapper.properties
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
уровень проекта .gradle
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:3.0.1"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
уровень приложения .gradle android {
compileSdkVersion 26
defaultConfig {
applicationId "xx.xx.xx"
minSdkVersion 15
targetSdkVersion 26
versionCode 1
versionName "1.0"
}