Kotlin Javascript -library-files无效的参数
遵循这里的指令: https ://kotlinlang.org/docs/tutorials/command-line-library-js.html但编译时得到无效参数:-library-files 。 我不确定我做错了什么。 任何帮助赞赏。
编译器从https://github.com/JetBrains/kotlin/releases/tag/v1.1获得
kotlin-compiler-1.1.zip
kotlinc-js -output binom.js -library-files sample-library.jar binom.kt Invalid argument: -library-files Usage: kotlinc-js <options> <source files> where possible options include: -output <path> Output file path -no-stdlib Don't use bundled Kotlin stdlib -libraries <path> Paths to Kotlin libraries with .meta.js and .kjsm files, separated by system file separator -source-map Generate source map -meta-info Generate .meta.js and .kjsm files with metadata. Use to create a library -target { v5 } Generate JS files for specific ECMA version -module-kind { plain, amd, commonjs, umd } Kind of a module generated by compiler -main {call,noCall} Whether a main function should be called -output-prefix <path> Path to file which will be added to the beginning of output file -output-postfix <path> Path to file which will be added to the end of output file -language-version <version> Provide source compatibility with specified language version -api-version <version> Allow to use declarations only from the specified version of bundled libraries -nowarn Generate no warnings -verbose Enable verbose logging output -version Display compiler version -help (-h) Print a synopsis of standard options -X Print a synopsis of advanced options -P plugin:<pluginId>:<optionName>=<value> Pass an option to a plugin
在JavaScript支持作为Kotlin 1.1的一部分发布之前,该选项已被重命名为-libraries
。 本教程的这一部分不是最新的,我会解决它。
- Android / Kotlin崩溃在开始4.1.2 – ExceptionInInitializerError
- Android可以在Kotlin下载
- 如何在Kotlin中使用一个叫做“val()”的函数? /扩展外部JS类
- 没有类的Android应用程序?
- 未解决的引用:jvmName
- 执行失败的任务'应用程序:copyDebugAndroidTestKotlinClasses' – Android的Kotlin生成错误
- 用kotlin spek和kluent运行测试
- 在Kotlin Android Library Project中获取未解决的引用错误
- Kotlin中@JvmSynthetic的用途是什么?