Rush • A new and improved way of building extensions

Rush provides all the AndroidX libraries used by AI2 with identical versions. You can find the available AndroidX libraries here. If a library is unavailable, you need to add the required JARs as dependencies to your Rush project.

Also, it's worth noting that AI2 uses very initial versions of all these libraries. So, even if some library is available, it's very much possible that some imports may not work if they were added in a later version of the library. In such cases, you should add the JAR of a newer version of that library as a dependency, and (important) build with ProGuard optimization turned on. You can turn on optimization either by passing the -r (--release) flag while building or adding this in your rush.yml:

build:
  release:
    optimize: true
1 Like

I got this error when I try to install rush

I read somewhere that India blocks access to GitHub. You must use a vpn.

No it doesn't. It's a fake news.

Me and the creator lives in India and Github is absolutely fine there!

1 Like

I read that somewhere yesterday. When I was looking for more information about rush. I may have mistaken something.

1 Like

From the horse's mouth:

2 Likes

Exactly, I couldn't find it quickly again.
It would be good if this information was in the first post.

What ISP are you using? It's weird that some of them still block GitHub. :thinking:

Not fake. I have ACT Fibernet, and I had to use a VPN for Rush to work, the last time I tried.

I had to download rush manually from releases to get it working.

It worked after use vpn

Yes you are right

how to update rush to new app inventor libraries?
and androidruntime.jar
import com.google.appinventor.components.common.OptionList;
import com.google.appinventor.components.common.Default;
import com.google.appinventor.components.annotations;
I want to use the
@Options

Possibly coming when Rush 2.0 released.....

1 Like

Thanks, I'll wait for version 2 Rush 2.0, for now I'll use the Extension Template from source mit app inventor

It only blocks for ACT. I didn't mention that.

Because if India actually blocked GitHub like that, crisis will begin...

#off-topic

                 __
 _______  _______/ /_
/ ___/ / / / ___/ __ \

/ / / // (__ / / / /
/
/ _,/__// //

• 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 com.android.tools.r8.A.a.a.f.(:10)
│ at com.android.tools.r8.A.a.a.f.(:2)
│ at com.android.tools.r8.A.a.a.f.(:1)
│ at com.android.tools.r8.A.a.a.f.(:107)
│ at com.android.tools.r8.graph.x0.a(:24)
│ at com.android.tools.r8.dex.a$a.a(:12)
│ at java.base/java.util.concurrent.ForkJoinTask$AdaptedCallable.exec(ForkJoinTask.java:1428)
│ at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
│ at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
│ at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
│ at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
│ at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)
└ failed

You've an unsupported version of JDK. Please install JDK version 8 and try again.

Thank You now working

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