Rush • A new and improved way of building extensions

Today I have deleted that .rush folder and then installed rush
everything is done
and then i opened my powershell and typed there rush create and i got this result


Is it okay or i have to do something else also

You should read the docs closely once. You haven’t added the extension name in command. For creating an extension, you have to run rush create <extensionName> , here replace the <extensionName> with your extension name that you want to create. Then it’ll ask some more info like package and author in next steps. After then it’ll show a success message when the extension will be created.

1 Like

Ohk @iamwsumit and thanx a lot to all of you @Shreyash , @Shreyaa , @iamwsumit , @dora_paz for guiding me.
I really thank you :two_hearts::two_hearts:

Thnx again

3 Likes

hello everybody I am back with my new doubt :sweat_smile:
I am basically making an trial extension on Mathematical Operations I am using Intellij IDEA as IDE for my extension but there is one issue that when i am giving command Rush Build the this error is showing to me see this and please reply what can be the error

This is the full error
Windows PowerShell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.

PS C:\Users\HP\Desktop\math operations\math-operations> rush build
[94m __
_______ / /
/ / / / / / __
/ / / /
/ (
/ / / /
/
/ _
,
/
/
/ /
/

[m[33m• [mBuild initialized

[m[90m┌ [mChecking project files
[90m│ [m[36minfo[m Checking metadata file (rush.yml)
[90m│ [m[36minfo[m Checking AndroidManifest.xml file
[90m└ [32mdone
[m[90m┌ [mCompiling sources
[90m│ [m[36minfo[m Picked 1 source file
[90m└ [31mfailed
[m[31m
• [mBuild failed [30;1m[[0m[36m590ms[30;1m][0m [30;1m[[0m[30;1m][0m
[m

Have you added the JDK path in your environment variable? Run echo %PATH% command in your CMD and post the output here.

2 Likes

Ohk I will do it
Thank you
But I haven’t set any PATH
I had set only Home

That’s why you are facing error. Create a PATH variable and add %JAVA_HOME%\bin; %JAVA_HOME%\jre\bin; value to it then save it by clicking OK and try to build again.

2 Likes

I have done it but after this I am getting this error

HP@HP-PC MINGW64 ~/Desktop/math operations/math-operations
$ rush build
[94m __
_______ / /
/ / / / / / __
/ / / /
/ (
/ / / /
/
/ _
,
/
/
/ /
/

[m[33m• [mBuild initialized

[m[90m┌ [mChecking project files
[90m│ [m[36minfo[m Checking metadata file (rush.yml)
[90m│ [m[36minfo[m Checking AndroidManifest.xml file
[90m└ [32mdone
[m[90m┌ [mCompiling sources
[90m│ [m[36minfo[m Picked 1 source file
[90m│ [m javac: invalid flag: operations\math-operations
[90m│ [m Usage: javac
[90m│ [m use -help for a list of possible options
[90m└ [31mfailed
[m[31m
• [mBuild failed [30;1m[[0m[36m48s 979ms[30;1m][0m [30;1m[[0m[30;1m][0m
[m

Your Rush project’s base directory’s path should not contain any whitespace. Rename the directory ~/Desktop/math operations and remove all the whitespaces.

1 Like

Means there should not be any space between these two words

1 Like

I have noticed that android.jar in the dev-deps folder is targeting API 29. Will you update it to android 30?

I am getting desugaring issues when using the latest version as one class in the library depends on api 30 which causes desugaring issues. Plus both appinventor and kodular now target android 10 so it wont be a huge issue (I guess).

The android.jar will be updated with the next release, but I’m not certain about when the next release is gonna land. Best you can do for right now is to manually update it to the desired SDK version.

4 Likes

I have already updated the android.jar file to fix the issue. Thanks.

Is this due to error in my code or something else:-

┌ Checking project files
│ info Checking metadata file (rush.yml)
│ info Checking AndroidManifest.xml file
└ done
┌ Compiling sources
│ info Picked 1 source file
└ failed

• Build failed [21ms]

Check that you have:

  • JDK installed and correctly set up.
  • No whitespace in your extension’s base directory’s path.

I had just rested my pc after that i installed java 1.8

I had also checked java -version

java version “1.8.0_301”
Java™ SE Runtime Environment (build 1.8.0_301-b09)
Java HotSpot™ 64-Bit Server VM (build 25.301-b09, mixed mode)

Tell me what i did wrong here

Check this also

I have found solution i just moved the java path var to top

But now its not recognizing rush