【发布时间】:2013-10-14 12:25:18
【问题描述】:
我正在使用 Android Studio,并已将其更新到最新版本 0.2.13。我的问题是我无法再调试我的项目了。我从 gradle 得到的错误:
“Gradle: A problem was found with the configuration of task ':AdcSampler:packageDebug'.
> File 'C:\ArneTFS\AndroidStudio\AdcSampler\AdcSampler\build\libs\AdcSampler-debug.dex' specified for property 'dexFile' does not exist.”
而且,我已经检查过了,该文件不存在!我认为将文件打包成 Android 格式的结果应该在该路径中生成 dex 文件? 在我更新到最新版本之前,我的项目曾经可以工作。我尝试卸载 Android Studio 并安装了旧版本。但是,现在也不管用了。昨天,它突然又变魔术了。我什至可以更新到最新版本(0.2.13),一切都很好。所以我高兴地去睡觉了,但是当我今天早上尝试运行我的项目时,它就停止工作了?!
所以现在我尝试生成最简单的项目,只使用默认值。编译工作正常,但是在 Gradle packageDebug 任务中制作 .apk 文件时,我会收到与上图相同的错误消息。 Beneth 是我的 gradle 文件:
有什么建议吗?
问候阿恩
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.6.+'
}
}
apply plugin: 'android'
repositories {
mavenCentral()
}
android {
compileSdkVersion 18
buildToolsVersion "18.1.0"
defaultConfig {
minSdkVersion 18
targetSdkVersion 18
}
}
dependencies {
compile 'com.android.support:appcompat-v7:18.0.0'
}
【问题讨论】:
标签: android-studio