Xoma
(Kumaraswamy)
April 27, 2021, 12:13pm
#236
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
Xoma
(Kumaraswamy)
April 27, 2021, 12:20pm
#237
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
$
nikzdevz
(nikzdevz)
April 27, 2021, 12:22pm
#238
let me try by creating new project
nikzdevz
(nikzdevz)
April 27, 2021, 12:25pm
#239
I’m getting error in test project too
Xoma
(Kumaraswamy)
April 27, 2021, 12:27pm
#240
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?
Shreyash
(Shreyash Saitwal)
April 27, 2021, 12:38pm
#242
Which version of JDK do you have installed on your PC? It must be 8.
Xoma
(Kumaraswamy)
April 27, 2021, 12:42pm
#244
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
nikzdevz:
Please degrade it to Java 8
1 Like
Xoma
(Kumaraswamy)
April 27, 2021, 12:45pm
#246
The Java compiler and the Java should have the same version to work maybe…?
1 Like
Shreyash
(Shreyash Saitwal)
April 27, 2021, 12:49pm
#247
javac
is a part of JDK. You need to install JDK 8 for Rush to work.
Xoma
(Kumaraswamy)
April 27, 2021, 12:52pm
#248
Shreyash, in my case the both JavaC and the Java are same. But I do face a similar error to him?
Shreyash
(Shreyash Saitwal)
April 27, 2021, 12:54pm
#249
Didn’t your issue got resolved?
nikzdevz
(nikzdevz)
April 27, 2021, 12:56pm
#250
yes jdk 8 is installed.
btw after update i have only on file inside C:/Rush/rush
while there was many file before update
Xoma
(Kumaraswamy)
April 27, 2021, 12:56pm
#251
No, sorry, I should have said that more clearly
I had created the project “Test” before updating it or opening the installer. I had updated the rush and tried to build it and it was successful.
But trying to build the newly created project throws the error.
1 Like
nikzdevz
(nikzdevz)
April 27, 2021, 12:58pm
#252
in my case old project is not working too
Shreyash
(Shreyash Saitwal)
April 27, 2021, 1:02pm
#253
Okay, this is getting really very confusing now!
@nikzdevz , you’re saying you’ve JDK 8 but running javac -versions
shows that you’ve JDK 12.
@Xoma , which error are you getting, you guys have now posted so many replies that it’s getting very confusing for me to know who’s saying what.
Please, try to be a bit more specific and share as much information as you can.
nikzdevz
(nikzdevz)
April 27, 2021, 1:07pm
#254
When i use javac -version i get this
but when i use java -version i get this
Shreyash
(Shreyash Saitwal)
April 27, 2021, 1:10pm
#255
You’ve been told the same thing again and again, Rush needs JDK 8 to work !
Shreyash:
It must be 8.