Android 努力安装';ActionBarSherlock&x27;
我读过很多《怎样做》的《酒吧夏洛克》,大多数都是这样。我试过了,但出现了以下错误: 好的,还不错,回到so,了解如何更改对清单文件的引用。但这似乎让事情变得更糟:Android 努力安装';ActionBarSherlock&x27;,android,android-studio,actionbarsherlock,android-manifest,android-gradle-plugin,Android,Android Studio,Actionbarsherlock,Android Manifest,Android Gradle Plugin,我读过很多《怎样做》的《酒吧夏洛克》,大多数都是这样。我试过了,但出现了以下错误: 好的,还不错,回到so,了解如何更改对清单文件的引用。但这似乎让事情变得更糟: Error:Execution failed for task ':processDebugResources'. > com.android.ide.common.internal.LoggedErrorException: Failed to run command: C:\Users\Jonny Wrigh
Error:Execution failed for task ':processDebugResources'.
> com.android.ide.common.internal.LoggedErrorException: Failed to run command:
C:\Users\Jonny Wright\AppData\Local\Android\android-studio\sdk\build-tools\android-4.4.2\aapt.exe package -f --no-crunch -I C:\Users\Jonny Wright\AppData\Local\Android\android-studio\sdk\platforms\android-19\android.jar -M D:\Development\Android\Proficio\build\manifests\debug\AndroidManifest.xml -S D:\Development\Android\Proficio\build\res\all\debug -A D:\Development\Android\Proficio\build\assets\debug -m -J D:\Development\Android\Proficio\build\source\r\debug -F D:\Development\Android\Proficio\build\libs\Proficio-debug.ap_ --debug-mode --custom-package com.traffisoft.proficio.app --output-text-symbols D:\Development\Android\Proficio\build\symbols\debug
Error Code:
1
Output:
D:\Development\Android\Proficio\build\manifests\debug\AndroidManifest.xml:4: error: Error: No resource found that matches the given name (at 'icon' with value '@drawable/ic_launcher').
D:\Development\Android\Proficio\build\manifests\debug\AndroidManifest.xml:4: error: Error: No resource found that matches the given name (at 'label' with value '@string/app_name').
D:\Development\Android\Proficio\build\manifests\debug\AndroidManifest.xml:4: error: Error: No resource found that matches the given name (at 'theme' with value '@style/AppTheme').
D:\Development\Android\Proficio\build\manifests\debug\AndroidManifest.xml:5: error: Error: No resource found that matches the given name (at 'label' with value '@string/app_name').
我最近更新了一个旧版本的Android Studio,从那以后默认的文件夹结构有变化吗?我注意到包名的布局与我以前看到的略有不同
com.xxx.yyy.zzz
而不是
com.xxx.yyy
build.gradle文件
// Top-level build file where you can add configuration options common to all sub-projects/modules.
allprojects {
repositories {
mavenCentral()
}
}
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.9.+'
}
}
apply plugin: 'android'
repositories {
mavenCentral()
}
dependencies {
compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
compile 'com.android.support:support-v4:18.0.+'
}
android {
compileSdkVersion 19
buildToolsVersion "19.0.3"
defaultConfig {
minSdkVersion 14
targetSdkVersion 19
}
}
我还想指出,这是一个全新的Android Studio项目,我所做的只是让ABS工作。你能发布你的“build.gradle”文件吗?你的清单文件在
src/main/
下吗?在AppName/app/src/main/
下吗