android – 无法在额外的属性扩展上获取属性’compileSdkVersion’,因为它不存在

android – 无法在额外的属性扩展上获取属性’compileSdkVersion’,因为它不存在,第1张

概述有人请帮帮我…. 无法在额外的属性扩展获取属性’compileSdkVersion’,因为它在 android studio中不存在. 转到“项目文件”视图,然后打开构建gradle. 你会发现这样的东西 // Top-level build file where you can add configuration options common to all sub-projects/modul 有人请帮帮我….
无法在额外的属性扩展上获取属性’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’,因为它不存在所遇到的程序开发问题。

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

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

原文地址:https://54852.com/web/1125778.html

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

发表评论

登录后才能评论

评论列表(0条)

    保存