Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle issue when compiling #2

Closed
Isabellle opened this issue Feb 10, 2016 · 5 comments
Closed

Gradle issue when compiling #2

Isabellle opened this issue Feb 10, 2016 · 5 comments

Comments

@Isabellle
Copy link

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
Copy link
Member

Naitbit commented Feb 10, 2016

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

@Naitbit Naitbit closed this as completed Feb 10, 2016
@notdrone
Copy link

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
Copy link
Author

Thanks a lot!

@e4basil
Copy link

e4basil commented Feb 15, 2016

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
Copy link
Member

Naitbit commented Feb 15, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants