Error importing any Extension

I was normally using extensions that are in the community, but now with this latest update when using the Companion (it does the loading process by scanning the QR) but it does not load the project when the loading is finished. I was testing with an empty project and everything works fine, but as soon as I upload an extension the Companion no longer loads.


When I use the Companion everything works if I don’t add an extension

I made this simple extension in Niotron IDE, but it doesn’t work when using Companion either

package com.cqf.testextension;

import android.app.Activity;
import android.content.Context;
import com.google.appinventor.components.annotations.*;
import com.google.appinventor.components.common.ComponentCategory;
import com.google.appinventor.components.runtime.AndroidNonvisibleComponent;
import com.google.appinventor.components.runtime.ComponentContainer;
import com.google.appinventor.components.runtime.EventDispatcher;

@DesignerComponent(
        version = 1,
        description = "",
        category = ComponentCategory.EXTENSION,
        nonVisible = true,
        iconName = "")

@SimpleObject(external = true)
//Libraries
@UsesLibraries(libraries = "")
//Permissions
@UsesPermissions(permissionNames = "")

public class TestExtension extends AndroidNonvisibleComponent {

    //Activity and Context
    private Context context;
    private Activity activity;

    public TestExtension(ComponentContainer container){
        super(container.$form());
        this.activity = container.$context();
        this.context = container.$context();
    }

    @SimpleFunction(description = "Sample Function Generated by Niotron")
    public String Welcome(String name) {
        return "Hello " + name;
    }
}

But if I remove the extension or any other extension the Companion works again

I’ll have a look

I have checked into it and imported new extension but cant reproduce the bug

I tried it in Beta and the same thing happens to me

I’ve been testing and it seems that it doesn’t work on some devices, I tried on the android 14 emulator and it works there but on my samsung a52 it doesn’t work. I also found this post on ai2 maybe that’s the problem, see if you can please check and give a solution. Thanks