android studio使用记录(一)
1.导入项目遇到Error:(9, 1) A problem occurred evaluating project ':*'.> Cannot get property 'compileSdkVersion' on extra properties extension as it does not exist2.查看报错的配置文件android {compileSd
1.导入项目遇到
Error:(9, 1) A problem occurred evaluating project ':*'.
> Cannot get property 'compileSdkVersion' on extra properties extension as it does not exist
2.查看报错的配置文件
android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
3.很明显在根项目的build.gradle中添加配置。
ext{
compileSdkVersion 25
buildToolsVersion "25.0.2"
} 4.这回又报错了
Error:(24, 1) A problem occurred evaluating root project '*'.
> Could not find method compileSdkVersion() for arguments [25] on root project '*' of type org.gradle.api.Project.
5.网上说要写成这样
ext{
compileSdkVersion=25
buildToolsVersion="25.0.2"
} 6.Rebuild下可以了
Information:BUILD SUCCESSFUL
Information:Total time: 7.747 secs
Information:0 errors
Information:0 warnings
Information:See complete output in console
7.完了之后,发现在工程列表中没看到导入的项目,点击下同步就可以看到了。
昇腾计算产业是基于昇腾系列(HUAWEI Ascend)处理器和基础软件构建的全栈 AI计算基础设施、行业应用及服务,https://devpress.csdn.net/organization/setting/general/146749包括昇腾系列处理器、系列硬件、CANN、AI计算框架、应用使能、开发工具链、管理运维工具、行业应用及服务等全产业链
更多推荐

所有评论(0)