Rush • A new and improved way of building extensions

Please re-run the installer. Looks like it was unable to download some files.

1 Like

Deleted the rush folder and now i’m trying to select directory but after selecting dir
cmd closes

Please try running the installer from a terminal. You can do it by opening the terminal in the directory where you’ve downloaded the installer and running ./rush-init-win64.exe.

worked this time

2 Likes

Got some build error

Unfortunately, I am getting similar error:


user@DESKTOP-BD6HS68 MINGW64 ~/Desktop/SymbolTest/special-chars
$ rush build
                      __
     _______  _______/ /_
    / ___/ / / / ___/ __ \
   / /  / /_/ (__  / / / /
  /_/   \__,_/____/_/ /_/

• Build initialized

┌ Checking project files
│
│  OK Metadata file (rush.yml) found
│
│  OK AndroidManifest.xml file found
└ Done
Unhandled exception:
type 'Null' is not a subtype of type 'DateTime'
#0      BuildCommand.run (package:rush_cli/commands/build_command/build_command.dart:182)
<asynchronous suspension>
#1      CommandRunner.runCommand (package:args/command_runner.dart:196)
<asynchronous suspension>

user@DESKTOP-BD6HS68 MINGW64 ~/Desktop/SymbolTest/special-chars
$
AndroidManifest.xml file found
└ Done
Unhandled exception:
type 'Null' is not a subtype of type 'DateTime'
#0      BuildCommand.run (package:rush_cli/commands/build_command/build_command.dart:182)
<asynchronous suspension>
#1      CommandRunner.runCommand (package:args/command_runner.dart:196)
<asynchronous suspension>

user@DESKTOP-BD6HS68 MINGW64 ~/Desktop/SymbolTest/special-chars
$ ^C

user@DESKTOP-BD6HS68 MINGW64 ~/Desktop/SymbolTest/special-chars
$

I am facing it now. I had built it previously and it worked twice for sure :thinking:

Before updating it, I had created a project “test”.

Updated rush successfully builds the project without any errors:


user@DESKTOP-BD6HS68 MINGW64 ~/Desktop/RushNew/test
$ echo ThisIsNewVersion
ThisIsNewVersion

user@DESKTOP-BD6HS68 MINGW64 ~/Desktop/RushNew/test
$ rush build
                      __
     _______  _______/ /_
    / ___/ / / / ___/ __ \
   / /  / /_/ (__  / / / /
  /_/   \__,_/____/_/ /_/

• Build initialized

┌ Checking project files
│
│  OK Metadata file (rush.yml) found
│
│  OK AndroidManifest.xml file found
└ Done
┌ Compiling Java files
└ Done
┌ Processing the extension
└ Done
┌ Converting Java bytecode to DEX bytecode
└ Done
┌ Finalizing the build
└ Done

• Build successful

user@DESKTOP-BD6HS68 MINGW64 ~/Desktop/RushNew/test
$

let me try by creating new project

I’m getting error in test project too

Did you update the Rush and did the build logs were similar to this:

                      __
     _______  _______/ /_
    / ___/ / / / ___/ __ \
   / /  / /_/ (__  / / / /
  /_/   \__,_/____/_/ /_/

An old version of Rush was found at: C:\Rush

? Would you like to update it with the latest version? (Y/N) Y
Downloading rush.exe...
Downloading android.jar...
Downloading androidsvg-1.2.1.jar...
Downloading annotation-1.0.0.jar...
Downloading annotations-v186a.jar...
Downloading checker-compat-qual-2.5.5.jar...
Downloading collection-1.0.0.jar...
Downloading commons-codec-1.11.jar...
Downloading commons-logging-1.2.jar...
Downloading commons-pool2-2.6.2.jar...
Downloading constraintlayout-solver-1.1.0.jar...
Downloading core-common-2.0.0.jar...
Downloading error_prone_annotations-2.3.4.jar...
Downloading failureaccess-1.0.1.jar...
Downloading firebase-client-android-2.5.2.jar...
Downloading firebase-client-jvm-2.5.2.jar...
Downloading google-api-client-1.31.1.jar...
Downloading google-api-client-android2-1.10.3-beta.jar...
Downloading google-http-client-1.38.0.jar...
Downloading google-http-client-apache-v2-1.38.0.jar...
Downloading google-http-client-jackson2-1.38.0.jar...
Downloading google-oauth-client-1.31.2.jar...
Downloading grpc-context-1.22.1.jar...
Downloading guava-30.0-android.jar...
Downloading httpclient-4.5.13.jar...
Downloading httpcore-4.4.13.jar...
Downloading httpmime-4.3.4.jar...
Downloading j2objc-annotations-1.3.jar...
Downloading jackson-annotations-2.2.2.jar...
Downloading jackson-core-2.11.3.jar...
Downloading jackson-databind-2.2.2.jar...
Downloading jedis-3.1.0.jar...
Downloading json-20080701.jar...
Downloading jsr305-3.0.2.jar...
Downloading jts-core-1.16.1.jar...
Downloading kawa-1.11-modified.jar...
Downloading lifecycle-common-2.0.0.jar...
Downloading listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar...
Downloading opencensus-api-0.24.0.jar...
Downloading opencensus-contrib-http-util-0.24.0.jar...
Downloading opengl-api-gl1.1-android-2.1_r1.jar...
Downloading org.apache.http.legacy.jar...
Downloading physicaloid-library.jar...
Downloading runtime-v186a.jar...
Downloading slf4j-api-1.7.25.jar...
Downloading tubesock-0.0.12.jar...
Downloading xmlParserAPIs-2.6.2.jar...
Downloading xpp3-1.1.4c.jar...
Downloading d8.jar...
Downloading icon-rush.png...
Downloading migrator.jar...
Downloading proguard.jar...
Downloading annotations-v186a.jar...
Downloading auto-common-0.10.jar...
Downloading auto-service-1.0-rc7.jar...
Downloading auto-service-annotations-1.0-rc7.jar...
Downloading checker-qual-2.11.1.jar...
Downloading eo-yaml-5.1.7.jar...
Downloading error_prone_annotations-2.3.4.jar...
Downloading failureaccess-1.0.1.jar...
Downloading guava-29.0-jre.jar...
Downloading j2objc-annotations-1.3.jar...
Downloading jsr305-3.0.2.jar...
Downloading listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar...
Downloading processor-v186a.jar...
Downloading shaded-json.jar...
Downloading jetifier-standalone...
Downloading jetifier-standalone.bat...
Downloading annotations-13.0.jar...
Downloading asm-6.0.jar...
Downloading asm-commons-6.0.jar...
Downloading asm-tree-6.0.jar...
Downloading asm-util-6.0.jar...
Downloading commons-cli-1.3.1.jar...
Downloading gson-2.8.0.jar...
Downloading jdom2-2.0.6.jar...
Downloading jetifier-core-1.0.0-beta09.jar...
Downloading jetifier-processor-1.0.0-beta09.jar...
Downloading jetifier-standalone.jar...
Downloading kotlin-stdlib-1.3.60.jar...
Downloading kotlin-stdlib-common-1.3.60.jar...

Success! Installed Rush in directory: C:\Rush\rush

Now, update your PATH environment variable by adding the following path to it:
C:\Rush\rush\bin

For more info, visit here: https://github.com/ShreyashSaitwal/rush-cli/wiki/Installation

Press any key to continue...

And BTW, did you update the path variables?

yes i’ve updated it

Which version of JDK do you have installed on your PC? It must be 8.

image

This is mine:

Microsoft Windows [Version 10.0.18363.1440]
(c) 2019 Microsoft Corporation. All rights reserved.

C:\Users\user>java -version
java version "1.8.0_281"
Java(TM) SE Runtime Environment (build 1.8.0_281-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.281-b09, mixed mode)

C:\Users\user>javac -version
javac 1.8.0_281

Please degrade it to Java 8

1 Like

I checked javac
image

The Java compiler and the Java should have the same version to work maybe…?

1 Like

javac is a part of JDK. You need to install JDK 8 for Rush to work.

Shreyash, in my case the both JavaC and the Java are same. But I do face a similar error to him?

Didn’t your issue got resolved? :point_down:

yes jdk 8 is installed.
btw after update i have only on file inside C:/Rush/rush
while there was many file before update