Rush • A new and improved way of building extensions

It is not possible to add native libraries to an extension in the standard way. You need to use a workaround by adding libraries to the extension's assets, then copying the libraries to the application's external storage and loading the libraries from the new location. This will require modifying the library that uses the native libraries

2 Likes

Thanks Patryk for the workaround.
I now have another question which is not about native libraries.
I am using a library in my version that requires a version of Java > 11 to build, I tried desugaring the library and have OpenJDK 8 installed on my system, and I got the same error just like before I desugared it...

class file has wrong version 61.0, should be 52.0

I cannot use any alternative library as this is the one which I can actually use without something missing. In this case what can be done?

image

If you want to know anything else, please tell me.

Which libraries? And do I need to update Java?

grafik

So far I have updated the android.jar library from sdk34, you can download it from here:

The core-1.9.0.jar library, annotation-experimental-1.3.0.jar, and testing-support-R-classes.jar. You can download them from here:

It would be good if you also update the D8.jar library:

It would be useful to update the AppInventor classes, but I haven't gotten to that yet.

Main folder rush: C:\Users\you-user-name\AppData\Roaming\rush

2 Likes

Ok, but I had these JARs on my radar too, but I can't find D8.jar library in my old Rush environment.

1 Like

It is here: C:\Users\you-user-name\AppData\Roaming\rush\tools\other

2 Likes

The d8.jar library does not seem to be compatible with Java/JDK 8. Right?

You could use upto v4.0.63 with the JDK 8.

1 Like

Yes, I have my newer version of d8 from another source. In appInventor d8 is with java 11. By the way, I wonder if installing jdk11 will work...

And that would be?

Yes, I confirm. We place d8.jar for java 11 version, install java11 and we can compile extensions in java11 environment. We only do not have methods from java11 because they are not in android.jar library.

1 Like

Is it possible to use androidx:room with rush for using sqlite-database? So far I have included room-runtime-2.6.1.jar into deps directory, but I have difficulties with the annotation processor androidx.room:room-compiler:2.6.1.

i have developed extension using rush. but the error is while building the app. this error shows.

App Inventor is unable to compile this project.
The compiler error output was
[ReadBuildInfo] Starting Task
[ReadBuildInfo] Task errored

why this error? pls tell how to solve

How does one uninstall rush?

1 Like

Deleting these directories should remove Rush from your system:

  • Windows:
    1. %userhome%\.rush
    2. %appdata%\rush
  • Linux:
    1. ~/.rush
    2. ~/rush
  • MacOS:
    1. ~/.rush
    2. ~/Library/Application Support/rush
1 Like

Alright Thanks a lot!! :sparkling_heart:

1 Like

@shreyash give error

What is your RUSH version?

rush -v

image

This is the latest version (although it is actually 1.2.5)

-v 1.2.4

image

You could try:

then

Using PowerShell (Windows only)

iwr https://raw.githubusercontent.com/shreyashsaitwal/rush-cli/main/scripts/install/install.ps1 -useb | iex

to be on the safe side, no spaces in your install filepath...e.g. Arun Gupta > ArunGupta