After Installing the Android Studio 3.0 Canary 4 I am unable to build the project in it and even I am unable to build the project in my old version of Android Studio 2.3.2
I have tried the following points
- Added this line at gradle.properties - gradle.jvmargs=-Xmx1024m
- tried Deleting the .gradle folder
- Tried to run Android Studio as admin
- Tried this also File>Invalidate Caches/Restart.
Any help is appreciable. Thanks
build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "com.android.ucssurvey"
minSdkVersion 19
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
repositories {
mavenCentral()
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
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:26.0.0-beta2'
compile 'com.android.support:design:26.0.0-beta2'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
}
rebuild
the project and then hittry again
Worked for me – Daksh Gargas