Giter Site home page Giter Site logo

Comments (10)

kkocsis avatar kkocsis commented on May 30, 2024

You should set JAVA7_HOME and JAVA8_HOME enviroment variables. See Project setup in the README.

from kickmaterial.

Naitbit avatar Naitbit commented on May 30, 2024

I'll try to patch project so that those variables are not mandatory, since it clearly common problem during project setup. Obviously both Java version must be installed in OS, but probably they can be autodetected.

from kickmaterial.

Naitbit avatar Naitbit commented on May 30, 2024

I've adjusted the script and README. You still need to have both version on JAVA installed, but if you do not have environment variables set it will try defaults. @Shajeel-Afzal Please check if this helps you.

from kickmaterial.

Sateesh2 avatar Sateesh2 commented on May 30, 2024

facing the same issue even after setting JAVA7_HOME and JAVA8_HOME

from kickmaterial.

Naitbit avatar Naitbit commented on May 30, 2024

@Sateesh2 Did you reset Android studio after setting those variables? Are you using latest commit? If you are using windows you may want to reset OS after setting those variables.

from kickmaterial.

kristianstorvoll avatar kristianstorvoll commented on May 30, 2024

Same issue here. JAVA7_HOME and JAVA8_HOME are both set.
On OS X 10.11.4 and Android Studio 2.0 b5

from kickmaterial.

Naitbit avatar Naitbit commented on May 30, 2024

@AlPHez Did you restart AndroidStudio/OS? Can you run echo $JAVA7_HOME $JAVA8_HOME in Android Studio terminal and verify that AS sees them?
Project configuration is valid in this project, as you can see by CI: https://travis-ci.org/byoutline/kickmaterial

from kickmaterial.

kristianstorvoll avatar kristianstorvoll commented on May 30, 2024

@Naitbit echo $JAVA7_HOME $JAVA8_HOME gives blank/null

I currently use Retrolambda in multiple other projects, so I don't see any reason for why it shouldn't work here.
I've set JAVA7/8_HOME in both bash_profile and in Android Studio Preferences.

from kickmaterial.

Naitbit avatar Naitbit commented on May 30, 2024

@AlPHez echo $JAVA7_HOME returning blank/null suggest that AS does not see this variables. Does your terminal return something else? If it returns correct variables it should allow you to build from terminal.
https://github.com/orfjackal/retrolambda also notes I recommend setting up environment variables JAVA8_HOME, JAVA7_HOME etc. and referring to those variables in the build configuration, instead of relying on what happens to be the default Java version in JAVA_HOME. so I'm not sure what you expect me to do. I've verified on multiple machines, OSes and CI that with those environmental variables set this project builds fine (without those variables it builds only on some configuration). If you have some patch to make autodetection of JAVA version you may create pull request.

from kickmaterial.

Naitbit avatar Naitbit commented on May 30, 2024

For anyone experiencing this issue, please check current develop and configuring your JAVA7_HOME and JAVA8_HOME via gradle.properties file.

from kickmaterial.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.