Rush • A new and improved way of building extensions

Mention assets location in the yaml file

Please tell me all steps one by one

You can put any number of Java files inside the src folder (under whatever package) and they will be compiled with your extension.

You need to specify the required asset(s) in rush.yml like this:

    - new.png

You can then load this in your extension using the openAssetForExtension(...) method available in Form.

1 Like

I am fallow this steps but nat working

Same for me


1 Like

Thanks for your reply. I will surely look into it. But extension compilation is working when I select Java as language. With kotlin abrupt failed.

Hey, thanks for helping, Can you please help me in installing rush in my windows PC?

When I install Rush got this error

How to solve it?

• 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
│ info Generating DEX bytecode
│ Compilation failed with an internal error.
│ java.lang.IllegalArgumentException: Unsupported class file major version 62
│ at
│ at
│ at
│ at
│ at
│ at$a.a(:12)
│ at java.base/java.util.concurrent.ForkJoinTask$AdaptedCallable.exec(
│ at java.base/java.util.concurrent.ForkJoinTask.doExec(
│ at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(
│ at java.base/java.util.concurrent.ForkJoinPool.scan(
│ at java.base/java.util.concurrent.ForkJoinPool.runWorker(
│ at java.base/
└ failed

Hello dear @Shreyash, please release the Rush 2.0 soon.

  • We’re unavailable to desugar some Java 8 libraries using the current version of Rush.
  • Also need helper blocks support.
  • Need siblings extension support.

(We respect your hard work :heart:)


Also i think these needs to be added.


What is the problem? Is it also a JDK version issue?

got this error when i put this - deps:
- tess4j-5.7.0.jar
- commons-io-2.12.0.jar

│ erro The following error occurred while validating metadata file (rush.yml):
│ type ‘_InternalLinkedHashMap<String, dynamic>’ is not a subtype of type ‘YamlMap’ in type cast
└ failed

The problem is that your username has whitespaces in it. To work around this, move the Rush data directory (located at %USERPROFILE%/AppData/Roaming/rush on Windows) to a new location that doesn’t contain any whitespace, say C:/rush, and then create a new env var named RUSH_DATA_DIR which points to this new location.

1 Like

It’s likely that your rush.yml isn’t correctly indented. Make sure that the deps field looks like this:

  - tess4j-5.7.0.jar
  - commons-io-2.12.0.jar
1 Like

I was Trying to Install it on Ubuntu 22.04
and I am getting error like

bash: /root/.rush/bin/rush: cannot execute binary file: Exec format error

if anyone have solution then please forward me

I want rush to install on aarch64 based System, currently, it scoped to x86-64

Can we use proguard in rush?

yes, use flag (-r )