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
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?
If you want to know anything else, please tell me.
Which libraries? And do I need to update Java?
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
Ok, but I had these JARs on my radar too, but I can't find D8.jar library in my old Rush environment.
It is here: C:\Users\you-user-name\AppData\Roaming\rush\tools\other
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.
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.
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?
Deleting these directories should remove Rush from your system:
- Windows:
%userhome%\.rush
%appdata%\rush
- Linux:
~/.rush
~/rush
- MacOS:
~/.rush
~/Library/Application Support/rush
Alright Thanks a lot!!
What is your RUSH version?
rush -v
This is the latest version (although it is actually 1.2.5)
-v 1.2.4
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