我我的Android工作室更新到2.2.3,现在当我创建一个新的项目,我得到这个错误:的Android 2.2.3工作室大楼错误
我尝试了所有的解决方案,如:
- 降级的gradle
- 编辑_JAVA_OPTIONS值 “-Xms2048m”
- dexOptions { javaMaxHeapSize “4G” }
我的build.gradle:
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "ir.pdnco.myapplication"
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'
}
}
}
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:25.1.0'
testCompile 'junit:junit:4.12'
}
我也改变了gradle.properties,但仍收到此错误
什么关于'classpath'com.android.tools.build:gradle:2.2.2'' –
@IntelliJAmiya试过了,但仍然没有变化 – babak
看看这是否有助于你http://stackoverflow.com/questions/28917696/errorexecution-failed-for-task-appdexdebug-com-android-ide-common-process –