Привет, после обновления в AndroidStudio + Kotlin мой gradle занимает 5 минут +. Синхронизация gradle идет быстро, но сборка gradle просто загружается вечно.
Вот мой build.gradle
:
применить плагин: 'com.android.application'
применить плагин: 'kotlin-android'
Пожалуйста, проверьте код ниже и предоставьте любые предложения, чтобы помочь мне.
android {
compileSdkVersion 26
buildToolsVersion '27.0.3'
defaultConfig {
applicationId "myApp"
minSdkVersion 20
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
sourceSets { main { res.srcDirs = ['src/main/res', 'src/main/res/fonts'] } }
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support:design:26.1.0'
implementation 'com.android.support:cardview-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.github.jkcclemens:khttp:0.1.0'
implementation 'com.github.devlight:infinitecycleviewpager:1.0.2'
implementation 'com.github.kittinunf.fuel:fuel:1.12.1'
implementation ('com.yarolegovich:discrete-scrollview:1.3.0') {
transitive = false
}
implementation 'com.amazonaws:aws-android-sdk-s3:2.6.18'
implementation 'com.github.whalemare:sheetmenu:1.3.3'
implementation 'com.amazonaws:aws-android-sdk-core:2.6.18'
implementation ('com.squareup.picasso:picasso:2.5.2'){
transitive = false
}
}
allprojects {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
}
repositories {
mavenCentral()
}