2015-09-09 2 views
0

Мой файл build.gradle выглядит следующим образомОшибка: (25) Нет идентификатора ресурса найдено для атрибута «el_header_text» в пакете «com.myapp.test»

apply plugin: 'com.android.application' 

android { 
    compileSdkVersion 23 
    buildToolsVersion "23.0.1" 
    defaultConfig { 
     applicationId "com.myapp.test" 
     minSdkVersion 23 
     targetSdkVersion 23 
     compileOptions { 
      sourceCompatibility JavaVersion.VERSION_1_7 
      targetCompatibility JavaVersion.VERSION_1_7 
     } 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' 
     } 
    } 
    compileOptions { 
     sourceCompatibility JavaVersion.VERSION_1_6 
     targetCompatibility JavaVersion.VERSION_1_6 
    } 
    productFlavors { 
    } 
} 

dependencies { 
    compile 'com.android.support:support-v4:23.0.1' 
    compile 'com.google.code.gson:gson:2.3.1' 
    compile files('libs/androidasync-2.1.6.jar') 
    compile files('libs/androidsvg-1.2.0.jar') 
    compile files('libs/ion-2.1.6.jar') 
    compile files('libs/itextpdf-5.4.5.jar') 
    compile files('libs/picasso-2.5.2.jar') 
    // Google Play Services 
    compile 'com.google.android.gms:play-services:7.8.0' 
    // Support Libraries 
    compile 'com.android.support:appcompat-v7:23.0.1' 
    compile 'com.android.support:cardview-v7:23.0.1' 
    compile 'com.android.support:design:23.0.1' 
    compile 'com.android.support:gridlayout-v7:23.0.1' 
    // compile 'com.android.support:leanback-v17:23.0.0' 
    compile 'com.android.support:mediarouter-v7:23.0.1' 
    compile 'com.android.support:palette-v7:23.0.1' 
    compile 'com.android.support:recyclerview-v7:23.0.1' 
    //compile 'com.android.support:support-annotations:23.0.0' 
    //compile 'com.android.support:support-v13:23.0.0' 
    compile 'com.github.traex.expandablelayout:library:1.3' 
} 

Когда я пытаюсь сделать сборки, ошибка, что я серия «Нет идентификатора ресурса и„Нет матч ресурсов“. Я пробовал все комбинации от изменения SDk версии, целевая SDk версии и до сих пор в конечном итоге получить эту ошибку показано ниже.

/Users/demo/Documents/Work/test/android/playwith/app/src/main/res/layout/original_settings.xml 
Error:(25) No resource identifier found for attribute 'el_header_text' in package 'com.myapp.test' 
Error:(37) No resource identifier found for attribute 'el_header_text' in package 'com.myapp.test' 

Error:(6, 29) No resource found that matches the given name (at 'drawable' with value '@drawable/down'). 

у меня есть пытался исправить это, но без каких-либо успехов в течение последних 24 часов. Пожалуйста, помогите

Моего файл original_settings.xml выглядит следующим образом

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

 
    <com.ids.compliance.views.HeaderView 
 
     android:id="@+id/header_view" 
 
     android:layout_width="match_parent" 
 
     android:layout_height="wrap_content" /> 
 

 
    <ScrollView 
 
     android:layout_width="match_parent" 
 
     android:layout_height="wrap_content" 
 
     android:paddingBottom="@dimen/space_ten" > 
 

 
     <LinearLayout 
 
      android:id="@+id/ll_expandbl_container" 
 
      android:layout_width="match_parent" 
 
      android:layout_height="wrap_content" 
 
      android:orientation="vertical" > 
 

 
      <com.andexert.expandablelayout.library.ExpandableLayout 
 
       android:id="@+id/expndbl_inline" 
 
       android:layout_width="match_parent" 
 
       android:layout_height="wrap_content" 
 
       expandable:el_contentLayout="@layout/frag_inline_process" 
 
       expandable:el_header_text="@string/inline_process" /> 
 

 
      <View 
 
       android:layout_width="match_parent" 
 
       android:layout_height="2dp" 
 
       android:background="@color/black" /> 
 

 
      <com.andexert.expandablelayout.library.ExpandableLayout 
 
       android:id="@+id/expndbl_inspection" 
 
       android:layout_width="match_parent" 
 
       android:layout_height="wrap_content" 
 
       expandable:el_contentLayout="@layout/frag_inspec_mode" 
 
       expandable:el_header_text="@string/inspection_mode" /> 
 

 
      <View 
 
       android:layout_width="match_parent" 
 
       android:layout_height="2dp" 
 
       android:background="@color/black" /> 
 

 
      <com.andexert.expandablelayout.library.ExpandableLayout 
 
       android:id="@+id/expndbl_view_mode" 
 
       android:layout_width="match_parent" 
 
       android:layout_height="wrap_content" 
 
       expandable:el_contentLayout="@layout/frag_view_options" 
 
       expandable:el_header_text="@string/view_options" /> 
 

 
      <View 
 
       android:layout_width="match_parent" 
 
       android:layout_height="2dp" 
 
       android:background="@color/black" /> 
 

 
      <com.andexert.expandablelayout.library.ExpandableLayout 
 
       android:id="@+id/expndbl_build" 
 
       android:layout_width="match_parent" 
 
       android:layout_height="wrap_content" 
 
       expandable:el_contentLayout="@layout/frag_build_selection" 
 
       expandable:el_header_text="@string/build_sel_mode" /> 
 

 
      <View 
 
       android:layout_width="match_parent" 
 
       android:layout_height="2dp" 
 
       android:background="@color/black" /> 
 

 
      <com.andexert.expandablelayout.library.ExpandableLayout 
 
       android:id="@+id/expndbl_status" 
 
       android:layout_width="match_parent" 
 
       android:layout_height="wrap_content" 
 
       expandable:el_contentLayout="@layout/fragment_status_bar" 
 
       expandable:el_header_text="@string/device_status_bar" /> 
 

 
      <View 
 
       android:layout_width="match_parent" 
 
       android:layout_height="2dp" 
 
       android:background="@color/black" /> 
 

 
      <com.andexert.expandablelayout.library.ExpandableLayout 
 
       android:id="@+id/expndbl_work_order" 
 
       android:layout_width="match_parent" 
 
       android:layout_height="wrap_content" 
 
       expandable:el_contentLayout="@layout/fragment_workorder" 
 
       expandable:el_header_text="@string/auto_create" /> 
 

 
      <View 
 
       android:layout_width="match_parent" 
 
       android:layout_height="2dp" 
 
       android:background="@color/black" /> 
 

 
      <!-- TextView Setting --> 
 

 
      <LinearLayout 
 
       android:id="@+id/ll_text_setting" 
 
       android:layout_width="match_parent" 
 
       android:layout_height="wrap_content" 
 
       android:background="@color/expand_view_color" 
 
       android:gravity="center_vertical" 
 
       android:padding="10dp" > 
 

 
       <TextView 
 
        android:layout_width="wrap_content" 
 
        android:layout_height="wrap_content" 
 
        android:text="@string/text_setting" 
 
        android:textColor="@color/black" 
 
        android:textSize="18sp" /> 
 

 
       <RelativeLayout 
 
        android:layout_width="0dp" 
 
        android:layout_height="wrap_content" 
 
        android:layout_weight="1" > 
 

 
        <ImageView 
 
         android:layout_width="20dp" 
 
         android:layout_height="20dp" 
 
         android:layout_alignParentRight="true" 
 
         android:scaleType="fitXY" 
 
         android:src="@drawable/down" /> 
 
       </RelativeLayout> 
 
      </LinearLayout> 
 

 
      <View 
 
       android:layout_width="match_parent" 
 
       android:layout_height="2dp" 
 
       android:background="@color/black" /> 
 

 
      <!-- Polygon Setting --> 
 

 
      <LinearLayout 
 
       android:id="@+id/ll_polygon_setting" 
 
       android:layout_width="match_parent" 
 
       android:layout_height="wrap_content" 
 
       android:background="@color/expand_view_color" 
 
       android:gravity="center_vertical" 
 
       android:padding="10dp" > 
 

 
       <TextView 
 
        android:layout_width="wrap_content" 
 
        android:layout_height="wrap_content" 
 
        android:text="@string/poly_setting" 
 
        android:textColor="@color/black" 
 
        android:textSize="18sp" /> 
 

 
       <RelativeLayout 
 
        android:layout_width="0dp" 
 
        android:layout_height="wrap_content" 
 
        android:layout_weight="1" > 
 

 
        <ImageView 
 
         android:layout_width="20dp" 
 
         android:layout_height="20dp" 
 
         android:layout_alignParentRight="true" 
 
         android:scaleType="fitXY" 
 
         android:src="@drawable/down" /> 
 
       </RelativeLayout> 
 
      </LinearLayout> 
 

 
      <View 
 
       android:layout_width="match_parent" 
 
       android:layout_height="2dp" 
 
       android:background="@color/black" /> 
 

 
      <LinearLayout 
 
       android:id="@+id/ll_admin" 
 
       android:layout_width="match_parent" 
 
       android:layout_height="wrap_content" 
 
       android:background="@color/expand_view_color" 
 
       android:gravity="center_vertical" 
 
       android:padding="10dp" > 
 

 
       <TextView 
 
        android:layout_width="wrap_content" 
 
        android:layout_height="wrap_content" 
 
        android:text="@string/admin_panel" 
 
        android:textColor="@color/black" 
 
        android:textSize="18sp" /> 
 
      </LinearLayout> 
 

 
      <View 
 
       android:layout_width="match_parent" 
 
       android:layout_height="2dp" 
 
       android:background="@color/black" /> 
 
     </LinearLayout> 
 
    </ScrollView> 
 

 
</LinearLayout>

ответ

0

Там нет el_header_text атрибута в библиотеке расширяемого Layout. Вы можете увидеть все доступные атрибуты в the source code.

И у вас нет down возможно.

Смежные вопросы