Canot解析android.support.v7.internal.widget.TintImageView

Canot解析android.support.v7.internal.widget.TintImageView,android,material-design,android-appcompat,Android,Material Design,Android Appcompat,我尝试将项目中的CompileSDK版本设置为23,并更新了以下库: com.android.support:appcompat-v7:23.1.1 com.android.support:recyclerview-v7:23.1.1 com.android.support:cardview-v7:23.1.1 从那时起,我在导入android.support.v7.internal.widget.TintImageView时出错 谁能告诉我为什么会这样?TintImageView的软件包有

我尝试将项目中的CompileSDK版本设置为23,并更新了以下库:

  • com.android.support:appcompat-v7:23.1.1
  • com.android.support:recyclerview-v7:23.1.1
  • com.android.support:cardview-v7:23.1.1
从那时起,我在导入
android.support.v7.internal.widget.TintImageView时出错

谁能告诉我为什么会这样?TintImageView的软件包有任何更改吗?请帮忙


我正在使用Studio Preview 2.0

它之所以发生,是因为课程

android.support.v7.internal.widget.TintImageView
appcompat v 23.x.x中不存在

一般来说,不要使用
内部
包中的类

您可以在文件夹
androidsdk\extras\android\m2repository\com\android\support\appcompat-v7\
中检查源代码

你应该换成电视

ImageView支持旧版本平台上的兼容功能,包括:

  • 允许通过ViewCompat中的背景着色方法对it背景进行动态着色
  • 允许使用backgroundTint和backgroundTint模式设置背景色调
在布局中使用ImageView时,将自动使用此选项。编写自定义视图时,应该只需要手动使用此类


使用此选项着色
图像视图

<android.support.v7.widget.AppCompatImageView
        android:id="@id/imageview"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:src="@drawable/my_image"
        android:tint="#636363"
    />


为什么?你有没有在包裹名称中看到
internal
?我不明白。“internal”是什么意思?当compile SDK版本为22时,它工作正常。您在layout editor中是否遇到此错误?否。在Java文件中。