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