苦苦挣扎来安装'ActionBarSherlock'

时间:2014-05-08 19:48:33

标签: android android-studio actionbarsherlock android-manifest android-gradle

我已经阅读了很多操作方法的RE ActionBarSherlock,其中大多数都是关于SO的。我试过this procedure但是我收到了这个错误: enter image description here 好的,不是那么糟糕,回到SO找出如何更改对清单文件的引用。 This is what I come across但这似乎会让事情变得更糟:

    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工作。

0 个答案:

没有答案