SourceProvider.getJniDirectories
2014-11-03 17:10
1776 查看
今天android studio跑项目,build了一下,始终跑不起,把gradle和android studio都更新了一下,还是不行,
一直报这个错误
UnsupportedMethodException Failed 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了
相关文章推荐
- om.android.builder.model.SourceProvider.getShadersDirectories() not found
- java getSource()和 getActionCommand()区别
- jni调用GetByteArrayElements
- [转] --- Error: “A field or property with the name was not found on the selected data source” get only on server
- Use ContentProvider Get Contacts
- Caused by: org.apache.ibatis.ognl.OgnlException: source is null for getProperty(null, "id")
- android---JNI:GetPrimitiveArrayCritical 错误
- Caused by: org.apache.ibatis.ognl.OgnlException: source is null for getProperty(null, "list")
- JNI GetStringUTFLength
- ognl.OgnlException: source is null for getProperty(null, "0")
- There was a failure while initializing the Microsoft Visual SourceSafe source control provider. You cannot use this prov
- ANDROID_MARS学习笔记_S03_004_getAllProviders、LOCATIONLISTENER、getBestProvider
- A guide to get you building OGRE from source with the default settings in the shortest possible time
- Get the Source Code Pentaho
- Fatal error: Call to a member function getSource() on a non-object in G:\wamp\www\ChinaMagicCube\ap
- Git 命令行(cygwin) + Git Extensions + Git Source Control Provider
- ORA-30926: unable to get a stable set of rows in the source tables
- Android中JniHelper类里 getStaticMethodInfo的使用
- Advanced Pricing - How to source Pricing Attributes using QP_CUSTOM_SOURCE.Get_Custom_Attribute_Valu
- Qmake does not support build directories below the source directory