Ensure that you have installed a JDK (not just a JRE) and configured your JAVA_HOME system variable
来源:互联网 发布:淘宝商城亚维尔娜 编辑:程序博客网 时间:2024/06/09 22:20
出现错误的原因是:
gradle的版本过低导致的
解决办法:
将build.gradle文件里的
classpath 'com.android.tools.build:gradle:1.3.0' 修改为classpath 'com.android.tools.build:gradle:2.2.3'
如果再次编译时遇到:
Error:No service of type Factory<LoggingManagerInternal> available in Project
即是因为maven的版本过低导致。将build.gradle修改如下:
dependencies { classpath 'com.android.tools.build:gradle:2.2.3' classpath'com.github.dcendents:android-maven-gradle-plugin:1.4.1' classpath'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.3.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files }接下来编译通过。
阅读全文
0 0
- Ensure that you have installed a JDK (not just a JRE) and configured your JAVA_HOME system variable
- Ensure that you have installed a JDK (not just a JRE) and configured your JAVA_HOME system variable
- Ensure that you have installed a JDK (not just a JRE) and configured your JAVA_HOME system variable
- Ensure that you have installed a JDK (not just a JRE) and configured your JAVA_HOME system variable
- Ensure that you have installed a JDK (not just a JRE) and configured your JAVA_HOME system variable
- Ensure that you have installed a JDK (not just a JRE) and configured your JAVA_HOME
- Android编译时报错:Ensure that you have installed a JDK(not just a JRE)and configured your JAVA_HOME......
- Android Gradle偶遇 Ensure that you have installed a JDK (not just a JRE) and configured your JAVA_HOM
- Cannot find System Java Compiler. Ensure that you have installed a JDK (not just a JRE)
- Cannot find System Java Compiler. Ensure that you have installed a JDK (not just a JRE)
- Cannot find System Java Compiler. Ensure that you have installed a JDK (not just a JRE) and configur
- 解决:Cannot find System Java Compiler. Ensure that you have installed a JDK (not just a JRE)
- AndroidStudio编译报错:Cannot find System Java Compiler. Ensure that you have installed a JDK (not just a
- AndoridStudio运行报错,Cannot find System Java Compiler. Ensure that you have installed a JDK......
- AndoridStudio运行报错,Cannot find System Java Compiler. Ensure that you have installed a JDK......
- cannot find system java compiler.Ensure that you have installed a jDK
- Maven经典错误之一:Please ensure you are using JDK 1.4 or above and not a JRE
- Maven经典错误之一:Please ensure you are using JDK 1.4 or above and not a JRE
- Android进程整理
- PDO中处理预查询语句的方法
- java实现json格式的状态码数据
- 2.Java虚拟机内存模型及分区
- HashSet和CopyOnWriteArraySe
- Ensure that you have installed a JDK (not just a JRE) and configured your JAVA_HOME system variable
- Angular2 响应式表单验证
- initializer element is not constant
- linux 如何在文本文件中用Terminal的grep命令查找一个词
- Node.js实现GitHub第三方登录
- WebLogic安装
- c++中“箭头”和“点号”操作符的区别
- Sql Server 2005 32位+64位、企业版+标准版、CD+DVD 下载地址大全
- 剑指Offer—45—扑克牌顺子