Error:Cause: buildToolsVersion is not specified.
来源:互联网 发布:守纪律讲规矩知敬畏 编辑:程序博客网 时间:2024/06/08 14:10
同事扔给我一个项目,刚开始报错
Error:(6, 0) Gradle DSL method not found: 'google()'Possible causes:<ul><li>The project 'CarJniDemo' may be using a version of the Android Gradle plug-in that does not contain the method (e.g. 'testCompile' was added in 1.1.0).<a href="fixGradleElements">Upgrade plugin to version 2.3.3 and sync project</a></li><li>The project 'CarJniDemo' may be using a version of Gradle that does not contain the method.<a href="open.wrapper.file">Open Gradle wrapper file</a></li><li>The build file may be missing a Gradle plugin.<a href="apply.gradle.plugin">Apply Gradle plugin</a></li>
将下面代码
allprojects { repositories { google() jcenter() }}
改为
allprojects { repositories { maven { url 'https://maven.google.com' } jcenter() }}
问题接踵而来
Error:Cause: buildToolsVersion is not specified.
build.gradle中没有buildToolsVersion
buildToolsVersion "26.0.2"
问题解决
阅读全文
0 0
- Error:Cause: buildToolsVersion is not specified.
- Error:Cause: buildToolsVersion is not specified.
- Cause:compileSdkVersion is not specified
- java.lang.IllegalStateException: buildToolsVersion is not specified.解决办法
- ERROR: APK path is not specified for module
- java.lang.Error: ERROR: it turns out the root cause is not always a runtime exception!
- Error:Cause: peer not authenticated
- Error:Cause: peer not authenticated
- Error creating document instance. Cause: org.xml.sax.SAXParseException: The string "--" is not perm
- Security is enabled, but JCE policy zip is not specified error when enabling security using ambari
- Specified cast is not valid
- err:Module is not specified
- phpstorm interpreter is not specified
- Error : cause android.compileSdkVersion is missing
- Error:Cause: zip file is empty
- Error:Cause: peer not authenticated 异常
- Error:Cause: peer not authenticated修复
- AS出现Error:Cause: peer not authenticated
- 二分总结-.-
- 修改二进制程序并运行
- Hibernate 02 : Session
- Semslin 3D打印固件 项目日志节选(一)——了解ST的新工具:STM32CubeMX
- Java数组
- Error:Cause: buildToolsVersion is not specified.
- Javascript的异步编程(上)及es6的promise
- 安慰奶牛 java
- enote笔记法(2)——why的使用
- C++字符串流练习
- 牛客网刷题Day2
- 统计字符串出现的位置
- Mac OS下 Anaconda Python2 和 Python3 配置
- Java API 读取Hive Orc文件