Rush β€’ A new and improved way of building extensions

4 Likes

This post was flagged by the community and is temporarily hidden.

Hi @Shreyash , i am try to build my project without edit any thing but it doesn’t work
see this video to understand me

I’ve answered this exact issue just above your post. Please read before you ask.

2 Likes

I read it before but i did all things like install ant and add it on system path variable The same for java. i don’t know where is the problem ?

It has never been said that you need to install Ant to use Rush. Also, I’m very much sure that you haven’t installed JDK 8. At this point I’m just fed up with explaining everyone how to install JDK. If you can’t do such simple things as installing a program, I don’t think you should be developing any extensions.

7 Likes

Run this command in Powershell and post the result

java -version; javac -version

You should see something like this:

image

1 Like

Hello @Shreyash & @Xoma
Thanks for replaying me
I solved problem by add %JAVA_HOME%\bin to system variables to the path


And restart my pc … it is solved :grin:

Resources How to Set Java Path in Windows and Linux? - GeeksforGeeks

Hi Shreyash,

I installed Java on my computer.

image

And I wrote this in my extension. (removed)

And it successfully built the extension, but:

image

This block is the only block I see. Do you know where the mistake is?

I had also faced this issue.

Just re-compile the extension.

At the time of compiling this extension there was one warning in console.

"no blocks annotations "

Something like this, I haven’t remembered the warning text

2 Likes

Thanks, working now. :heart:

1 Like

getting error

varsha@DESKTOP-JG5BBV1 MINGW64 /e/AIX/NewDYNAMICaix/AAAAAAA/sample
$ 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?[36m0ms?[30;1m]?[0m ?[30;1m[?[0m?[30;1m]?[0m
?[m
varsha@DESKTOP-JG5BBV1 MINGW64 /e/AIX/NewDYNAMICaix/AAAAAAA/sample
$

done now its working

hello developers i got error when i started build with kotlin

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

β€’ Build initialized

β”Œ Checking project files
β”‚ info Checking metadata file (rush.yml)
β”‚ info Checking AndroidManifest.xml file
β”” done
β”Œ Compiling sources
β”‚ info Picked 1 source file
β”‚ erro src\in\sonraj\exkotlin\ExKotlin.kt:1:9: package name must be a '.'-separated identifier list
β”‚      package in.sonraj.exkotlin
β”‚              ^
β”” failed

β€’ Build failed [3s 212ms] [1 error]

OK sorry for this i found solution -

package `in`.sonraj.exkotlin

Can We Compile Two Extension in One?

1 Like

A warning text :

 PS C:\Users\amd\Downloads\get-pkg> rush build
                      __
     _______  _______/ /_
    / ___/ / / / ___/ __ \
   / /  / /_/ (__  / / / /
  /_/   \__,_/____/_/ /_/

β€’ Build initialized

β”Œ Checking project files
β”‚ info Checking metadata file (rush.yml)
β”‚ info Checking AndroidManifest.xml file
β”” done
β”Œ Compiling sources
β”‚ info Picked 1 source file
β”‚ 
β”‚ warn No declaration of any block annotation found
β”” done
β”Œ Processing the extension
β”‚ info Linking extension assets
β”‚ info Generating DEX bytecode
β”” done
β”Œ Finalizing the build
β”‚ info Packing com.Shreya.getPkg.aix
β”” done

β€’ Build successful [2s 461ms] [1 warning]
PS C:\Users\amd\Downloads\get-pkg> 

here is aix file which not have any block inside
com.Shreya.getPkg.aix (4.5 KB)
here is aix file which have blocks inside
com.Shreya.getPkg.aix (4.6 KB)

logs for aix have blocks inside

PS C:\Users\amd\Downloads\get-pkg> rush build
                      __
     _______  _______/ /_
    / ___/ / / / ___/ __ \
   / /  / /_/ (__  / / / /
  /_/   \__,_/____/_/ /_/

β€’ Build initialized

β”Œ Checking project files
β”‚ info Checking metadata file (rush.yml)
β”‚ info Checking AndroidManifest.xml file
β”” done
β”Œ Compiling sources
β”‚ info Picked 1 source file
β”” done
β”Œ Processing the extension
β”‚ info Linking extension assets
β”‚ info Generating DEX bytecode
β”” done
β”Œ Finalizing the build
β”‚ info Packing com.Shreya.getPkg.aix
β”” done

β€’ Build successful [2s 428ms] 
PS C:\Users\amd\Downloads\get-pkg>

Just re-compile the aix file it’ll fixes the issue, As I already said above

Compiling two extensions in one will be possible with the next version, which I hope to release by the end of this month. Stay tuned.

6 Likes