本章节目前还在完善中。
This chapter is currently a work in progress.
当使用Gradle(或者是其他软件包)的时候,或多或少都会遇到一些问题。或许是您无法驾驭的新特性,或许是正好遇到了缺陷,也可能是关于Gradle的一些常见问题。
When using Gradle (or any software package), you can run into problems. You may not understand how to use a particular feature, or you may encounter a defect. Or, you may have a general question about Gradle.
本章节给出了一些解决问题的建议,并解释了如何获取帮助。
This chapter gives some advice for troubleshooting problems and explains how to get help with your problems.
当您遇到问题时,首先确认一下是否使用的最新版本的Gradle。新版本的Gradle总是会更加完善并且带有新特性。有可能遇到的问题在一个新的版本中已经被修复。
If you are encountering problems, one of the first things to try is using the very latest release of Gradle. New versions of Gradle are released frequently with bug fixes and new features. The problem you are having may have been fixed in a new release.
如果您正在使用Gradle守护进程,尝试禁掉守护进程(通过向命令行中传入--no-daemon
参数)。更多的内容可参阅 《第十九章, Gradle 守护进程》。
If you are using the Gradle Daemon, try temporarily disabling the daemon (you can pass the command line switch --no-daemon
). More information about troubleshooting daemon is located in Chapter 19, The Gradle Daemon.
您可以到Gradle的官方论坛 http://forums.gradle.org来寻求一些帮助。在这里,您可以向Gradle的开发者和其他的社区成员报告您的问题或者是进行提问。
The place to go for help with Gradle is http://forums.gradle.org. The Gradle Forums is the place where you can report problems and ask questions to the Gradle developers and other community members.
如果出了问题,到论坛上提问或上报问题是获取帮助的最佳方式。有什么改进的建议或是新想法,也可以到论坛上发帖。开发团队会经常地通过论坛发布一些新闻和发表更新,使其成为与最新的Gradle开发保持更新的最佳方式。
If something's not working for you, posting a question or problem report to the forums is the fastest way to get help. It's also the place to post improvement suggestions or new ideas. The development team frequently posts news items and announces releases via the forum, making it a great way to stay up to date with the latest Gradle developments.