无法解决:com.android.support:support-v7:27.1.1 [英] Failed to resolve: com.android.support:support-v7:27.1.1

查看:88
本文介绍了无法解决:com.android.support:support-v7:27.1.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的成绩:我不知道应该更改什么,此外还会生成这些错误,并且我已经将文件从编译更新为实现.

my grade: I do not know what should change, in addition these errors are generated and I have already updated the files from compile to implementation.

配置'compile'已过时,并已由'implementation'和'api'代替.它将在2018年底删除.有关更多信息,请参见: http://d.android.com/r/tools/update-dependency-configurations.html

Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html

配置'debugCompile'已过时,并已由'debugImplementation'和'debugApi'取代.它将在2018年底删除.有关更多信息,请参见: http://d.android.com/r/tools/update-dependency-configurations.html

Configuration 'debugCompile' is obsolete and has been replaced with 'debugImplementation' and 'debugApi'. It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html

 buildscript {
 repositories {
    maven { url 'http://download.crashlytics.com/maven' }
  }

 dependencies {
    //noinspection GradleDynamicVersion
    classpath 'com.crashlytics.tools.gradle:crashlytics-gradle:1.+'
  }
}
apply plugin: 'com.android.application'
apply plugin: 'crashlytics'

repositories {
maven { url 'http://download.crashlytics.com/maven' }
}

apply plugin: 'hugo'

android {
compileSdkVersion 27
buildToolsVersion "27.0.3"
defaultConfig {
    applicationId 'com.code44.finance'
    targetSdkVersion 27
    minSdkVersion 23
    versionCode 81
    versionName '0.18.3'
    buildConfigField "boolean", "USE_LOCAL_SERVER", "true"
    buildConfigField "String", "LOCAL_SERVER_IP", "\"192.168.0.7\""
    buildConfigField "long", "BUILD_TIME", "" + buildTime() + "L"
  }
   lintOptions {
    abortOnError false
  }
   compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_7
    targetCompatibility JavaVersion.VERSION_1_7
  }
   buildTypes {
    debug {
        applicationIdSuffix '.debug'
        versionNameSuffix '-debug'
    }
    release {
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 
       'proguard-rules.pro'
        minifyEnabled true
        shrinkResources true
    }
   }
   sourceSets {
    androidTest.setRoot('src/test')
  }
  signingConfigs {
    debug {
        storeFile file('debug.keystore')
     }
   }
 }

 dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation project(path: ':backend', configuration: 'android-endpoints')
implementation project(path: ':common')
implementation 'com.google.api-client:google-api-client-android:1.23.0'
implementation 'com.android.support:support-v7:27.1.1'
implementation 'com.android.support:recyclerview-v7:27.1.1'
implementation 'com.android.support:cardview-v7:27.1.1'
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.google.android.gms:play-services-base:15.0.0'
implementation 'com.google.android.gms:play-services-drive:15.0.0'
implementation 'com.google.android.gms:play-services-plus:15.0.0'
implementation 'com.github.castorflex.smoothprogressbar:library:1.0.0'
implementation 'com.github.castorflex.smoothprogressbar:library- 
 circular:1.0.0'
implementation 'com.squareup.okhttp:okhttp-urlconnection:2.0.0'
implementation 'com.squareup.okhttp:okhttp:2.4.0'
implementation 'com.squareup.retrofit:retrofit:1.7.1'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.squareup.dagger:dagger:1.2.2'
compileOnly 'com.squareup.dagger:dagger-compiler:1.2.2'
implementation 'org.beanshell:bsh-core:2.0b4'
implementation 'com.astuetz:pagerslidingtabstrip:1.0.1'
implementation 'com.larswerkman:HoloColorPicker:1.4'
implementation 'com.readystatesoftware.systembartint:systembartint:1.0.3'
implementation 'net.danlew:android.joda:2.4.0'
implementation 'me.grantland:autofittextview:0.2.1'
implementation 'com.squareup:otto:1.3.5'
implementation 'se.emilsjolander:stickylistheaders:2.5.0'
implementation 'com.nononsenseapps:filepicker:3.1.0'
implementation project(':common')
implementation 'com.crashlytics.android:crashlytics:1.1.13'
implementation(name: 'hellocharts-library-1.3', ext: 'aar')
implementation 'uk.co.chrisjenx:calligraphy:2.0.1'
annotationProcessor 'com.google.auto.value:auto-value:1.5.2'
}

def buildTime() {
return System.currentTimeMillis();
}

存储库

buildscript {
repositories {
    mavenCentral()
    maven {
        url 'https://maven.google.com/'
        name 'Google'
    }
    google()
}
dependencies {
    classpath 'com.android.tools.build:gradle:3.1.2'
    classpath 'com.google.gms:google-services:3.2.1'
    classpath 'com.jakewharton.hugo:hugo-plugin:1.2.1'
   }
  }

   allprojects {
  repositories {
    jcenter()
    mavenCentral()
    maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
    flatDir {
        dirs 'libs'
    }
    maven {
        url 'https://maven.google.com/'
        name 'Google'
     }
   }
}

如果您想帮助我进行编译,请发送完整的项目链接,我们将不胜感激项目链接

if you want to help me compile I would appreciate sending the full project link project link

推荐答案

我希望这对您有用

将此添加到项目gradle文件中

Add this in project gradle file

allprojects {
repositories {
    jcenter()
    maven { url "https://jitpack.io" }
    google()
   }
}

这篇关于无法解决:com.android.support:support-v7:27.1.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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