java如何通过添加支持来解决问题:设计?
我需要实现TextInputLayout
为此,我需要在代码中添加这一行
compile 'com.安卓.support:design:23.3.0'
在那之后,我尝试做了很多不同的事情来解决它,但没有成功(
这是我的身材
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.安卓.tools.build:gradle:2.1.0'
}
}
apply plugin: 'com.安卓.application'
repositories {
jcenter()
}
dependencies {
---> compile 'com.安卓.support:design:23.3.0'
compile 'com.安卓.support:appcompat-v7:24.0.0-alpha2'
compile 'com.facebook.安卓:facebook-安卓-sdk:4.0.0'
compile 'com.google.安卓.gms:play-services:6.5.87'
compile 'com.安卓.support:cardview-v7:23.3.0'
compile files('libs/svg安卓.jar')
compile 'com.github.bumptech.glide:glide:3.5.2'
compile files('libs/guava-16.0.1.jar')
compile 'com.google.code.gson:gson:2.6.1'
}
// The sample build uses multiple directories to
// keep boilerplate and common code separate from
// the main sample code.
List<String> dirs = [
'main', // main sample code; look here for the interesting stuff.
'common', // components that are reused by multiple samples
'template'] // boilerplate code that is generated by the sample template process
安卓 {
compileSdkVersion 23
buildToolsVersion "23.0.2"
repositories {
mavenCentral()
}
defaultConfig {
minSdkVersion 21
targetSdkVersion 21
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
sourceSets {
main {
dirs.each { dir ->
java.srcDirs "src/${dir}/java"
res.srcDirs "src/${dir}/res"
}
}
安卓Test.setRoot('tests')
安卓Test.java.srcDirs = ['tests/src']
}
}
已经定义了一些资源,并显示了错误。。这是什么意思
我做错了什么
现在,根据@Pravin answers,我解决了一个问题,它正在毫无错误地进行升级!但现在当我尝试启动项目时,我有另一个错误
共 (0) 个答案