Recently I changed my build tools version to accomodate a new functionality, but my gradle build is painfully slow. I can sync the project and it will build in about 5 minutes, but after that another build starts that has has gone 30 minutes plus. I went from build tools version '19.1.0' to '23.0.1'.
Current build.gradle file
apply plugin: 'com.android.application'
android {
compileSdkVersion 17
buildToolsVersion '23.0.1'
defaultConfig {
applicationId "com.example.macuser.itestify"
minSdkVersion 17
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
repositories {
mavenCentral()
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.0.1'
compile 'com.facebook.android:facebook-android-sdk:4.13.1'
compile 'com.google.android.gms:play-services-identity:9.0.2'
}
Previous build.gradle file
apply plugin: 'com.android.application'
android {
compileSdkVersion 17
buildToolsVersion '19.1.0'
defaultConfig {
applicationId "com.example.macuser.itestify"
minSdkVersion 17
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
repositories {
mavenCentral()
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:19.1.0'
}
What could be causing it to build really slowly? and how do I fix it? NB I'm running Android Studio 1.4
EDIT: After waiting for forever, I get this error
9:45:07 AM Sending jdwp tracking request failed!
9:45:07 AM Adb connection Error:EOF
9:45:07 AM Connection attempts: 1