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

Fix issues regarding JAVA_HOME setup #7

Closed
wants to merge 7 commits into from
Closed

Fix issues regarding JAVA_HOME setup #7

wants to merge 7 commits into from

Conversation

swanhtet1992
Copy link
Contributor

This is well known issue (#4). Setting up JAVA7_HOME and JAVA8_HOME to work with Android Studio is really troublesome on OSX. I tried all the possible solutions and this is by far the best solution that worked on every machines and OS. I got the solution from this blog.

You just need to add the JAVA_HOME in gradle.properties file.

I hope this help.

Cheers,
SH

@Naitbit
Copy link
Member

Naitbit commented Mar 4, 2016

This will break Windows, Linux, Travis and CircleCi builds.

@swanhtet1992
Copy link
Contributor Author

@Naitbit, I think if gradle.properties is ignored by git and make it mandatory work for setup, it won't break.
Just have to create gradle.properties file with the path to jdk.

@Naitbit
Copy link
Member

Naitbit commented Mar 4, 2016

It will also break Mac builds if someone have different java7 or java 8 version.
I cannot merge this, but you can use it as an example how to hardcode those variables on your local machine.

@Naitbit Naitbit closed this Mar 4, 2016
@Naitbit
Copy link
Member

Naitbit commented Mar 4, 2016

local.properties is ignored by git.

@swanhtet1992
Copy link
Contributor Author

Sorry for bothering but I still believe this option should provide. I made some changes like this below. Please take a look. I think this won't break for other machines.

screen shot 2016-03-04 at 5 14 39 pm

It is not local.properties. It is inside gradle.properties.

@Naitbit Naitbit reopened this Mar 4, 2016
@swanhtet1992
Copy link
Contributor Author

Should I made changes and send PR again to test CI build?

@Naitbit
Copy link
Member

Naitbit commented Mar 4, 2016

You can make changes, so java7/java8 path can be set from properties file (as alternative to env variable), but I suggest to not hardcode specific version in commited file(unless it is in comment only form). You can also update readme with this information.

Dnia 4 marca 2016 11:51:45 CET, Swan Htet Aung notifications@github.com napisał(a):

Should I made changes and send PR again?


Reply to this email directly or view it on GitHub:
#7 (comment)

Sebastian Kacprzak

@swanhtet1992
Copy link
Contributor Author

@Naitbit Is this O.K now?

@Naitbit
Copy link
Member

Naitbit commented Mar 8, 2016

Sorry I did not have time to look at it yet. I'll try to check it soon.

@Naitbit
Copy link
Member

Naitbit commented Mar 9, 2016

@swanhtet1992 Please check feature/retrolambda_config branch (that contains your changes) and check if it works for you
https://github.com/byoutline/kickmaterial/tree/feature/retrolambda_config

@swanhtet1992
Copy link
Contributor Author

@Naitbit it works! 🤓And that refactoring part is awesome!!! 👏

@Naitbit
Copy link
Member

Naitbit commented Mar 10, 2016

Good to hear. Thanks for implementing initial version. I'll merge it.

@Naitbit Naitbit closed this Mar 10, 2016
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

Successfully merging this pull request may close these issues.

None yet

2 participants