找不到android支持库 [英] cannot find android support library

查看:71
本文介绍了找不到android支持库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通知,我已经搜索了很多东西,所以这不是重复的问题

please notice that i searched a lot so this is not a duplicated question

没有答案地搜索了

找不到Android支持包

无法找到Android支持包

如何添加"Android设计支持库" ADT插件将Eclipse移植到Eclipse?

https://developer.android.com/topic/libraries/support-library/setup.html#using-apis

我只想能够使用 TabLayout ,当我使用它时说 无法解析"TabLayout"符号.

i just want to be able to use TabLayout as when i use it it says cannot resolve 'TabLayout' symbol.

当我尝试导入它时

导入android.support.design.widget.TabLayout; 说也无法解析"TabLayout"

import android.support.design.widget.TabLayout; says also cannot resolve 'TabLayout'

我也搜索了该错误,结果导致安装了我找不到的android支持库

also i searched for that error and it results to install the android support library which i cannot find

这里是搜索 Android Studio无法解析符号"TabLayout"

那么如何安装该库呢?!

so how to install that library ?!!

SDK图片

这是gradle.build

here is the gradle.build

apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "24.0.0"

defaultConfig {
    applicationId "com.example.android.engtomiwak"
    minSdkVersion 15
    targetSdkVersion 23
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
}

预先感谢....

推荐答案

确保已添加依赖项:

compile 'com.android.support:design:23.1.1'

然后导入:

import android.support.design.widget.TabLayout;

这篇关于找不到android支持库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆