Skip to content

Instantly share code, notes, and snippets.

@alouanemed
Created September 2, 2017 21:42
Show Gist options
  • Save alouanemed/95ebb93f8840f68491efdd545d7cf94e to your computer and use it in GitHub Desktop.
Save alouanemed/95ebb93f8840f68491efdd545d7cf94e to your computer and use it in GitHub Desktop.
udacity gradle file for Android 26
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion '26.0.1'
defaultConfig {
minSdkVersion 14
targetSdkVersion 26
versionCode 1
versionName "1.0"
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
maven {
url 'https://maven.google.com/'
name 'Google'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0-beta4'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
String osName = System.getProperty("os.name").toLowerCase();
if (osName.contains("windows")) {
buildDir = "C:/tmp/${rootProject.name}/${project.name}"
}
repositories {
jcenter()
maven { url 'https://maven.google.com' } }
}
task clean(type: Delete) {
delete rootProject.buildDir
}
#Fri Jan 13 10:40:50 PST 2017
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment