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

How to solve the mac idea gradle trampling pit

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

Share

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

Today, I would like to talk to you about how to solve the mac idea gradle trampling pit, many people may not know much about it. In order to make you understand better, the editor has summarized the following contents for you. I hope you can get something according to this article.

Mac installation gradle environment configuration does not take effect: mac configuration environment variable file: ~ / .bash_profile installs gradle in mac through the zbash command line, but every time you close the window and reopen the window, you must refresh the configuration source ~ / .bash_profile before the configuration will take effect.

Solution: zsh loads the ~ / .zshrc file, but the task environment variable is not defined in the '.zshrc' file, so you need to add the source ~ / .bash_profile command to the ~ / .zshrc file to force refresh the environment configuration.

Idea configuration gradle jar package unable to update problem: idea gets the latest jar package from the remote repository and keeps getting the failed solution: Service directory path: just configure to put the gradle cache. Offline work: work offline, which can be set after all packages have been downloaded, so it is more efficient that gradle configuration in 1.idea cannot use offline mode 2.server directory path configuration jar package cache location that needs to be specified for gradle. The jar cache location of gradle in mac defaults to / Users/ (user name) / .gradle / caches/modules-2/files-2.1,idea configured as / Users/ (user name) / .gradle This ensures that the jar package used by the project can also be updated synchronously during the jar package cache forced refresh (gradle build-- refresh-dependencies).

After reading the above, do you have any further understanding of how to solve the mac idea gradle trampling pit? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.

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