I went through all the questions on stack and other sites for following error, but I am still not able to resolve it.
I also did Invalidate Cache and restarted Android Studio
I am using JDK 1.8, my Java_HOME path is set to 1.8 and embedded JDK checkbox is checked.
I am using latest Android Studio and classpath 'com.android.tools.build:gradle:3.0.0'
Following is my gradle file
buildscript {
ext.kotlin_version = '1.1.51'
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0'
classpath "org.greenrobot:greendao-gradle-plugin:3.2.2"
classpath 'com.dicedmelon.gradle:jacoco-android:0.1.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
// Define versions in a single place
ext {
// Sdk and tools
minSdkVersion = 21
targetSdkVersion = 23
compileSdkVersion = 26
// App dependencies
supportLibraryVersion = '27.0.0'
constraintLayoutVersion = "1.0.2"
butterKnifeVersion = "8.8.1"
greenDaoVersion = "3.2.2"
swipeLayoutVersion = "1.2.0"
rxjavaVersion = '2.1.7'
rxandroidVersion = '2.0.1'
rxjacva2ExtensionsVersion = '0.18.1'
// Test dependencies
junitVersion = '4.12'
mockitoVersion = '2.11.0'
hamcrestVersion = '1.3'
runnerVersion = '1.0.1'
rulesVersion = '1.0.1'
espressoVersion = '3.0.1'
powerMockito = '2.0.0-beta.5'
}
Any help would be greatly appreciated