1234567891011121314151617181920212223242526272829303132333435363738394041 |
- apply from: "config.gradle"
- buildscript {
- repositories {
- jcenter()
- google()
- mavenCentral()
- }
- dependencies {
- classpath 'com.android.tools.build:gradle:3.0.1'
- classpath 'com.jakewharton:butterknife-gradle-plugin:8.4.0'
- classpath "io.realm:realm-gradle-plugin:5.1.0"
- // classpath 'com.jakewharton:butterknife-gradle-plugin:8.5.1'
- // NOTE: Do not place your application dependencies here; they belong
- // in the individual module build.gradle files
- }
- }
- allprojects {
- repositories {
- jcenter()
- google()
- mavenCentral()
- //maven {url 'https://dl.bintray.com/jetbrains/anko'} //这是你需要加入的,这个是解决这个问题的关键地方,我就是添加这个maven后不再报上面的错误了
- maven { url "https://jitpack.io" }
- //maven { url "https://maven.google.com" }
- maven { url "https://maven.aliyun.com/repository/google" }
- }
- //打印出详细错误
- // gradle.projectsEvaluated {
- // tasks.withType(JavaCompile) {
- // options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
- // }
- // }
- }
- task clean(type: Delete) {
- delete rootProject.buildDir
- }
|