when you insert this code into your grad
buildscript { repositories { mavenCentral() } dependencies { classpath 'me.tatarka:gradle-retrolambda:3.2.5' ******************** } } // Required because retrolambda is on maven central repositories { mavenCentral() } apply plugin: 'com.android.application' //or apply plugin: 'java' apply plugin: 'me.tatarka.retrolambda' In line with ************ I get
Error:(53, 0) Cannot change dependencies of configuration ':app:classpath' after it has been resolved. <a href="openFile:C:\Users\JulianDC\Desktop\restaurant\app\build.gradle">Open File</a> I believe that new grad as they say, help me figure out why it gives this error?
full hail:
//noinspection GradleDynamicVersion apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "23.0.2" defaultConfig { applicationId "eatgid.com.restaurant" minSdkVersion 15 targetSdkVersion 19 versionCode 1 versionName "1.0" /* jackOptions { enabled true }*/ } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } compileOptions { targetCompatibility 1.8 sourceCompatibility 1.8 } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.4.0' compile 'com.android.support:cardview-v7:23.4.0' compile 'com.android.support:recyclerview-v7:23.4.0' compile 'de.hdodenhof:circleimageview:1.2.2' compile 'com.mcxiaoke.volley:library:1.0.15' compile 'com.squareup.retrofit2:retrofit:2.0.1' compile 'com.squareup.retrofit2:converter-gson:2.0.1' compile 'com.squareup.retrofit2:adapter-rxjava:2.0.1' compile 'io.reactivex:rxandroid:1.1.0' compile 'io.reactivex:rxjava:1.1.0' } buildscript { repositories { mavenCentral() } dependencies { classpath 'me.tatarka:gradle-retrolambda:3.2.5' } } apply plugin: 'me.tatarka.retrolambda' apply plugin: 'java' // Required because retrolambda is on maven central repositories { mavenCentral() } }