Unable to produce AIX for extension when using Rush

fghdfh
I used this command rush build as nothing happens just success message, where is the aix file I can’t see?

It should be in the out directory.

2 Likes

I have checked that all the folders in my project are not receiving any .aix files, so I asked them when the rush build was successful why there is no demo.aix file?

where did I go wrong?

Can you try to build again, but this time pass the -r flag as well.

yes I ran the command rush build -r and nothing happened in the out directory

Can you please show me your extension’s code in the PM?

No I have not written anything in the .java file
package com.demo.abc.demo;

import com.google.appinventor.components.annotations.SimpleFunction;
import com.google.appinventor.components.runtime.AndroidNonvisibleComponent;
import com.google.appinventor.components.runtime.ComponentContainer;
import com.google.appinventor.components.runtime.errors.YailRuntimeError;
import com.google.appinventor.components.runtime.util.YailList;

public class Demo extends AndroidNonvisibleComponent {

  public Demo(ComponentContainer container) {
    super(container.$form());
  }

  @SimpleFunction(description = "Returns the sum of all integers from the given list.")
  public int SumAllIntegers(YailList intList) {
    int sum = 0;
    for (Object i : intList) {
      if (i instanceof Integer) {
        sum += (int) i;
      } else {
        throw new YailRuntimeError("Invalid value " + i + " in list 'intList' of method 'SumAllIntegers'.", "InvalidValue");
      }
    }
    return sum;
  }
}

Can you show me the rush.yml then?

name: Demo           # Caution: DO NOT change the name.
description: Extension component for Demo. Created using Rush.

# For a detailed info on this file and supported fields, check
# out this link: https://github.com/ShreyashSaitwal/rush-cli/wiki/Metadata-File

version:
  number: auto        # Auto increments version number when built with '-r' (or '--release') flag.
  name: 1

assets:
  icon: icon.png      # Extension icon
  # other:              # Extension asset(s)
  #   - my_awesome_asset.anything

authors:
  - abc

# deps:         # Dependencies should be first added to the "deps" folder
#   - my_awesome_library.jar

Umm, that’s confusing… Do you have Java JDK installed?

Is the version number required?
jhtrd

can you try java jdk version - 15.0.1

No need. JDK 8 is enough.

EDIT: @adwapbao Can you try building a new extension as see if it produces an AIX?

My computer runs in parallel 2 versions of java 8 and 15

Running two different JDKs does not make a difference.

3 Likes

Capture
I installed java version “1.8.0_121” and ran rush build as still not getting .aix file ,and I used my java code, you can java you can watch it on youtube “I don’t remember what it is”.

package com.ytthumb.adwapbao.ytthumb;

import com.google.appinventor.components.annotations.SimpleFunction;
import com.google.appinventor.components.runtime.AndroidNonvisibleComponent;
import com.google.appinventor.components.runtime.ComponentContainer;
import com.google.appinventor.components.runtime.errors.YailRuntimeError;
import com.google.appinventor.components.runtime.util.YailList;

public class YTthumb extends AndroidNonvisibleComponent {

  public YTthumb(ComponentContainer container) {
    super(container.$form());
  }

   @SimpleFunction
  public String GetThumbnail(String Videoid) {
    String make = "https://img.youtube.com/vi/" + Videoid + "/mqdefault.jpg";
    return make;
    
  }
}

i tried your way of saying, it same result is nothing, no .aix file

I have screenwritten the steps I took as still do not get the .aix file in the out folder

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

1 Like