Android   发布时间:2022-04-28  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了android – 无法在额外的属性扩展上获取属性’compileSdkVersion’,因为它不存在大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
有人请帮帮我….
无法在额外的属性扩展上获取属性’compileSdkVersion’,因为它在 android studio中不存在.

解决方法

转到“项目文件”视图,然后打开构建gradle.

你会发现这样的东西

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.3.1'


        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

你必须添加这个定义:

ext {
    compileSdkVersion = 23
    buildToolsVersion = "23.0.1"
    targetSdkVersion = 21
}

大佬总结

以上是大佬教程为你收集整理的android – 无法在额外的属性扩展上获取属性’compileSdkVersion’,因为它不存在全部内容,希望文章能够帮你解决android – 无法在额外的属性扩展上获取属性’compileSdkVersion’,因为它不存在所遇到的程序开发问题。

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

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。