Gradle dependencies not working (Cannot import)

依然范特西╮ 提交于 2019-12-12 01:38:42

问题


This screenshot shows my gradle build file

This one shows my main class, where im using the class

So what im trying to do is import the OKHTTP client lib into my project via gradle, i've included the dependency compile statement and the mavencentral repository but somehow its not showing up in my main file. It seems like the right gradle file too.


回答1:


According to this link sourceCompatibility is a

Java version, compatibility to use when compiling Java source.

1.5 is a old version of JAVA that is why it is giving warning, change it with 1.6 or 1.7



来源:https://stackoverflow.com/questions/39686762/gradle-dependencies-not-working-cannot-import

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!