Rush • A new and improved way of building extensions

It will obviously work on Niotron's IDE as they have configured everything for us.

1 Like

Am I doing something wrong here?

Rush is not found after installation.
i have already added the line that has to be added in $HOME/.bash_profile

I don't think the java version is a problem here.

No its not java version problem
which distribution of linux you're using

Here, I am using Arch Linux (btw)

use

nano ~/.bashrc

then add Rush path
save changes and then run comand

source ~/.bashrc

then check

1 Like

Seems to have worked! thanks for the solution!

(I was not able to figure that out)

i used vim to edit the file instead of nano due to obvious reasons

I use Deepin but i know some commands for each distribution :smile:

1 Like

Looks like you did not run the command:

image

You can check the contents of PATH with:$PATH

his error is solved now

Anyways, searching the forums about how to include native libraries (.so) or jni libraries onto extensions has become quite confusing, so now my question is how do we do it with rush? if not possible, how can i do it in some other method?

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?