android - Why does my gradle take so long? > 13 minutes -
why gradle take long on computer? after making minor changes? must broken. have ideas? i'm using android studio on ubuntu 15.04. android studio updated.
here gradle files if relevant.
// top-level build file can add configuration options common sub-projects/modules. buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:1.3.0' classpath 'com.google.gms:google-services:1.3.0-beta1' // note: not place application dependencies here; belong // in individual module build.gradle files } } allprojects { repositories { jcenter() } }
and...
apply plugin: 'com.android.application' apply plugin: 'com.google.gms.google-services' android { compilesdkversion 23 buildtoolsversion '23.0.0' defaultconfig { applicationid "ca.deanresin.arecipebook" minsdkversion 15 targetsdkversion 23 versioncode 1 versionname "1.0" } buildtypes { release { minifyenabled false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile filetree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:23.0.1' compile 'com.google.android.gms:play-services:7.8.0' compile 'com.facebook.android:facebook-android-sdk:4.1.0' compile 'com.android.support:design:23.0.1' }
i think line weird:
classpath 'com.google.gms:google-services:1.3.0-beta1'
if use google services sdk, should in app's gradle not in project's. , have 1 of v7.8.0 in app's, too.
and line? needed?
apply plugin: 'com.google.gms.google-services'
Comments
Post a Comment