MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    gradle加载mirai速度怎么这么慢,每次进idea都要等半天,有什么办法提高速度嘛

    开发交流
    6
    20
    353
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Ashendh last edited by

      如题

      1 Reply Last reply Reply Quote 0
      • Karlatemp
        Karlatemp last edited by

        请描述 慢 是什么慢,有无什么明显特征

        taskkill /f /im java*
        start taskmgr
        
        Orisland 1 Reply Last reply Reply Quote 0
        • Orisland
          Orisland 摸鱼 @Karlatemp last edited by

          是这个问题吗
          如果是的话可以参考解决,或者应该有其他更好的方案。

          A 1 Reply Last reply Reply Quote 0
          • A
            Ashendh @Orisland last edited by

            @orisland 每次build都要半天

            1 Reply Last reply Reply Quote 0
            • A
              Ashendh last edited by

              @orisland 换了maven解决了,应该是gradle的问题

              1 Reply Last reply Reply Quote 0
              • Karlatemp
                Karlatemp last edited by

                请提供慢的时候的状态的截图

                1. 空闲内存过低, 通常表现为每次执行都有以下输出
                      Starting Gradle Daemon...
                      Gradle Daemon started in .......
                2. 每次都未成功下载依赖, 具体表现为 IDEA 左侧进度条显示 Downloading ......
                3. 磁盘速度过慢
                
                A Orisland 2 Replies Last reply Reply Quote 0
                • A
                  Ashendh @Karlatemp last edited by

                  @karlatemp 5bd23db7-e80b-4e74-a206-bb915db067e3-image.png
                  然后加载个依赖也要3到5分钟,同样是maven仓库maven加载依赖瞬间就好了

                  1 Reply Last reply Reply Quote 0
                  • Orisland
                    Orisland 摸鱼 @Karlatemp last edited by

                    @karlatemp 2问题有解决方案吗?不想每次手动开关下载……mac环境。

                    A 1 Reply Last reply Reply Quote 0
                    • A
                      Ashendh @Orisland last edited by

                      @orisland 我直接用maven,没有任何问题了,只是打包的时候需要手动往METAINF里添加你插件的主类地址

                      1 Reply Last reply Reply Quote 0
                      • RainChan
                        RainChan 摸鱼 last edited by

                        尝试使用梯子

                        Orisland 1 Reply Last reply Reply Quote 0
                        • Orisland
                          Orisland 摸鱼 @RainChan last edited by

                          @rainchan 我也有上述问题但是梯子无法解决……pom无限下载循环,build时间要用好长时间。

                          RainChan 1 Reply Last reply Reply Quote 0
                          • RainChan
                            RainChan 摸鱼 @Orisland last edited by

                            @orisland 换最新dev版看看,我这边好像没这种情况

                            Orisland 1 Reply Last reply Reply Quote 0
                            • Orisland
                              Orisland 摸鱼 @RainChan last edited by

                              @rainchan 指idea版本吗?

                              A 1 Reply Last reply Reply Quote 0
                              • A
                                Ashendh @Orisland last edited by

                                @Orisland 可以试试换maven,添加两个依赖和在metainfo文件夹里添加主类地址就可以用maven编写插件了

                                Orisland 1 Reply Last reply Reply Quote 0
                                • cssxsh
                                  cssxsh last edited by

                                  @Orisland

                                  repositories {
                                      removeIf { it is MavenArtifactRepository && it.url.host == "dl.bintray.com" }
                                      mavenLocal()
                                      maven(url = "https://maven.aliyun.com/repository/public")
                                      maven(url = "https://maven.aliyun.com/repository/gradle-plugin")
                                      mavenCentral()
                                      jcenter()
                                      gradlePluginPortal()
                                  }
                                  
                                  Orisland H 2 Replies Last reply Reply Quote 0
                                  • Orisland
                                    Orisland 摸鱼 @Ashendh last edited by

                                    @ashendh ⭐,我换成Maven试试。

                                    1 Reply Last reply Reply Quote 0
                                    • Orisland
                                      Orisland 摸鱼 @cssxsh last edited by

                                      @cssxsh 好耶,完美解决,带佬nb( ̄▽ ̄)/

                                      1 Reply Last reply Reply Quote 0
                                      • A
                                        Ashendh last edited by

                                        好家伙我探索一天才发现的解决方法被别人一条回复解决了

                                        1 Reply Last reply Reply Quote 0
                                        • H
                                          hundun000 ⭐2021⭐ @cssxsh last edited by

                                          @cssxsh
                                          我之前一直是忍着……
                                          刚刚试了下加上这行,刷新gradle时还是会尝试一遍从dl.bintray.com下载,怎么回事?

                                          H 1 Reply Last reply Reply Quote 0
                                          • H
                                            hundun000 ⭐2021⭐ @hundun000 last edited by

                                            @hundun000 在 gradle加载mirai速度怎么这么慢,每次进idea都要等半天,有什么办法提高速度嘛 中说:

                                            刚刚试了下加上这行,刷新gradle时还是会尝试一遍从dl.bintray.com下载,怎么回事?

                                            没事了,是我workspace有好几个插件工程,那些工程还没这行

                                            1 Reply Last reply Reply Quote 0
                                            • 1 / 1
                                            • First post
                                              Last post
                                            Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact