byoutline / kickmaterial

Crowdfunding app concept for Android. Created to showcase new trends in Android development with strong focus on Material Design.
Apache License 2.0
1.63k stars 300 forks source link

Gradle issue when compiling #2

Closed Isabellle closed 8 years ago

Isabellle commented 8 years ago

Gradle 'kickmaterial-master' project refresh failed Error:Ambiguous method overloading for method java.io.File#. Cannot resolve which method to invoke for [null, class java.lang.String] due to overlapping prototypes between: [class java.lang.String, class java.lang.String] [class java.io.File, class java.lang.String]

Naitbit commented 8 years ago

Hi. That is mark of AndroidStudio not seeing enviromental variables JAVA7_HOME and/or JAVA8_HOME. You also probably got warning in log about that(They are needed for Retrolambda). Please ensure that they are set before AndroidStudio is launched. Alternatively you can hardcode those paths in gradle/byoutline/retrolambdaConfig.gradle

notdrone commented 8 years ago

had the same issue. Adding JAVA7_HOME as an environment variable fixed it for me. This tutorial helped: https://confluence.atlassian.com/doc/setting-the-java_home-variable-in-windows-8895.html

Isabellle commented 8 years ago

Thanks a lot!

e4basil commented 8 years ago

I hava same issue ,but i can't resolve it pls tell me how to solve it in environment variable i have JAVA8_HOME as C:\Program Files\Java\jdk1.8.0_45

Naitbit commented 8 years ago

@e4basil Do you have also JAVA7_HOME set? Also if you are on Windows try restarting computer after setting this variable.