Android的Studio错误:无法找到符号类AdapterViewCompat与compileSdkVersion 23 buildToolsVersion '23 .0.1“ [英] Android Studio error: cannot find symbol class AdapterViewCompat with compileSdkVersion 23 and buildToolsVersion '23.0.1'
本文介绍了Android的Studio错误:无法找到符号类AdapterViewCompat与compileSdkVersion 23 buildToolsVersion '23 .0.1“的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是我的文件的gradle和我得到
错误:
找不到符号
进口android.support.v7.internal.widget.AdapterViewCompat;
错误:包AdapterViewCompat不存在。
等级是如下:
应用插件:'com.android.application
应用插件:'com.google.gms.google的服务。
安卓{
compileSdkVersion 23
buildToolsVersion '23 .0.1 ... 依赖
{
编译com.android.support:cardview-v7:23.0.0
编译com.android.support:recyclerview-v7:23.0.0
编译com.android.support:design:23.0.0
编译com.android.support:appcompat-v7:23.1.0
编译com.android.support:gridlayout-v7:+
...
}
解决方案
这是因为在
android.support.v7.internal.widget.AdapterViewCompat;
不存在在应用程序兼容性V23(虽然它在V22存在)。结果
你可以检查
在一般不使用内部包内的类
This is my gradle file and I am getting error:
cannot find symbol
import android.support.v7.internal.widget.AdapterViewCompat;
error:package AdapterViewCompat does not exist.
Grade is as below:
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
android {
compileSdkVersion 23
buildToolsVersion '23.0.1'
...
dependencies
{
compile 'com.android.support:cardview-v7:23.0.0'
compile 'com.android.support:recyclerview-v7:23.0.0'
compile 'com.android.support:design:23.0.0'
compile 'com.android.support:appcompat-v7:23.1.0'
compile 'com.android.support:gridlayout-v7:+'
...
}
解决方案
It happens because the
android.support.v7.internal.widget.AdapterViewCompat;
doesn't exist in appcompat v23 (while it existed in v22).
You can check it in
androidsdk\extras\android\m2repository\com\android\support\appcompat-v7\23.1.0\appcompat-v7-23.1.0-sources.jar
In general don't use the class inside the internal package.
这篇关于Android的Studio错误:无法找到符号类AdapterViewCompat与compileSdkVersion 23 buildToolsVersion '23 .0.1“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文