Rush • A new and improved way of building extensions

Explain more?

1 Like

I get this compile error:

C:\Users\user\Desktop\Infox\Java\thesmall>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
│ 
│ ERR ..\..\..\..\AppData\Roaming\rush\workspaces\dev.kumaraswamy.thesmall\raw-classes\dev.kumaraswamy.thesmall\module-info.class : no such file or directory
└ Failed

• Build failed

Please be a bit more specific and tell me a bit more about your extension, libraries it uses, etc.

I am using GSON library of Google. Anyways, I created new project and it’s fine/

This changed my lifeee !!! Compilation of extensions is so easy with it, @Shreyash blessings from my side

:partying_face: :heartbeat: :hugs:

1 Like

So, @Shreyash I was excited to set it up but, encountered an error

C:\Users\ANSHU\Downloads>rush-init-win64.exe
__
_______ / /
/ / / / / / __
/ / / /
/ (
/ / / /
/
/ _
,
/
/
/ /
/

Please select the directory in which you wish to install Rush…
Downloading rush.exe…
Downloading Barcode.jar…
Downloading CommonVersion.jar…
Downloading QRGenerator.jar…
Downloading acra-4.4.0.jar…
Downloading android.jar…
Downloading androidsvg-1.2.1.jar…
Downloading androidsvg.jar…
Downloading annotation-1.0.0.jar…
Downloading annotation.jar…
Downloading annotations-v186a.jar…
Downloading appcompat.jar…
Downloading asynclayoutinflater.jar…
Downloading checker-compat-qual-2.5.5.jar…
Downloading collection-1.0.0.jar…
Downloading collection.jar…
Downloading commons-codec-1.11.jar…
Downloading commons-logging-1.2.jar…
Downloading commons-pool.jar…
Downloading commons-pool2-2.6.2.jar…
Downloading constraintlayout-solver-1.1.0.jar…
Downloading constraintlayout-solver.jar…
Downloading constraintlayout.jar…
Downloading coordinatorlayout.jar…
Downloading core-common-2.0.0.jar…
Downloading core-common.jar…
Downloading core-runtime.jar…
Downloading core.jar…
Downloading cursoradapter.jar…
Downloading customview.jar…
Downloading documentfile.jar…
Downloading drawerlayout.jar…
Downloading dx.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 firebase.jar…
Downloading fragment.jar…
Downloading fusiontables.jar…
Downloading google-api-client-1.31.1.jar…
Downloading google-api-client-android2-1.10.3-beta.jar…
Downloading google-api-client-android2-beta.jar…
Downloading google-api-client-beta.jar…
Downloading google-http-client-1.38.0.jar…
Downloading google-http-client-android2-beta.jar…
Downloading google-http-client-android3-beta.jar…
Downloading google-http-client-apache-v2-1.38.0.jar…
Downloading google-http-client-beta.jar…
Downloading google-http-client-jackson2-1.38.0.jar…
Downloading google-oauth-client-1.31.2.jar…
Downloading google-oauth-client-beta.jar…
Downloading grpc-context-1.22.1.jar…
Downloading gson-2.1.jar…
Downloading guava-14.0.1.jar…
Downloading guava-30.0-android.jar…
Downloading http-legacy.jar…
Downloading httpclient-4.5.13.jar…
Downloading httpcore-4.4.13.jar…
Downloading httpmime-4.3.4.jar…
Downloading httpmime.jar…
Downloading interpolator.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 jedis.jar…
Downloading json-20080701.jar…
Downloading json.jar…
Downloading jsr305-3.0.2.jar…
Downloading jts-core-1.16.1.jar…
Downloading jts.jar…
Downloading kawa-1.11-modified.jar…
Downloading kawa.jar…
Downloading legacy-support-core-ui.jar…
Downloading legacy-support-core-utils.jar…
Downloading lifecycle-common-2.0.0.jar…
Downloading lifecycle-common.jar…
Downloading lifecycle-livedata-core.jar…
Downloading lifecycle-livedata.jar…
Downloading lifecycle-runtime.jar…
Downloading lifecycle-viewmodel.jar…
Downloading listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar…
Downloading loader.jar…
Downloading localbroadcastmanager.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 osmdroid.jar…
Downloading physicaloid-library.jar…
Downloading physicaloid.jar…
Downloading print.jar…
Downloading runtime-v186a.jar…
Downloading slf4j-api-1.7.25.jar…
Downloading slidingpanelayout.jar…
Downloading swiperefreshlayout.jar…
Downloading tubesock-0.0.12.jar…
Downloading twitter4j.jar…
Downloading twitter4jmedia.jar…
Downloading vectordrawable-animated.jar…
Downloading vectordrawable.jar…
Downloading versionedparcelable.jar…
Downloading viewpager.jar…
Downloading webrtc.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…
Unhandled exception:
DioError [DioErrorType.response]: Http status error [404]
#0 DioMixin.assureDioError (package:dio/src/dio_mixin.dart:819)
#1 DioMixin._dispatchRequest (package:dio/src/dio_mixin.dart:678)

#2 DioMixin.fetch.. (package:dio/src/dio_mixin.dart:586)

#0 DioMixin.fetch. (package:dio/src/dio_mixin.dart:618)
#1 _RootZone.runBinary (dart:async/zone.dart:1617)
#2 _FutureListener.handleError (dart:async/future_impl.dart:166)
#3 Future._propagateToListeners.handleError (dart:async/future_impl.dart:716)
#4 Future._propagateToListeners (dart:async/future_impl.dart:737)
#5 Future._completeError (dart:async/future_impl.dart:547)
#6 _SyncCompleter._completeError (dart:async/future_impl.dart:61)
#7 _Completer.completeError (dart:async/future_impl.dart:33)
#8 Future.any.onError (dart:async/future.dart:466)
#9 _RootZone.runBinary (dart:async/zone.dart:1617)
#10 _FutureListener.handleError (dart:async/future_impl.dart:166)
#11 Future._propagateToListeners.handleError (dart:async/future_impl.dart:716)
#12 Future._propagateToListeners (dart:async/future_impl.dart:737)
#13 Future._completeError (dart:async/future_impl.dart:547)
#14 Future._chainForeignFuture. (dart:async/future_impl.dart:492)
#15 _microtaskLoop (dart:async/schedule_microtask.dart:40)
#16 _startMicrotaskLoop (dart:async/schedule_microtask.dart:49)
#17 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:120)
#18 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:402)
#19 _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:426)
#20 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:184)

Please help me, i m so excited to check it out, Is there any way to setup by downloading cloning it from github ? :sweat_smile:

awesome work

@Shreyash Thanks, now working after disabling antivirus

What could be the solution

Thanks for reporting this issue. Will be fixed for v1.1.1 (coming soon).

If you run “java -version” and it says “java” can’t be found, you have to add the Java “bin” path to your PATH environment variable.

1 Like

How will we upgrade ?

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

C:\Users\Rajesh>java -version
java version “1.8.0_291”
Java™ SE Runtime Environment (build 1.8.0_291-b10)
Java HotSpot™ Client VM (build 25.291-b10, mixed mode, sharing)

what happens when you run javac -version

“javac” isn’t used by Rush, if I’m correct. Also, “javac” is included with the Java installation itself.

‘javac’ is not recognized as an internal or external command,

The issue reported by @R_K1 has nothing to do with Java/JDK installation. I’ve identified the issue and it’ll be fixed in the upcoming release.

[quote=“Shreyash, post:307, topic:111470, full:true”]
Thanks for reporting this issue. Will be fixed for v1.1.1 (coming soon).
[/quote]

Edit: I’m sorry. I didn’t see this

@R_K1, please install JDK 8 (not JRE) to use Rush.

1 Like

@UsesPermissions(permissionNames = “android.permission.MODIFY_AUDIO_SETTINGS”)

When I add this line, I get a error,

│ ERR src\com\speaker.java:12: error: cannot find symbol
│ import com.google.appinventor.components.annotations.UsesPermissions;
│ ^
│ symbol: class UsesPermissions
│ location: package com.google.appinventor.components.annotations

│ ERR src\com\speaker.java:17: error: cannot find symbol
@UsesPermissions(permissionNames = “android.permission.MODIFY_AUDIO_SETTINGS”)
│ ^
│ symbol: class UsesPermissions
│ warning: The following options were not recognized by any processor: ‘[output, org, root, version, extName]’

│ Total error(s): 2
└ Failed

What could be the reason and how will I solve this?

see this - Rush • A new and improved way of building extensions - Extension Development - MIT App Inventor Community