Idea2019导入Kafka源码踩坑

idea右边没有gradle小窗口

  1. File -> New -> Project From Existing Sources...

  1. 选择 kafka 项目根目录下的 build.gradle 文件

idea中 gradle 运行标识为灰色

  1. File -> Settings...

  2. 搜索关键字 gradle -> 指定一下 Gradle 的安装目录

idea报错Connection timed out

Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle.
  1. 以 Win10 为例,右击表示网络连接的图标

  1. 选择 打开“网络和Internet”设置

  1. 查看 代理 一栏:

  1. Idea的 File -> Settings... ,然后搜索 HTTP Proxy:

  1. 将第4步的1,2,3空填得跟第3步中的1,2,3一样,就可以了。
原文地址:https://www.cnblogs.com/kendoziyu/p/15235357.html