SourceProvider.getJniDirectories
2019独角兽企业重金招聘Python工程师标准>>>
今天android studio跑项目,build了一下,始终跑不起,把gradle和android studio都更新了一下,还是不行,
一直报这个错误
UnsupportedMethodExceptionFailed to set up Android modules in project 'Project': Unsupported method: SourceProvider.getJniDirectories().The version of Gradle you connect to does not support that method.To resolve the problem you can change/upgrade the target version of Gradle you connect to.Alternatively, you can ignore this exception and read other information from the model.
这时候搜了下,才知道是build.gradle里面的问题:
buildscript {repositories {jcenter()}dependencies {classpath 'com.android.tools.build:gradle:0.14.0'// NOTE: Do not place your application dependencies here; they belong// in the individual module build.gradle files}
}
其中的这句是个bug
classpath 'com.android.tools.build:gradle:0.14.0'
改成
classpath 'com.android.tools.build:gradle:0.13.+'
就OK了
参考 fly to stackoverflow
转载于:https://my.oschina.net/luozheng/blog/340249
SourceProvider.getJniDirectories相关推荐
- 一文带你了解Spring核心接口Ordered的实现及应用
前言 最近在看框架的时候,发现了这个接口,在此进行总结,希望能够给大家帮助,同时提升自己. order接口的大体介绍 Spring框架中有这个一个接口,名字叫Ordered,联想我们在数据库中应用的O ...
- Android构建流程——篇八
文章目录 Task29 checkDebugLibraries 1. inut/ouput 2. 核心类(CheckMultiApkLibrariesTask) Task30 processDebug ...
- Android构建流程——篇六
文章目录 Task17: javaPreCompileDebug 1. input/ouput 2. 验证 3. 核心类(JavaPreCompileTask) Task18:compileDebug ...
- java 处理表单_java – 处理multipart / form-data输入
我只是尝试使用FormDataMultiPart但不幸的是它似乎没有 救命. 现在我收到以下错误消息: SEVERE: A message body reader for Java class com ...
- Kubernetes监控之Heapster源码分析
源码版本 heapster version: release-1.2 简介 Heapster是Kubernetes下的一个监控项目,用于进行容器集群的监控和性能分析. 基本的功能及概念介绍可以回顾我之 ...
- Gradle 工具的源码研究
Gradle 工具源码不是gradle wrapper 源码 安装android studio之后,Gradle 工具被缓存到 user/.gradle/cache/module-2/下面,不同的AS ...
- Introducing Microsoft Sync Framework: Sync Services for File Systems
https://msdn.microsoft.com/en-us/sync/bb887623 Introduction to Microsoft Sync Framework File Synchro ...
- struts启动过滤器异常_Spring 统一异常处理的方式
最近帮公司面试的时候,问的最多的问题就是Spring统一异常处理的方式你知道哪几种?这本身并不是一个很难的问题,说实话,会一种方式在工作中完全就可以了.毕竟每种的方式其实都是八九不离十的. 1:AOP ...
- 增量Lint检测实现原理
增量Lint检测实现原理 一.基本思路 二.实现 1.自定义LintClient 2.增量检查文件 3.其他自定义类 4.自定义Gradle插件 在Lint实现原理里已经知道,Lint检测的文件,默认 ...
最新文章
- 122. Best Time to Buy and Sell Stock II
- nodejs全局安装和本地安装的区别
- boost::detail模块fwd容器的测试程序
- svn cleanup failed–previous operation has not finished; run cleanup if it was interrupted
- 基于wampserver和Eclipse for PHP Developers的PHP开发调试环境搭建
- ThinkPHP医疗门诊病人挂号管理在线付款系统源码
- 企业应该如何运用商业智能
- BZOJ2038:[2009国家集训队]小Z的袜子——题解
- python之类之多继承
- 简约大气毕业论文答辩PPT模板
- python合并多个excel工作簿_将多个excel文件合并到一个excel的多个sheet
- Linux驱动模块加载失败
- 你必须认识的五名网络女红人
- Rasa NLU 实践
- 三段论--正向演绎推理
- Android Studio+Emulator启动黑屏解决方法
- Android隐藏标题栏
- 【绘画教程】简单几步教你绘画肩膀和脖子!
- 【PC桌面自动化测试工具开发笔记】(一)基于pywinauto的元素定位工具
- 控诉理科男(蒋方舟)
热门文章
- pandas.DataFrame.iterrows
- Nike Kyrie 1 Performance Review
- [论文笔记]CVPR2017_Joint Detection and Identification Feature Learning for Person Search
- 前后端交互json字符串
- 【FBI WARNING】一些Noip的黑科技 持续整理!
- [T-ARA][그녀를 보면][看着那个女人的话]
- 当TFS/VSTS遇上Power BI
- JQuery 文本框高亮显示插件
- Ajax — cropper (图片剪裁)基本用法
- C#中的ForEach