{"id":2917,"date":"2024-10-13T16:53:13","date_gmt":"2024-10-13T08:53:13","guid":{"rendered":"https:\/\/wp.minicoda.com\/?p=2917"},"modified":"2025-03-04T16:40:48","modified_gmt":"2025-03-04T08:40:48","slug":"kotlin%e7%bc%96%e8%af%91%e7%8e%af%e5%a2%83","status":"publish","type":"post","link":"https:\/\/wp.minicoda.com\/index.php\/kotlin%e7%bc%96%e8%af%91%e7%8e%af%e5%a2%83\/","title":{"rendered":"Kotlin\u7f16\u8bd1\u73af\u5883"},"content":{"rendered":"\n<ul class=\"wp-block-list\">\n<li>\u547d\u4ee4\u884c\u7f16\u8bd1<br>Compiler\u4e0b\u8f7d\uff1a<a href=\"https:\/\/github.com\/JetBrains\/kotlin\/releases\">Releases \u00b7 JetBrains\/kotlin (github.com)<\/a><br>\u5165\u95e8\uff1a<a href=\"https:\/\/legacy.kotlincn.net\/docs\/tutorials\/command-line.html\">\u4f7f\u7528\u547d\u4ee4\u884c\u7f16\u8bd1\u5668 - Kotlin \u8bed\u8a00\u4e2d\u6587\u7ad9 (kotlincn.net)<\/a>\n<ul class=\"wp-block-list\">\n<li>\u5b89\u88c5\u540e\uff0c\u5c06bin\u76ee\u5f55\u52a0\u5165\u73af\u5883\u53d8\u91cf\uff0c\u5373\u53ef\u4f7f\u7528kotlin\u7f16\u8bd1\u5668\u3002\u4f8b\u5982\uff1a<br>konanc.bat <em><strong>demo<\/strong><\/em>.kt -o <strong><em>demo<\/em><\/strong>.exe\n<ul class=\"wp-block-list\">\n<li>konanc.bat \u4f1a\u914d\u7f6e\u73af\u5883\uff0c\u53ef\u80fd\u4f1a\u6162\uff0c\u53ef\u4ee5\u6539\u7528\u5982\u4e0b\u52a0\u901f\uff1a<br>kotlinc.bat <strong><em>demo<\/em><\/strong>.kt -include-runtime -d <strong><em>demo<\/em><\/strong>.jar<br>java -jar <strong><em>demo<\/em><\/strong>.jar<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>IDE\u73af\u5883\n<ul class=\"wp-block-list\">\n<li>IntelliJ IDEA, Android Studio, Eclipse<br>\u6ce8\u610f\uff1aAndroid Studio \u7531\u8c37\u6b4c\u516c\u53f8\u57fa\u4e8e IntelliJ IDEA \u5f00\u53d1\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[299],"tags":[],"class_list":["post-2917","post","type-post","status-publish","format-standard","hentry","category-think"],"views":170,"_links":{"self":[{"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/posts\/2917","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/comments?post=2917"}],"version-history":[{"count":5,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/posts\/2917\/revisions"}],"predecessor-version":[{"id":3855,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/posts\/2917\/revisions\/3855"}],"wp:attachment":[{"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/media?parent=2917"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/categories?post=2917"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/tags?post=2917"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}