Open a new topic with your specific issues.
How to fix extension that is null?
Could you please elaborate?
I build the extension using FAst. It was successfully build. but when I imported it to niotron it says my extension is null
Is your aix file bigger than 1MB? I noticed Niotron throws a null exception when the aix size exceeds 1MB, even though AppInventor lets you use up to 4MB.
Oh I know now. My AIX file is 1.75 MB. How do I reduce the size?
Use ProGuard/R8 to reduce size.
fast build -r
or
fast build -s
how to use gradle and maven? can you give sample please b4 I buy premium
Itβs very easy. Please read this wiki.
PS D:\MyProjects> cd hello-world
PS D:\MyProjects\hello-world> fast build
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::load has been called by org.fusesource.jansi.internal.JansiLoader in an unnamed module (file:/C:/Users/firoj/AppData/Local/Fast/fast.jar)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled
/ | __ _ | |
| | / ` / __| |
| | (| _ \ | (v5.7.0-free)
|| _,|__/_| (28.02.26.11.53)
- Cleaning build caches
- Increasing components version
- Compiling Kotlin classes
- WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
- WARNING: sun.misc.Unsafe::objectFieldOffset has been called by com.intellij.util.containers.ConcurrentLongObjectHashMap (file:/D:/Fast/lib/compilers/kotlinc/1.9.24/lib/kotlin-compiler.jar)
- WARNING: Please consider reporting this to the maintainers of class com.intellij.util.containers.ConcurrentLongObjectHashMap
- WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
- exception: java.lang.IllegalArgumentException: 25.0.2
at com.intellij.util.lang.JavaVersion.parse(JavaVersion.java:305)
at com.intellij.util.lang.JavaVersion.current(JavaVersion.java:174)
at org.jetbrains.kotlin.cli.jvm.modules.JavaVersionUtilsKt.isAtLeastJava9(javaVersionUtils.kt:11)
at org.jetbrains.kotlin.cli.jvm.modules.CoreJrtFileSystem$Companion$globalJrtFsCache$1.invoke(CoreJrtFileSystem.kt:83)
at org.jetbrains.kotlin.cli.jvm.modules.CoreJrtFileSystem$Companion$globalJrtFsCache$1.invoke(CoreJrtFileSystem.kt:74)
at org.jetbrains.kotlin.cli.jvm.modules.CoreJrtFileSystem.globalJrtFsCache$lambda$1(CoreJrtFileSystem.kt:74)
at com.intellij.util.containers.ConcurrentFactoryMap$2.create(ConcurrentFactoryMap.java:174)
at com.intellij.util.containers.ConcurrentFactoryMap.get(ConcurrentFactoryMap.java:40)
at org.jetbrains.kotlin.cli.jvm.modules.CoreJrtFileSystem$roots$1.invoke(CoreJrtFileSystem.kt:34)
at org.jetbrains.kotlin.cli.jvm.modules.CoreJrtFileSystem$roots$1.invoke(CoreJrtFileSystem.kt:33)
at org.jetbrains.kotlin.cli.jvm.modules.CoreJrtFileSystem.roots$lambda$0(CoreJrtFileSystem.kt:33)
at com.intellij.util.containers.ConcurrentFactoryMap$2.create(ConcurrentFactoryMap.java:174)
at com.intellij.util.containers.ConcurrentFactoryMap.get(ConcurrentFactoryMap.java:40)
at org.jetbrains.kotlin.cli.jvm.modules.CoreJrtFileSystem.findFileByPath(CoreJrtFileSystem.kt:42)
at org.jetbrains.kotlin.cli.jvm.modules.CliJavaModuleFinder.(CliJavaModuleFinder.kt:44)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment.(KotlinCoreEnvironment.kt:210)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment.(KotlinCoreEnvironment.kt)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment$Companion.createForProduction(KotlinCoreEnvironment.kt:446)
at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.createCoreEnvironment(K2JVMCompiler.kt:199)
at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:150)
at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:50)
at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:104)
at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:48)
at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:101)
at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:79)
at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:43)
at org.jetbrains.kotlin.cli.common.CLITool$Companion.doMainNoExit(CLITool.kt:180)
at org.jetbrains.kotlin.cli.common.CLITool$Companion.doMainNoExit$default(CLITool.kt:175)
at org.jetbrains.kotlin.cli.common.CLITool$Companion.doMain(CLITool.kt:167)
at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler$Companion.main(K2JVMCompiler.kt:250)
at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.main(K2JVMCompiler.kt)
x java.io.IOException: BUILD FAILED!
at com.jewel.fast.repacked.dp.(KotlinCompiler.java:107)
at com.jewel.fast.repacked.cL.(SourcesCompilers.java:760)
at com.jewel.fast.repacked.cy.(Build.java:16111)
at com.jewel.fast.Fast.main(Fast.java:846)
Could you please let me know the JDK version you are using? Are you encountering any difficulties while compiling Java sources as well?
java working perfectly kotlin giving this type error
Try updating the kotlin_version
how i update it?
Set kotlin_version: x.x.x in fast.yml and run fast sync.