回答編集履歴
1
インストール手順を追加
test
CHANGED
@@ -1,5 +1,79 @@
|
|
1
|
-
`import`
|
1
|
+
初回起動時に`Do not import settins`を選択肢してOK
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
+
![Complete Installation](bf5f21b48f7e2c374f7f266ae54790ed.png)
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
特に設定無しで`Skip All and set Defaults`を選択してOK
|
10
|
+
|
11
|
+
|
12
|
+
|
5
|
-
![inteliji IDEA](
|
13
|
+
![Customize Intelliji IDEA](b1a867e1246458252c9c9a6fd60d3208.png)
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
ウェルカム画面が出たら`Configure` > `Plugins` > `Browse Repositories...`を開いて`Kotlin`をインストール
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
![Browse Repositories](02a1cc8a349d3144bf7209be2b2f9b17.png)
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
InteliJi IDEAを再起動したら、`Create New Project` > `Kotlin` > `Kotlin (JVM)`を選択
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
![New Project](7ed1ece0ac09cc634cb9c982b785d0ae.png)
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
`Project SDK`を確認して、`<No SDK>`だった場合は`New...`を選択
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
![Project SDK](2acbef0d67c52ab7e48cc69835dd7914.png)
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
インストールされているjdkのフォルダを選択してOK
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
![Select Home Directory for JDK](ff6635dc3f5ab42ff44fecbe45026e9b.png)
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
エディタが開いたらProjectツリーからKotlin File/Classでファイルを追加
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
![Kotkin File/Class](5a92ab7b95276b1753605ea32c16437a.png)
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
ソースコードを入力するとガーターにKotlinのロゴが表示されるので、ここからRunで実行
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
```kotlin
|
62
|
+
|
63
|
+
fun main(args: Array<String>) {
|
64
|
+
|
65
|
+
println("Hello, world")
|
66
|
+
|
67
|
+
}
|
68
|
+
|
69
|
+
```
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
![Run](62149c0c3b12c23f9444f5fd8df46d60.png)
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
と、こんな感じで設定をリセットして1からインストールしてみました。
|
78
|
+
|
79
|
+
|