Unable to produce AIX for extension when using Rush

@Shreyash do you think having @adwapbao run rush build -x will work to see what’s wrong in this situation?

1 Like

#off-topic thanks for that command it works better than rush build

rush build -x just gives debug kind of information, nothing special?

3 Likes

no I still don’t see the .aix file when running rush build -x command

@adwapbao Can you please paste the output of rush build -x here?


As such, there’s nothing special with that flag. It’s just that it prints extra debug log as @hammerhai mentioned.

3 Likes

I have tried the following commands rush build, rush build -r, rush build -x, rush build -o
.aix file cannot be exported, you can watch the video I worked on before

That’s not what I asked for. :point_down:

By output, I mean the text output that you see in your terminal application after build command is executed.

1 Like
Admin@Admin MINGW64 /d/date/ytthumb
$ rush build -x
                      __
     _______  _______/ /_
    / ___/ / / / ___/ __ \
   / /  / /_/ (__  / / / /
  /_/   \__,_/____/_/ /_/

• Build initialized

┌ Validating project files
│
│  OKAY Metadata file (rush.yml)
│
│  OKAY AndroidManifest.xml file
└ Done
┌ Compiling Java files
└ Done
┌ Processing extension files
│  process:
│       [java] Exception in thread "main" java.nio.file.NoSuchFileException: C:\Users\Admin\AppData\Roaming\rush\workspaces\com.tythumb.abc.ytthumb\classes\simple_components.json
│       [java]  at sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
│       [java]  at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
│       [java]  at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
│       [java]  at sun.nio.fs.WindowsFileSystemProvider.newByteChannel(Unknown Source)
│       [java]  at java.nio.file.Files.newByteChannel(Unknown Source)
│       [java]  at java.nio.file.Files.newByteChannel(Unknown Source)
│       [java]  at java.nio.file.Files.readAllBytes(Unknown Source)
│       [java]  at io.shreyash.rush.ExtensionGenerator.readFile(ExtensionGenerator.java:255)
│       [java]  at io.shreyash.rush.ExtensionGenerator.main(ExtensionGenerator.java:25)
└ Done
┌ Converting Java bytecode to DEX bytecode
│
│
dexExt:
│       [java] Error in C:\Users\Admin\AppData\Roaming\rush\workspaces\com.tythumb.abc.ytthumb\raw\com.tythumb.abc.ytthumb\files\AndroidRuntime.jar:
│       [java] File not found: C:\Users\Admin\AppData\Roaming\rush\workspaces\com.tythumb.abc.ytthumb\raw\com.tythumb.abc.ytthumb\files\AndroidRuntime.jar
│       [java] Compilation failed
│
└ Done
┌ Finalizing the build
│
assemble:
│        [zip] Warning: skipping zip archive D:\date\ytthumb\out\com.tythumb.abc.ytthumb.aix because no files were included.
└ Done

• Build successful

Admin@Admin MINGW64 /d/date/ytthumb
$

I also had the same problem

@anon69541400 and @adwapbao, I’m investigating the issue where the AIX is not getting produced. I’ll release a fix once I get it resolved.

1 Like

@adwapbao Can you try creating an extension with Rush in the drive thats letter is “C:”? Don’t even change the files, just create and see if it builds.

i tried it in C: drive and nothing

That won’t make any difference. The problem is that the Java file for the extension isn’t getting compiled, and hence, no AIX in the out directory.

I just figured since it said something about the C: drive that it would, since they’re creating the project in a completely different drive.

Here I see the compile log with the error of missing file \ AndroidRuntime.jar.
Converting Java bytecode to DEX bytecode


dexExt:

│ [java] Error in C:\Users\Admin\AppData\Roaming\rush\workspaces\com.ytthumb\raw\com.ytthumb\files\AndroidRuntime.jar:
│ [java] File not found: C:\Users\Admin\AppData\Roaming\rush\workspaces\com.ytthumb\raw\com.ytthumb\files\AndroidRuntime.jar

│ [java] Compilation failed

└ Done
┌ Finalizing the build


assemble:
│ [zip] Warning: skipping zip archive D:\ex\ytthumb\out\com.ytthumb.aix because no files were included.
└ Done

I also have this issue. The extension doesn’t compile I mean the build is successful but there is not extension in out folder

1 Like

Thanks for reporting @zainulhassan. I’m investigating the issue.

2 Likes

i dont know why but it works for me
did you all add this line

-keeppackagenames gnu.kawa.functions.**
-keeppackagenames gnu.expr.**

to proguard-rules-pro ?

watch my video, I did and added that command and there is no .aix file watch min 4:07

1 Like

try creating a new project and then dont change it at all and then try?