Comments (10)
You should set JAVA7_HOME and JAVA8_HOME enviroment variables. See Project setup in the README.
from kickmaterial.
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.
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.
facing the same issue even after setting JAVA7_HOME and JAVA8_HOME
from kickmaterial.
@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.
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.
@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.
@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.
@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.
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)
- Gradle issue when compiling HOT 5
- Project setup HOT 3
- the white search Menu Item in MainActivity is Unfriendly HOT 6
- Compile Project: Error:(22, 0) Gradle DSL method not found: 'android()' HOT 1
- What's wrong with this problem? HOT 1
- Oh my god!!! What's the matter? HOT 1
- Navigation Fragment HOT 3
- Only Local HOT 1
- Error: cannot find symbol class BR HOT 8
- DaggerGlobalComponent not found HOT 3
- Cannot set the value of read-only property 'outputFile' for ApkVariantOutputImpl_Decorated HOT 1
- No toolchains found in the NDK toolchains folder for ABI with prefix: mipsel-linux-android HOT 1
- How to debug and run HOT 1
- Need tutorial please help.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kickmaterial.