• <tfoot id='McZw9'></tfoot>

      <i id='McZw9'><tr id='McZw9'><dt id='McZw9'><q id='McZw9'><span id='McZw9'><b id='McZw9'><form id='McZw9'><ins id='McZw9'></ins><ul id='McZw9'></ul><sub id='McZw9'></sub></form><legend id='McZw9'></legend><bdo id='McZw9'><pre id='McZw9'><center id='McZw9'></center></pre></bdo></b><th id='McZw9'></th></span></q></dt></tr></i><div id='McZw9'><tfoot id='McZw9'></tfoot><dl id='McZw9'><fieldset id='McZw9'></fieldset></dl></div>

    1. <legend id='McZw9'><style id='McZw9'><dir id='McZw9'><q id='McZw9'></q></dir></style></legend>
    2. <small id='McZw9'></small><noframes id='McZw9'>

          <bdo id='McZw9'></bdo><ul id='McZw9'></ul>

        如何通过代理设置 libGDX 项目

        时间:2023-05-19
        <i id='0vhVu'><tr id='0vhVu'><dt id='0vhVu'><q id='0vhVu'><span id='0vhVu'><b id='0vhVu'><form id='0vhVu'><ins id='0vhVu'></ins><ul id='0vhVu'></ul><sub id='0vhVu'></sub></form><legend id='0vhVu'></legend><bdo id='0vhVu'><pre id='0vhVu'><center id='0vhVu'></center></pre></bdo></b><th id='0vhVu'></th></span></q></dt></tr></i><div id='0vhVu'><tfoot id='0vhVu'></tfoot><dl id='0vhVu'><fieldset id='0vhVu'></fieldset></dl></div>

          <tfoot id='0vhVu'></tfoot>

            1. <small id='0vhVu'></small><noframes id='0vhVu'>

              <legend id='0vhVu'><style id='0vhVu'><dir id='0vhVu'><q id='0vhVu'></q></dir></style></legend>
              • <bdo id='0vhVu'></bdo><ul id='0vhVu'></ul>
                    <tbody id='0vhVu'></tbody>
                • 本文介绍了如何通过代理设置 libGDX 项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  我正在使用 libgdx 项目创建器 (gdx-setup.jar) 来设置一个新项目.但是,我在我的 Windows 机器上使用代理连接来访问 Internet,并且 gdx-setup.jar 无法检测到设置,因此我无法下载所需的 jar 文件并生成任何项目.我如何以及在哪里更改 java 代理设置,以便能够实现这一点?

                  I am using the libgdx project creator (gdx-setup.jar) to setup a new project. However, I am using a proxy connection on my Windows machine to access the internet and the gdx-setup.jar isn't able to detect the settings, thus I cannot download the required jar files and generate any project. How and where do I change the java proxy settings so that I am able to achieve this?

                  PS:我已经尝试在控制面板->Java->网络设置下编辑设置,但无济于事.

                  PS: I have already tried to edit the settings under Control Panel->Java->Network Settings but to no avail.

                  推荐答案

                  来自 Gradle 的手册:12.3.通过代理访问网络

                  From Gradle's manual: 12.3. Accessing the web via a proxy

                  您可能需要创建一个 $HOME/.gradle/gradle.properties 文件.例如:

                  You may need to create a $HOME/.gradle/gradle.properties file. For example:

                  systemProp.http.proxyHost=10.0.0.1
                  systemProp.http.proxyPort=8080
                  systemProp.http.proxyUser=
                  systemProp.http.proxyPassword=
                  systemProp.http.nonProxyHosts=*.some.domain.com|localhost
                  

                  重要提示:HTTPS 有单独的设置.

                  IMPORTANT: There are separate settings for HTTPS.

                  systemProp.https.proxyHost=www.somehost.org
                  systemProp.https.proxyPort=8080
                  systemProp.https.proxyUser=userid
                  systemProp.https.proxyPassword=password
                  systemProp.https.nonProxyHosts=*.nonproxyrepos.com|localhost
                  

                  然后,像这样运行设置:

                  Then, just run setup like this:

                  java -Dhttp.proxyHost=10.0.0.1 -Dhttp.proxyPort=8080 -Dhttps.proxyHost=10.0.0.1 -Dhttps.proxyPort=8080 -jar gdx-setup.jar
                  

                  这对我有用,在 HTTP 代理后面.使用您的代理设置进行更改.

                  This works for me, behind a HTTP Proxy. Change it with your proxy settings.

                  稍后,将您的项目导入 Eclipse.并确保您的 Eclipse 网络代理也正常.

                  Later, import your projects into Eclipse. And make sure your Eclipse Network Proxy is OK too.

                  这篇关于如何通过代理设置 libGDX 项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:Java/libGDX - 如何检查多边形与矩形或圆形的碰撞 下一篇:FitViewport 中的 LibGDX 背景图像

                  相关文章

                  最新文章

                  <legend id='CuK1d'><style id='CuK1d'><dir id='CuK1d'><q id='CuK1d'></q></dir></style></legend>

                      <bdo id='CuK1d'></bdo><ul id='CuK1d'></ul>
                    <tfoot id='CuK1d'></tfoot>
                    1. <i id='CuK1d'><tr id='CuK1d'><dt id='CuK1d'><q id='CuK1d'><span id='CuK1d'><b id='CuK1d'><form id='CuK1d'><ins id='CuK1d'></ins><ul id='CuK1d'></ul><sub id='CuK1d'></sub></form><legend id='CuK1d'></legend><bdo id='CuK1d'><pre id='CuK1d'><center id='CuK1d'></center></pre></bdo></b><th id='CuK1d'></th></span></q></dt></tr></i><div id='CuK1d'><tfoot id='CuK1d'></tfoot><dl id='CuK1d'><fieldset id='CuK1d'></fieldset></dl></div>

                      <small id='CuK1d'></small><noframes id='CuK1d'>