简体   繁体   English

找不到属性'counterEnabled'的资源标识符

[英]No resource identifier found for attribute 'counterEnabled'

<android.support.design.widget.TextInputLayout
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/input_email"
    app:counterEnabled="true"
    app:counterMaxLength="10"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">

    <EditText
        android:id="@+id/email"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:hint="@string/email_hint"
        android:ems="10"
        android:inputType="textEmailAddress"/>

</android.support.design.widget.TextInputLayout>

<android.support.design.widget.TextInputLayout
    android:id="@+id/input_password"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">

    <EditText
        android:id="@+id/password"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:hint="@string/password_hint"
        android:inputType="textPassword"/>

</android.support.design.widget.TextInputLayout>

<Button
    android:id="@+id/button_save"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="@string/save"
    android:layout_gravity="end"/>

<TextView
    android:id="@+id/success"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:textAppearance="?android:attr/textAppearanceLarge"
    android:text="@string/success"
    android:visibility="gone"/>

Whats the problem? 有什么问题? I got compile 'com.android.support:appcompat-v7:22.2.0' in my gradle file, also compile 'com.android.support:design:22.2.0' .Why is this not working? 我在我的gradle文件中编译'com.android.support:appcompat-v7:22.2.0',也编译'com.android.support:design:22.2.0'。为什么这不起作用? and why do i get this strange error? 为什么我会得到这个奇怪的错误?

I think the problem in 'com.android.support:design:22.2.0', because when i use 'com.android.support:design:23.0.1' ,I have the same problem. 我认为'com.android.support:design:22.2.0'中的问题,因为当我使用'com.android.support:design:23.0.1'时,我遇到了同样的问题。 No resource identifier found for attribute 'counterEnabled' , than change 'com.android.support:design:23.0.1' to 'com.android.support:design:23.1.1' ,this problem has been solved. 找不到属性'counterEnabled'的资源标识符 ,而不是将'com.android.support:design:23.0.1'更改为'com.android.support:design:23.1.1',此问题已得到解决。

the location of attribute '23.1.1' 属性'23 .1.1'的位置

the location of attribute '23.0.1' 属性'23 .0.1'的位置

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

相关问题 找不到属性“ entryImages”的资源标识符 - No resource identifier found for attribute 'entryImages' 找不到属性“ facebook”的资源标识符 - No resource identifier found for attribute “facebook” TabLayout - 找不到属性的资源标识符 - TabLayout - No resource identifier found for attribute 找不到属性“菜单”的资源标识符 - No Resource Identifier found for attribute 'menu' 错误:找不到属性“ showAsAction”的资源标识符 - error: No resource identifier found for attribute 'showAsAction' 在包“ android”中找不到属性“ linearLayoutOrientation”的资源标识符 - No resource identifier found for attribute 'linearLayoutOrientation' in package 'android' 在'android'包中找不到属性'paddingEnd'的资源标识符 - No resource identifier found for attribute 'paddingEnd' in Package 'android' 在&#39;android&#39;包中找不到属性&#39;accessibilityEventTypes&#39;的资源标识符 - No resource identifier found for attribute 'accessibilityEventTypes' in package 'android' 在包“ android”中找不到属性“ depurables”的资源标识符 - No resource identifier found for attribute 'depurables' in package 'android' 在包“ android”中找不到属性“ domain”的资源标识符 - No resource identifier found for attribute 'domain' in package 'android'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM