Code Monkey home page Code Monkey logo

Comments (4)

nenick avatar nenick commented on July 22, 2024

your default version is java 6 or 8? then yes try to force java 7 for both builds. (plugin and your project)

See also #7

from android-gradle-template.

andreizilla avatar andreizilla commented on July 22, 2024

Hello... I have successfully built and run your template with Java 1.7, however, I want to use it with Java 1.8. The reason is I want to write my main application in Java 1.8 ,but I would like to use your template as a starting point (because it has all the jacoco stuff set up for robolectric and espresso)

Is there any way to get it to work for 1.8? If not, is there a way I can compile my app with 1.8 but use 1.7 for the tasks that your template depends on?

Currently I get this error (described in this thread) if I try it with 1.8

from android-gradle-template.

nenick avatar nenick commented on July 22, 2024

Maybe this will be just one error in a error chain .. i never read that java 8 is supported for android. There are some projects to support the lambda.

Let us do following experiment. Build a simple app (new project with android studio) based on Java 8 and use all java 8 features you like to have. Let it run on your test device.

If it work, great then we should try to make this template java 8 compatible.

from android-gradle-template.

nenick avatar nenick commented on July 22, 2024

I'm thinking about to switch the base plugin which support robolectric by https://github.com/JCAndKSolutions/android-unit-test

Please try the given example for this plugin with Java 8. There can also jacoco be enabled I have already an working example.

from android-gradle-template.

Related Issues (20)

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.