I am new to learning Android. I am stuck in first step. I am getting error
Error:Buildtools 24.0.2 requires Java 1.8 or above.
Current JDK version is 1.7. My question is: Can I run the program with the java version 7? If so then how can I do this. I have Java version 7 installed on my PC. I am using ice-cream sandwich while creating project. My build.gradle file has following configuration:
android {
compileSdkVersion 24
buildToolsVersion "24.0.2"
defaultConfig {
applicationId "com.example.dhaval.myapplication"
minSdkVersion 15
targetSdkVersion 24
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.2.1'
}