android – Gradle kotlin不支持的方法Dependencies.getAtoms()

android – Gradle kotlin不支持的方法Dependencies.getAtoms(),第1张

概述刚刚使用kotlin开始使用Studio 3.0 Canary 3的新 Android项目,并试图让它进行gradle项目同步.目前失败了 Error:Unsupported method: Dependencies.getAtoms().The version of Gradle you connect to does not support that method.To resolve t 刚刚使用kotlin开始使用Studio 3.0 Canary 3的新 Android项目,并试图让它进行gradle项目同步.目前失败了
Error:Unsupported method: DependencIEs.getAtoms().The version of Gradle you connect to does not support that method.To resolve the problem you can change/upgrade the target version of Gradle you connect to.Alternatively,you can ignore this exception and read other information from the model.

任何人都知道这意味着什么以及如何解决它?

可能只需要改变某些东西的版本.

gradle包装:

#Mon Jun 19 08:02:32 BST 2017distributionBase=GRADLE_USER_HOMEdistributionPath=wrapper/distszipStoreBase=GRADLE_USER_HOMEzipStorePath=wrapper/distsdistributionUrl=https\://services.gradle.org/distributions/gradle-4.0-all.zip

项目gradle

buildscript {    ext.kotlin_version = '1.1.2-5'    repositorIEs {        maven { url 'https://maven.Google.com' }        jcenter()    }    dependencIEs {        classpath 'com.androID.tools.build:gradle:3.0.0-Alpha4'        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"        // NOTE: Do not place your application dependencIEs here; they belong        // in the indivIDual module build.gradle files    }}allprojects {    repositorIEs {        maven { url 'https://maven.Google.com' }        jcenter()        mavenCentral()    }}task clean(type: Delete) {    delete rootProject.buildDir}

app gradle

apply plugin: 'com.androID.application'apply plugin: 'kotlin-androID'androID {    compileSdkVersion 25    buildToolsversion "25.0.3"    defaultConfig {        applicationID "uk.me.mungorae.aircraft.aircraft"        minSdkVersion 21        targetSdkVersion 25        versionCode 1        versionname "1.0"        testInstrumentationRunner "androID.support.test.runner.AndroIDJUnitRunner"    }    buildTypes {        release {            MinifyEnabled false            proguardfiles getDefaultProguardfile('proguard-androID.txt'),'proguard-rules.pro'        }    }}dependencIEs {    implementation filetree(dir: 'libs',include: ['*.jar'])    androIDTestImplementation('com.androID.support.test.espresso:espresso-core:2.2.2',{        exclude group: 'com.androID.support',module: 'support-annotations'    })    implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"    implementation 'com.androID.support:appcompat-v7:25.4.0'    testImplementation 'junit:junit:4.12'    implementation 'com.androID.support.constraint:constraint-layout:1.0.2'}
解决方法 我刚刚通过更新到AndroID Studio 3.0 Canary 4来解决这个问题.

您可以在以下位置下载:
https://developer.android.com/studio/preview/index.html

总结

以上是内存溢出为你收集整理的android – Gradle kotlin不支持的方法Dependencies.getAtoms()全部内容,希望文章能够帮你解决android – Gradle kotlin不支持的方法Dependencies.getAtoms()所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1149397.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-31
下一篇 2022-05-31

发表评论

登录后才能评论

评论列表(0条)

保存