Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Gradle installation and IDEA integration, project import process

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article introduces the "Gradle installation and IDEA integration, project import process" related knowledge, in the actual case operation process, many people will encounter such a dilemma, and then let the editor lead you to learn how to deal with these situations! I hope you can read it carefully and be able to achieve something!

Gradle installation and IDEA integration, project import 1, Gradle introduction Gradle is an open source build automation tool focused on flexibility and performance. The Gradle build script is written using Groovy or Kotlin DSL.

Highly customizable-Gradle models in the most basic customizable and extensible manner.

Fast-Gradle completes tasks quickly by reusing previously executed output, processing only changed inputs, and executing tasks in parallel.

Powerful-Gradle is the official build tool for Android and supports many popular languages and technologies.

Gradle official website

II. Installation and configuration of Gradle

Gradle runs on all major operating systems and requires only Java development kit version 8 or later to run. To check, run java-version. You should see the following:

Gradle comes with its own Groovy library, so you don't need to install Groovy. Gradle will ignore any existing Groovy installations.

Gradle uses any JDK found in the path. Alternatively, you can set the JAVA_HOME environment variable to point to the installation directory of the desired JDK.

Download the latest version of Gradle

Go to the official website to download the latest compression package.

There are two types of compressed packages:

Binary only (bin)

Complete (all) contains documentation and sources

Unzip it to your directory after the download is complete

1.2 Windows installation

Add GRADLE_HOME to the environment variable

Modify the environment variable Path to add% GRADLE_HOME%/bin

Note:

Win10 can set D:\ gradle-6.6\ bin directly in the path variable.

Verify:

Gradle-version or gradle-v

1.3 Linux and MacOS installation

Export PATH=$PATH:/opt/gradle/gradle-6.6/bin

Or

Export GRADLE_HOME=/opt/module/gradle-6.6/bin

Export PATH= "… bin:$ {GRADLE_HOME} / bin"

III. IDEA Integration and Import Project

You can also refer to http://www.mamicode.com/info-detail-2265989.html.

This is the end of the content of "Gradle installation and IDEA integration, project import process". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report