SourceProvider.getJniDirectories
生活随笔
收集整理的這篇文章主要介紹了
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的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 逻辑左移
- 下一篇: Axure RP 8.0激活码 Mac