繁体   English   中英

在Android中找不到资源错误

[英]No resource found error in 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')
}

它可以在其他系统上正常工作,但是我不知道为什么在我的系统中会出错。 有人可以帮我吗?

这对我有用,谢谢所有在您的帮助下发表评论的人,以得到解决方案。

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

转到独立的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'

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM