【发布时间】:2015-07-15 03:03:54
【问题描述】:
所以我被卡住了,我正在尝试将一个 Eclipse 项目导入 Android Studio,我收到了这个错误。
Error:(22, 23) No resource found that matches the given name (at 'src' with value '@drawable/item').
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Users/joselibra/Library/Android/sdk/build-tools/22.0.1/aapt'' finished with non-zero exit value 1
我已尝试同步项目、删除构建文件、清理项目、重建项目、使缓存无效并重新启动。
我通过https://developer.android.com/sdk/installing/migrate.html 等链接遵循了如何迁移到 Android Studio 的指导。
这就是我的 gradle 文件的样子
apply plugin: 'com.android.application'
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
defaultConfig {
applicationId "com.wtf.edu"
minSdkVersion 11
targetSdkVersion 22
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile 'com.android.support:support-v4:22.2.0'
compile 'com.android.support:appcompat-v7:22.2.0'
compile "com.google.android.gms:play-services:7.5.0"
}
任何帮助或线索将不胜感激,谢谢。
【问题讨论】:
-
你在尝试重建的可绘制放置中缺少
@drawable/item -
要么你应该检查你的drawable文件夹中是否有这个
item,如果它在那里但你遇到了问题。然后告诉我这个item是不是你的启动器图标? -
所以,我的 drawable 文件夹中有一个 item.png,但我的 drawable res 文件夹中没有“item”
标签: java android eclipse gradle