AIX Generator | AI That Builds App Inventor Extensions Automatically | From Visual Apps to Native Power

Error: ENOENT: no such file or directory, open '/tmp/ext_xxx/assets/images/media.png

Here’s a clean and clear version in English, tailored for AixGenerator documentation or guidelines:


Icon Reference Requirement for AixGenerator Extensions

In AixGenerator, the icon reference in extensions must always be declared exactly as shown below:

@DesignerComponent(
        version = 1,
        description = "Simple extension to convert words (pt-BR) into integer numbers (long)",
        iconName = "icon.png"
)

:white_check_mark: Important rule
The icon file must be named exactly:

icon.png

And it must be correctly included in the extension assets.
No other file name or path should be used.


Common Error and How to Fix It

If you encounter an error similar to the one below:

{
  "error": "ENOENT: no such file or directory, open '/tmp/ext_26398728_2ca9eed9-ba47-4bf5-964b-aef11a9d1022_1769270441883/assets/images/media.png'",
  "fastLogs": "",
  "packageName": "com.yourpackage",
  "extensionName": "ExoVideoPlayer"
}

:mag: What this means
This error usually indicates that the extension is trying to load an icon file that does not exist or is incorrectly referenced.

:white_check_mark: What the user must check

  • Ensure the icon file is named exactly: icon.png

  • Ensure the annotation uses:

    iconName = "icon.png"
    
  • Make sure the file is present in the correct extension assets directory


:bulb: Tip
Most ENOENT icon-related errors in AixGenerator are caused by:

  • Wrong icon file name
  • Wrong icon path
  • Using a name different from icon.png

Keeping this standard avoids build and packaging issues.