Rush • A new and improved way of building extensions

Currently, only x86_64 builds are provided. You can however build Rush for your architecture yourself. Build instructions for the current stable release can be found on the main branch.

I think I have ran into some kind of issue.
I build an extension then delete some files and jars. And when I again build it, those files are still in the aix.

it might be because rush saves some raw data
I don’t know much about it but I have seen that data

1 Like

This is a known bug, where the build caches don’t invalidate after you remove dependencies. For now, deleting the build folder for your extension, which can be found inside $RUSH_DATA_DIR/workspaces, should fix this.

I think you should add clean command similar to Extension Template.


I have installed JDK 1.8 and added the %JAVA_HOME% variable correctly?

then why this error occurs?

How to fix this??

Try running javac -version and see the results.

For me, it returns:

javac 1.8.0_331

On my laptop, the two commands worked but javac did not, and I encountered the same error as you. Then I changed some things and javac was working, and the extensions are now compiling.

So what do I need to change? because my laptop doesn’t display the javac -version you described above… I need your help.

What does it say?

1 Like

You need to install JDK 8.

1 Like

How I can update or specify the Kotlin version in Rush for creating extension in Kotlin?

The error message you are getting is telling you that the Kotlin classes that you are trying to use are compiled with an incompatible version of Kotlin. This means that the versions of Kotlin that the classes were compiled with and the version of Kotlin that you are using to run your code are different.

1 Like

weren’t there plans to integrate python the? Could this be done with Jython, for example?
Jython link

There were no plans whatsoever to integrate Python or Jython into Rush.

Is it possible use Rush with termux in android device

I 'm building an extension in Rush - all ок. If make "Export - Android APK (in " - I get errors:

Kodular is unable to compile this project.
The compiler error output was
________Preparing application icon
________Creating animation xml
________Creating fragment xml
________Creating listview xml in res/layout/…
________Creating listview xml in res/layout-v21/…
________Creating xml in res/drawable/…
________Creating splash png in res/drawable/…
________Creating colors xml
________Creating styles xml
________Creating drawables xml v21
________Checking for firebase
________Creating provider_path xml
________Creating network_security_config xml
________Generating adaptive icon file
________Generating round adaptive icon file
________Generating adaptive icon background file
________Generating manifest file
________Attaching native libraries
________Attaching Android Archive (AAR) libraries
________Attaching component assets
________Invoking AAPT
AAPT time: 1.288 seconds
________Compiling source files
(compiling io/kodular/was6748/test/Screen1.yail to io.kodular.was6748.test.Screen1)
(compiling /tmp/runtime3730180970630236487.scm to
Kawa compile time: 2.199 seconds
________Invoking DX
DX time: 5.273 seconds
________Invoking ApkBuilder Failed to add /tmp/1696785026675_0.5982199738635251-0/youngandroidproject/…/build/tmp/classes2.dex
YAIL compiler - ApkBuilder failed.

My Ruch-files (include library and .aix)

when adding any of these lines in .kt:
import com.

I get an error when building .apk


When building extensions with Kotlin, it is necessary to generate a release build otherwise the extension won’t work in Kodular. To generate a release build, pass the -r (--release) flag when building the extension:

rush build -r
1 Like

• Build initialized

┌ Checking project files
│ info Checking metadata file (rush.yml)
│ info Checking AndroidManifest.xml file
└ done
┌ Compiling sources
│ info Picked 1 source file
└ done
┌ Processing the extension
│ info Linking extension assets and dependencies
│ info Optimizing the extension

│ You may need to add missing library jars or update their versions.
│ If your code works fine without the missing classes, you can suppress
│ the warnings with ‘-dontwarn’ options.
│ (ProGuard Manual: Troubleshooting | Guardsquare)

│ erro Please correct the above warnings first.
└ failed