【问题标题】:Error while gradle syncgradle 同步时出错
【发布时间】:2017-09-28 13:17:14
【问题描述】:

当我将项目与 Gradle 文件同步时,出现此错误。

Information:Gradle tasks [:app:generateDebugSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :app:generateDebugAndroidTestSources]
C:\Users\fcnak\.android\build-cache\9d6d7cc45db11cdfb28569abc01d247babc161b8\output\res\layout-v16\notification_template_custom_big.xml
Error:(69, 37) No resource found that matches the given name (at 'layout' with value '@layout/notification_template_part_chronometer').
C:\Users\fcnak\.android\build-cache\9d6d7cc45db11cdfb28569abc01d247babc161b8\output\res\layout-v21\notification_template_custom_big.xml
Error:(62, 37) No resource found that matches the given name (at 'layout' with value '@layout/notification_template_part_chronometer').
C:\Users\fcnak\.android\build-cache\9d6d7cc45db11cdfb28569abc01d247babc161b8\output\res\drawable\abc_btn_check_material.xml
Error:(18, 58) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_btn_check_to_on_mtrl_015').
Error:(19, 29) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_btn_check_to_on_mtrl_000').
C:\Users\fcnak\.android\build-cache\9d6d7cc45db11cdfb28569abc01d247babc161b8\output\res\drawable\abc_btn_radio_material.xml
Error:(18, 58) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_btn_radio_to_on_mtrl_015').
Error:(19, 29) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_btn_radio_to_on_mtrl_000').
C:\Users\fcnak\.android\build-cache\9d6d7cc45db11cdfb28569abc01d247babc161b8\output\res\drawable\abc_edit_text_material.xml
Error:(24, 63) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_textfield_default_mtrl_alpha').
Error:(25, 93) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_textfield_default_mtrl_alpha').
Error:(26, 33) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_textfield_activated_mtrl_alpha').
C:\Users\fcnak\.android\build-cache\9d6d7cc45db11cdfb28569abc01d247babc161b8\output\res\drawable-v21\abc_edit_text_material.xml
Error:(24, 38) No resource found that matches the given name (at 'src' with value '@drawable/abc_textfield_default_mtrl_alpha').
Error:(29, 38) No resource found that matches the given name (at 'src' with value '@drawable/abc_textfield_default_mtrl_alpha').
Error:(33, 38) No resource found that matches the given name (at 'src' with value '@drawable/abc_textfield_activated_mtrl_alpha').
C:\Users\fcnak\.android\build-cache\9d6d7cc45db11cdfb28569abc01d247babc161b8\output\res\drawable\abc_item_background_holo_dark.xml
Error:(20, 118) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_disabled_holo_dark').
Error:(21, 118) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_disabled_holo_dark').
Error:(22, 118) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_background_transition_holo_dark').
Error:(23, 118) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_background_transition_holo_dark').
C:\Users\fcnak\.android\build-cache\9d6d7cc45db11cdfb28569abc01d247babc161b8\output\res\drawable\abc_item_background_holo_light.xml
Error:(20, 118) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_disabled_holo_light').
Error:(21, 118) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_disabled_holo_light').
Error:(22, 118) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_background_transition_holo_light').
Error:(23, 118) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_background_transition_holo_light').
C:\Users\fcnak\.android\build-cache\9d6d7cc45db11cdfb28569abc01d247babc161b8\output\res\drawable\abc_list_selector_holo_dark.xml
Error:(22, 118) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_disabled_holo_dark').
Error:(23, 118) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_disabled_holo_dark').
Error:(24, 118) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_background_transition_holo_dark').
Error:(25, 118) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_background_transition_holo_dark').
C:\Users\fcnak\.android\build-cache\9d6d7cc45db11cdfb28569abc01d247babc161b8\output\res\drawable\abc_list_selector_holo_light.xml
Error:(22, 118) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_disabled_holo_light').
Error:(23, 118) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_disabled_holo_light').
Error:(24, 118) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_background_transition_holo_light').
Error:(25, 118) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_background_transition_holo_light').
C:\Users\fcnak\.android\build-cache\9d6d7cc45db11cdfb28569abc01d247babc161b8\output\res\drawable\abc_ratingbar_indicator_material.xml
Error:(23, 27) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_ic_star_half_black_36dp').
C:\Users\fcnak\.android\build-cache\9d6d7cc45db11cdfb28569abc01d247babc161b8\output\res\drawable\abc_ratingbar_material.xml
Error:(23, 27) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_ic_star_half_black_48dp').
C:\Users\fcnak\.android\build-cache\9d6d7cc45db11cdfb28569abc01d247babc161b8\output\res\drawable\abc_ratingbar_small_material.xml
Error:(21, 29) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_ic_star_half_black_16dp').
C:\Users\fcnak\.android\build-cache\9d6d7cc45db11cdfb28569abc01d247babc161b8\output\res\drawable\abc_seekbar_thumb_material.xml
Error:(20, 30) No resource found that matches the given name (at 'src' with value '@drawable/abc_scrubber_control_off_mtrl_alpha').
Error:(24, 30) No resource found that matches the given name (at 'src' with value '@drawable/abc_scrubber_control_off_mtrl_alpha').
Error:(28, 30) No resource found that matches the given name (at 'src' with value '@drawable/abc_scrubber_control_to_pressed_mtrl_005').
Error:(32, 30) No resource found that matches the given name (at 'src' with value '@drawable/abc_scrubber_control_to_pressed_mtrl_000').
C:\Users\fcnak\.android\build-cache\9d6d7cc45db11cdfb28569abc01d247babc161b8\output\res\drawable\abc_seekbar_track_material.xml
Error:(19, 29) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_scrubber_track_mtrl_alpha').
Error:(26, 41) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_scrubber_primary_mtrl_alpha').
Error:(36, 41) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_scrubber_primary_mtrl_alpha').
C:\Users\fcnak\.android\build-cache\9d6d7cc45db11cdfb28569abc01d247babc161b8\output\res\drawable\abc_switch_thumb_material.xml
Error:(18, 58) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_btn_switch_to_on_mtrl_00012').
Error:(19, 29) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_btn_switch_to_on_mtrl_00001').
C:\Users\fcnak\.android\build-cache\9d6d7cc45db11cdfb28569abc01d247babc161b8\output\res\drawable\abc_tab_indicator_material.xml
Error:(18, 59) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_tab_indicator_mtrl_alpha').
C:\Users\fcnak\.android\build-cache\9d6d7cc45db11cdfb28569abc01d247babc161b8\output\res\drawable\abc_textfield_search_material.xml
Error:(18, 87) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_textfield_search_activated_mtrl_alpha').
Error:(19, 89) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_textfield_search_activated_mtrl_alpha').
Error:(20, 58) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_textfield_search_default_mtrl_alpha').
Error:(21, 29) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_textfield_search_default_mtrl_alpha').
C:\Users\fcnak\.android\build-cache\9d6d7cc45db11cdfb28569abc01d247babc161b8\output\res\drawable\notification_bg.xml
Error:(22, 27) No resource found that matches the given name (at 'drawable' with value '@drawable/notification_bg_normal_pressed').
C:\Users\fcnak\.android\build-cache\9d6d7cc45db11cdfb28569abc01d247babc161b8\output\res\drawable\notification_bg_low.xml
Error:(21, 59) No resource found that matches the given name (at 'drawable' with value '@drawable/notification_bg_low_pressed').
Error:(22, 59) No resource found that matches the given name (at 'drawable' with value '@drawable/notification_bg_low_normal').
C:\Users\fcnak\.android\build-cache\9d6d7cc45db11cdfb28569abc01d247babc161b8\output\res\drawable\notification_tile_bg.xml
Error:(21, 18) No resource found that matches the given name (at 'src' with value '@drawable/notify_panel_notification_icon_bg').
C:\Users\fcnak\Desktop\fetch-json-data-in-android-and-display-with-recyclerview-master\fetch-json-data-in-android-and-display-with-recyclerview-master\Android\JsonExample\app\build\intermediates\res\merged\debug\layout-v16\notification_template_custom_big.xml
Error:(69, 37) No resource found that matches the given name (at 'layout' with value '@layout/notification_template_part_chronometer').
C:\Users\fcnak\Desktop\fetch-json-data-in-android-and-display-with-recyclerview-master\fetch-json-data-in-android-and-display-with-recyclerview-master\Android\JsonExample\app\build\intermediates\res\merged\debug\layout-v21\notification_template_custom_big.xml
Error:(62, 37) No resource found that matches the given name (at 'layout' with value '@layout/notification_template_part_chronometer').
C:\Users\fcnak\Desktop\fetch-json-data-in-android-and-display-with-recyclerview-master\fetch-json-data-in-android-and-display-with-recyclerview-master\Android\JsonExample\app\build\intermediates\res\merged\debug\drawable\abc_btn_check_material.xml
Error:(18, 58) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_btn_check_to_on_mtrl_015').
Error:(19, 29) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_btn_check_to_on_mtrl_000').
C:\Users\fcnak\Desktop\fetch-json-data-in-android-and-display-with-recyclerview-master\fetch-json-data-in-android-and-display-with-recyclerview-master\Android\JsonExample\app\build\intermediates\res\merged\debug\drawable\abc_btn_radio_material.xml
Error:(18, 58) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_btn_radio_to_on_mtrl_015').
Error:(19, 29) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_btn_radio_to_on_mtrl_000').
C:\Users\fcnak\Desktop\fetch-json-data-in-android-and-display-with-recyclerview-master\fetch-json-data-in-android-and-display-with-recyclerview-master\Android\JsonExample\app\build\intermediates\res\merged\debug\drawable\abc_edit_text_material.xml
Error:(24, 63) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_textfield_default_mtrl_alpha').
Error:(25, 93) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_textfield_default_mtrl_alpha').
Error:(26, 33) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_textfield_activated_mtrl_alpha').
C:\Users\fcnak\Desktop\fetch-json-data-in-android-and-display-with-recyclerview-master\fetch-json-data-in-android-and-display-with-recyclerview-master\Android\JsonExample\app\build\intermediates\res\merged\debug\drawable-v21\abc_edit_text_material.xml
Error:(24, 38) No resource found that matches the given name (at 'src' with value '@drawable/abc_textfield_default_mtrl_alpha').
Error:(29, 38) No resource found that matches the given name (at 'src' with value '@drawable/abc_textfield_default_mtrl_alpha').
Error:(33, 38) No resource found that matches the given name (at 'src' with value '@drawable/abc_textfield_activated_mtrl_alpha').
C:\Users\fcnak\Desktop\fetch-json-data-in-android-and-display-with-recyclerview-master\fetch-json-data-in-android-and-display-with-recyclerview-master\Android\JsonExample\app\build\intermediates\res\merged\debug\drawable\abc_item_background_holo_dark.xml
Error:(20, 118) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_disabled_holo_dark').
Error:(21, 118) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_disabled_holo_dark').
Error:(22, 118) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_background_transition_holo_dark').
Error:(23, 118) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_background_transition_holo_dark').
C:\Users\fcnak\Desktop\fetch-json-data-in-android-and-display-with-recyclerview-master\fetch-json-data-in-android-and-display-with-recyclerview-master\Android\JsonExample\app\build\intermediates\res\merged\debug\drawable\abc_item_background_holo_light.xml
Error:(20, 118) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_disabled_holo_light').
Error:(21, 118) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_disabled_holo_light').
Error:(22, 118) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_background_transition_holo_light').
Error:(23, 118) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_background_transition_holo_light').
C:\Users\fcnak\Desktop\fetch-json-data-in-android-and-display-with-recyclerview-master\fetch-json-data-in-android-and-display-with-recyclerview-master\Android\JsonExample\app\build\intermediates\res\merged\debug\drawable\abc_list_selector_holo_dark.xml
Error:(22, 118) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_disabled_holo_dark').
Error:(23, 118) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_disabled_holo_dark').
Error:(24, 118) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_background_transition_holo_dark').
Error:(25, 118) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_background_transition_holo_dark').
C:\Users\fcnak\Desktop\fetch-json-data-in-android-and-display-with-recyclerview-master\fetch-json-data-in-android-and-display-with-recyclerview-master\Android\JsonExample\app\build\intermediates\res\merged\debug\drawable\abc_list_selector_holo_light.xml
Error:(22, 118) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_disabled_holo_light').
Error:(23, 118) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_disabled_holo_light').
Error:(24, 118) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_background_transition_holo_light').
Error:(25, 118) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_background_transition_holo_light').
C:\Users\fcnak\Desktop\fetch-json-data-in-android-and-display-with-recyclerview-master\fetch-json-data-in-android-and-display-with-recyclerview-master\Android\JsonExample\app\build\intermediates\res\merged\debug\drawable\abc_ratingbar_indicator_material.xml
Error:(23, 27) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_ic_star_half_black_36dp').
C:\Users\fcnak\Desktop\fetch-json-data-in-android-and-display-with-recyclerview-master\fetch-json-data-in-android-and-display-with-recyclerview-master\Android\JsonExample\app\build\intermediates\res\merged\debug\drawable\abc_ratingbar_material.xml
Error:(23, 27) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_ic_star_half_black_48dp').
C:\Users\fcnak\Desktop\fetch-json-data-in-android-and-display-with-recyclerview-master\fetch-json-data-in-android-and-display-with-recyclerview-master\Android\JsonExample\app\build\intermediates\res\merged\debug\drawable\abc_ratingbar_small_material.xml
Error:(21, 29) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_ic_star_half_black_16dp').
C:\Users\fcnak\Desktop\fetch-json-data-in-android-and-display-with-recyclerview-master\fetch-json-data-in-android-and-display-with-recyclerview-master\Android\JsonExample\app\build\intermediates\res\merged\debug\drawable\abc_seekbar_thumb_material.xml
Error:(20, 30) No resource found that matches the given name (at 'src' with value '@drawable/abc_scrubber_control_off_mtrl_alpha').
Error:(24, 30) No resource found that matches the given name (at 'src' with value '@drawable/abc_scrubber_control_off_mtrl_alpha').
Error:(28, 30) No resource found that matches the given name (at 'src' with value '@drawable/abc_scrubber_control_to_pressed_mtrl_005').
Error:(32, 30) No resource found that matches the given name (at 'src' with value '@drawable/abc_scrubber_control_to_pressed_mtrl_000').
C:\Users\fcnak\Desktop\fetch-json-data-in-android-and-display-with-recyclerview-master\fetch-json-data-in-android-and-display-with-recyclerview-master\Android\JsonExample\app\build\intermediates\res\merged\debug\drawable\abc_seekbar_track_material.xml
Error:(19, 29) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_scrubber_track_mtrl_alpha').
Error:(26, 41) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_scrubber_primary_mtrl_alpha').
Error:(36, 41) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_scrubber_primary_mtrl_alpha').
C:\Users\fcnak\Desktop\fetch-json-data-in-android-and-display-with-recyclerview-master\fetch-json-data-in-android-and-display-with-recyclerview-master\Android\JsonExample\app\build\intermediates\res\merged\debug\drawable\abc_switch_thumb_material.xml
Error:(18, 58) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_btn_switch_to_on_mtrl_00012').
Error:(19, 29) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_btn_switch_to_on_mtrl_00001').
C:\Users\fcnak\Desktop\fetch-json-data-in-android-and-display-with-recyclerview-master\fetch-json-data-in-android-and-display-with-recyclerview-master\Android\JsonExample\app\build\intermediates\res\merged\debug\drawable\abc_tab_indicator_material.xml
Error:(18, 59) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_tab_indicator_mtrl_alpha').
C:\Users\fcnak\Desktop\fetch-json-data-in-android-and-display-with-recyclerview-master\fetch-json-data-in-android-and-display-with-recyclerview-master\Android\JsonExample\app\build\intermediates\res\merged\debug\drawable\abc_textfield_search_material.xml
Error:(18, 87) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_textfield_search_activated_mtrl_alpha').
Error:(19, 89) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_textfield_search_activated_mtrl_alpha').
Error:(20, 58) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_textfield_search_default_mtrl_alpha').
Error:(21, 29) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_textfield_search_default_mtrl_alpha').
C:\Users\fcnak\Desktop\fetch-json-data-in-android-and-display-with-recyclerview-master\fetch-json-data-in-android-and-display-with-recyclerview-master\Android\JsonExample\app\build\intermediates\res\merged\debug\drawable\notification_bg.xml
Error:(22, 27) No resource found that matches the given name (at 'drawable' with value '@drawable/notification_bg_normal_pressed').
C:\Users\fcnak\Desktop\fetch-json-data-in-android-and-display-with-recyclerview-master\fetch-json-data-in-android-and-display-with-recyclerview-master\Android\JsonExample\app\build\intermediates\res\merged\debug\drawable\notification_bg_low.xml
Error:(21, 59) No resource found that matches the given name (at 'drawable' with value '@drawable/notification_bg_low_pressed').
Error:(22, 59) No resource found that matches the given name (at 'drawable' with value '@drawable/notification_bg_low_normal').
C:\Users\fcnak\Desktop\fetch-json-data-in-android-and-display-with-recyclerview-master\fetch-json-data-in-android-and-display-with-recyclerview-master\Android\JsonExample\app\build\intermediates\res\merged\debug\drawable\notification_tile_bg.xml
Error:(21, 18) No resource found that matches the given name (at 'src' with value '@drawable/notify_panel_notification_icon_bg').
Error:Execution failed for task ':app:processDebugResources'.

com.android.ide.common.process.ProcessException:无法执行 aapt 信息:构建失败 信息:总时间:45.089 秒 信息:99个错误 信息:0 个警告 信息:在控制台中查看完整的输出。

我的 activity_main.xml 是

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">

    <android.support.v7.widget.RecyclerView
        android:id="@+id/fishPriceList"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:paddingTop="25dp"
        android:layout_weight="1" />
</LinearLayout>

而 container_fish.xml 是

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:clickable="true"
    android:orientation="horizontal"
    android:padding="10dp">

    <ImageView
        android:layout_width="60dp"
        android:scaleType="fitXY"
        android:layout_height="40dp"
        android:id="@+id/ivFish"/>

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textAppearance="?android:attr/textAppearanceMedium"
        android:text="fish name"
        android:id="@+id/textFishName"
        android:layout_marginLeft="5dp"
        android:layout_toRightOf="@id/ivFish"
        android:layout_toLeftOf="@+id/textPrice"/>

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textAppearance="?android:attr/textAppearanceSmall"
        android:text="price"
        android:id="@+id/textPrice"
        android:textColor="@color/colorAccent"
        android:layout_alignParentRight="true"
        android:layout_marginLeft="5dp"
        android:layout_marginRight="5dp"
        />

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textAppearance="?android:attr/textAppearanceSmall"
        android:text="Small Text"
        android:id="@+id/textSize"
        android:layout_marginLeft="5dp"
        android:layout_below="@id/textFishName"
        android:layout_toRightOf="@id/ivFish"
        android:layout_toEndOf="@id/ivFish"
        android:textColor="#666"/>

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textAppearance="?android:attr/textAppearanceSmall"
        android:text="sd"
        android:id="@+id/textType"
        android:layout_marginLeft="5dp"
        android:layout_below="@id/textSize"
        android:layout_toRightOf="@id/ivFish"
        android:textColor="#666"/>

</RelativeLayout>

请快点帮帮我。我会非常感谢你。提前致谢。

【问题讨论】:

  • 您可以发布您的应用级 gradle 文件吗?
  • 先生,请缩短您的项目目录名称... "C:\Users\fcnak\Desktop\fetch-json-data-in-android-and-display-with-recyclerview-master\fetch -json-data-in-android-and-display-with-recyclerview-master\Android\JsonExample\app\build\intermediates\res\merged\debug\drawable\abc_ratingbar_indicator_material.xml" 你自己可以看到它太长了处理。 stackoverflow.com/a/41695230/5672138

标签: java android android-layout android-studio


【解决方案1】:
  1. 检查drawable文件夹中是否有所有相应的文件
  2. 如果drawable 文件夹中有所有文件,请从项目父目录中删除.gradle 文件夹,然后使用“文件”菜单中的Invalidate caches/restart 选项重新启动Android Studio

【讨论】:

  • 这个方法对我不起作用,请快速帮助我,谢谢。
  • “或”之后的添加可能帮助他解决了他的错误。
  • 问题中提到的drawables是在appcompat-v7支持库中定义的。为什么它们需要在 drawable 文件夹中?
猜你喜欢
  • 2018-01-02
  • 1970-01-01
  • 1970-01-01
  • 2017-06-15
  • 1970-01-01
  • 1970-01-01
  • 2020-07-09
  • 2021-12-25
  • 1970-01-01
相关资源
最近更新 更多