-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
modern generate project method #120
base: bleeding
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# 新版构建项目方法 | ||
|
||
## Eclipse | ||
我们接下来介绍构建用于Eclipse项目的一种办法。 | ||
1. 打开你解压压缩包的文件夹(也就是包含build.gradle的目录)。 | ||
2. shift+右键空白处 `打开命令窗口`(CMD黑窗口) 如果你是win10 你可能看见的是 `在此处打开PowerShell窗口` 一个道理。 | ||
3. 如果你上一步打开的是PowerShell窗口 你需要先输入`cmd`并回车打开命令行窗口 | ||
4. 输入gradlew genEclipseRuns 回车 提示`BUILD SUCCESSFUL`绿色字符(红色字符请检查你的网络或求助他人)。 | ||
5. 再输入gradlew eclipse 回车提示`BUILD SUCCESSFUL`绿色字符。 | ||
6. 打开Eclipse 左上角`File` -> `Import` -> `Existing Projects into Workspace` 。 | ||
7. 选择你刚刚解压压缩包的文件夹,如果一切正常,`Finish`按钮可以被按下 你只需要直接按下`Finish`。 | ||
|
||
## IDEA | ||
我们接下来介绍构建用于IDEA项目的一种办法。 | ||
1. 打开IDEA 如果你是第一次启动 你应该选择`Open` 并选择`build.gradle`文件。 | ||
2. 如果你不是第一次启动 你应该点击左上角`File` -> `Open` 并选择刚刚的`build.gradle`文件。 | ||
3. 如果上一步弹窗 询问导入方式 你应该选择`Open As Project`。 | ||
4. 此时IDEA会自动部署环境 右下角会有进度条 等待部署完成 | ||
5. 等待部署完成后 同Eclipse一样的方法打开命令行窗口 | ||
6. 输入 `gradlew genIntellijRuns` 回车 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK 我试了一下 如果先genIntellijRuns再导入项目 IDEA会右下角弹窗询问是否作为Gradle项目打开 如果选择是的话就和 文中流程结果一样了。 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 建议还是在导入之后再执行 |
||
7. 显示`BUILD SUCCESSFUL`绿色字符后 重启你的IDEA |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
直接移动到
## 开发环境部署
下面会比较好