android中没有找到资源错误

时间:2016-05-27 08:28:51

标签: android

我的朋友的代码在他的系统和我的其他系统中工作得很好但是当我在我的系统中运行它给我错误。任何人都可以帮我解决错误。

AAPT err(1063464211): C:\Users\Nitesh\Downloads\\PT.MultiRestaurant15-Env43-Tsachi&NiteshBaseline-NEW\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-plus\8.4.0\res\drawable-mdpi\ic_plusone_small_off_client.png ERROR: Unable to open PNG file
AAPT err(1063464211): C:\Users\Nitesh\Downloads\PT.MultiRestaurant15-Env43-Tsachi&NiteshBaseline-NEW\PT.MultiRestaurant15-Env43-Tsachi&NiteshBaseline-NEW\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\23.0.0\res\drawable-xhdpi\abc_btn_check_to_on_mtrl_015.png ERROR: Unable to open PNG file
AAPT err(1063464211): C:\Users\Nitesh\Downloads\NEW\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\8.4.0\res\drawable-hdpi\common_google_signin_btn_text_light_disabled.9.png ERROR: Unable to open PNG file
:app:processDebugManifest
:app:processDebugResources
Error:No resource found that matches the given name (at 'src' with value '@drawable/powered_by_google_light').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/abc_textfield_default_mtrl_alpha').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/abc_textfield_default_mtrl_alpha').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/abc_textfield_activated_mtrl_alpha').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_disabled_holo_dark').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_disabled_holo_dark').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_disabled_holo_light').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_disabled_holo_light').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_pressed_holo_light').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_disabled_holo_dark').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_disabled_holo_dark').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_disabled_holo_light').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_disabled_holo_light').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/abc_btn_rating_star_off_mtrl_alpha').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/abc_btn_rating_star_off_mtrl_alpha').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/abc_btn_rating_star_on_mtrl_alpha').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/abc_textfield_default_mtrl_alpha').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/abc_textfield_activated_mtrl_alpha').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/abc_btn_switch_to_on_mtrl_00012').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/abc_btn_switch_to_on_mtrl_00001').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/abc_tab_indicator_mtrl_alpha').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/abc_textfield_search_activated_mtrl_alpha').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/abc_textfield_search_activated_mtrl_alpha').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/abc_textfield_search_default_mtrl_alpha').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/abc_textfield_search_default_mtrl_alpha').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/cast_ic_notification_0').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/cast_ic_notification_1').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/cast_ic_notification_2').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/cast_ic_notification_1').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/common_google_signin_btn_icon_dark_disabled').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/common_google_signin_btn_icon_dark_pressed').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/common_google_signin_btn_icon_dark_focused').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/common_google_signin_btn_icon_dark_normal').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/common_google_signin_btn_icon_light_disabled').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/common_google_signin_btn_icon_light_pressed').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/common_google_signin_btn_icon_light_focused').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/common_google_signin_btn_icon_light_normal').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/common_google_signin_btn_text_dark_disabled').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/common_google_signin_btn_text_dark_pressed').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/common_google_signin_btn_text_dark_focused').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/common_google_signin_btn_text_dark_normal').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/common_google_signin_btn_text_light_disabled').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/common_google_signin_btn_text_light_pressed').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/common_google_signin_btn_text_light_focused').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/common_google_signin_btn_text_light_normal').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/common_plus_signin_btn_icon_dark_disabled').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/common_plus_signin_btn_icon_dark_pressed').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/common_plus_signin_btn_icon_dark_focused').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/common_plus_signin_btn_icon_dark_normal').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/common_plus_signin_btn_icon_light_disabled').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/common_plus_signin_btn_icon_light_pressed').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/common_plus_signin_btn_icon_light_focused').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/common_plus_signin_btn_icon_light_normal').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/common_plus_signin_btn_text_dark_disabled').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/common_plus_signin_btn_text_dark_pressed').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/common_plus_signin_btn_text_dark_focused').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/common_plus_signin_btn_text_dark_normal').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/common_plus_signin_btn_text_light_disabled').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/common_plus_signin_btn_text_light_pressed').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/common_plus_signin_btn_text_light_focused').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/common_plus_signin_btn_text_light_normal').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/ic_media_route_on_0_mono_dark').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/ic_media_route_on_1_mono_dark').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/ic_media_route_on_2_mono_dark').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/ic_media_route_on_1_mono_dark').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/ic_media_route_on_mono_dark').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/ic_media_route_off_mono_dark').
Error:No resource found that matches the given name (at 'drawable' with value '@drawable/ic_media_route_disabled_mono_dark').
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\Nitesh\AppData\Local\Android\sdk\build-tools\23.0.0\aapt.exe'' finished with non-zero exit value 1

这是我的build.gradle

apply plugin: 'com.android.application'

android {

    compileSdkVersion 23
    buildToolsVersion "23.0.0"
    defaultConfig {
        applicationId '****'
        minSdkVersion 9
        targetSdkVersion 23
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
            signingConfig signingConfigs.config
        }
        debug {
        }
    }
    productFlavors {
    }
}

dependencies {
    compile 'com.android.support:support-v4:23.0.0'
    compile 'com.google.android.gms:play-services:+'
    //compile 'com.google.android.gms:play-services-gcm:8.4.0'
    compile files('libs/android-query-full.0.25.10.jar')
    compile files('libs/eventbus-2.4.0.jar')
    compile files('libs/PayPalAndroidSDK.jar')
    compile files('libs/universal-image-loader-1.9.1.jar')
}

它在其他系统上工作正常,但我不知道为什么它在我的系统中给出错误。任何人都可以帮助我吗?

2 个答案:

答案 0 :(得分:2)

这对我有用,谢谢所有在你的帮助下评论过的人能够得到解决方案。吸收岩石摇滚:)

buildDir = "C:/tmp/${rootProject.name}/${project.name}" 

答案 1 :(得分:0)

转到独立的sdk管理器并更新,然后:

buidltoolversion:

buildToolsVersion "23.0.3"

和依赖项:

compile 'com.android.support:support-v4:23.4.0'
compile 'com.google.android.gms:play-services:9.0.0'