I am tired to sort out this error in android studio. I literally wasted my precious time of 2 days to solve this such a stupid error. Guys please try to help me out from this situation. T don't think that I left any link on SO which I have not tried. But no Luck.
I am using android studio 2.3.3
My root level gradle file as follows:-
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'com.google.gms:google-services:3.0.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
My app build as follows:-
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "com.myAppId"
minSdkVersion 15
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
repositories {
mavenCentral()
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.2.0'
compile 'com.android.support:recyclerview-v7:25.2.+'
compile 'com.android.support:design:25.2.0'
compile 'com.google.code.gson:gson:2.6.2'
compile 'com.squareup.retrofit2:retrofit:2.0.2'
compile 'com.facebook.android:facebook-android-sdk:[4,5)'
compile 'com.squareup.retrofit2:converter-gson:2.0.2'
compile 'com.squareup.retrofit2:converter-scalars:2.3.0'
compile 'com.google.android.gms:play-services-location:9.2.1'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.google.android.gms:play-services-auth:9.2.1'
testCompile 'junit:junit:4.12'
compile files('libs/ormlite-android-4.43.jar')
compile files('libs/ormlite-core-4.43.jar')
compile files('libs/universal-image-loader-1.9.5.jar')
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.daimajia.androidanimations:library:1.0.3@aar'
compile 'in.srain.cube:grid-view-with-header-footer:1.0.12'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.android.support:palette-v7:25.2.0'
compile 'com.github.jd-alexander:LikeButton:0.2.1'
compile 'com.github.techery:properratingbar:0.0.5'
compile 'com.github.GoodieBag:Pinview:v1.3'
compile project(':library')
}
apply plugin: 'com.google.gms.google-services'
My gradle-wrapper.properties:-
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
I am using build tools version as 25.0.2. I don't know why it is giving me error of 27.0.2.
Following errors I am facing:-