Android gradle - 更新后出现多个错误

时间:2017-12-14 19:54:30

标签: android cordova gradle android-gradle

我已经花了几天时间来解决这个问题,每当我修复Android的错误时,都会出现两个新错误。

我在Cordova项目中工作,在我更新我的andrid SDK到API 26停止工作后,gradle总是失败。

enter image description here

SDK Manager enter image description here

我的build.gradle:

apply plugin: 'com.android.application'

buildscript {
    repositories {
        mavenCentral()
        jcenter()
    }

    // Switch the Android Gradle plugin version requirement depending on the
    // installed version of Gradle. This dependency is documented at
    // http://tools.android.com/tech-docs/new-build-system/version-compatibility
    // and https://issues.apache.org/jira/browse/CB-8143
    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.1'
    }
}

// Allow plugins to declare Maven dependencies via build-extras.gradle.
allprojects {
    repositories {
        mavenCentral();
        jcenter()
    }
}

task wrapper(type: Wrapper) {
    gradleVersion = '2.14.1'
}

非常感谢任何帮助

1 个答案:

答案 0 :(得分:0)

与Android 8.0兼容的最新支持库需要Google的新Maven repo

将此添加到您的代码中:

<div class="k-table-cell k-button k-fullscreen-toggle-button k-89lf02g">
<div class="k-icon k-icon-fullscreen">::after</div> </div>