Giter VIP home page Giter VIP logo

Comments (3)

bmuschko avatar bmuschko commented on July 17, 2024 1

You can use a newer version than Gradle 1.7 and I am sure the IDE would still be happy with it. In addition, Gradle now also requires you to add a settings.gradle file for each project. The way you opened the "project" in IntelliJ isn't correct as you are not dealing with a large multi-project build. You need to open projects individually e.g. chapter02/helloworld-task-doLast.

Side note: For learning purposes, you don't really need an IDE. You may just open a project from an editor e.g. VsCode. You can always execute the build from the command line.

Bottom line: The book would need a major overhaul, however, Manning Publications decided not to work on a second edition.

from gradle-in-action-source.

bmuschko avatar bmuschko commented on July 17, 2024

Thanks! You are using Android Studio and not IntelliJ IDEA which seems to enforce a specific Gradle version. Try this with IntelliJ IDEA community edition.

from gradle-in-action-source.

seanw2020 avatar seanw2020 commented on July 17, 2024

Cool, that gets me closer, but rather than installing Community Edition, it turns out that you can disable IntelliJ's Android Studio plugin to achieve the same thing...

image

..., but then I get this:

Unsupported Gradle.
The project uses Gradle 1.7 which is incompatible with IntelliJ IDEA 2021.3.
Possible solution:

  • Upgrade Gradle wrapper to 3.0 version and re-import the project

So it seems IntelliJ integration is impossible.

As a workaround, should I just run the gradle commands from IntelliJ's terminal? For example, using sdk-man, I can select gradle 1.7, and cd to the project's directory.

from gradle-in-action-source.

Related Issues (9)

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.