Hello Extension developers,
I am newbie in extension development. today i am trying to create my 1st extension but i am getting error when compiling.
Here is error code
I am using IntelliaJ Idea to create extension.
My java code
package com.hello.myextension;
import com.google.appinventor.components.annotations.DesignerComponent;
import com.google.appinventor.components.annotations.SimpleObject;
import com.google.appinventor.components.annotations.SimpleFunction;
import com.google.appinventor.components.annotations.SimpleEvent;
import com.google.appinventor.components.annotations.SimpleProperty;
import com.google.appinventor.components.common.ComponentCategory;
import com.google.appinventor.components.runtime.AndroidNonvisibleComponent;
import com.google.appinventor.components.runtime.AndroidViewComponent;
import com.google.appinventor.components.runtime.ComponentContainer;
import com.google.appinventor.components.runtime.EventDispatcher;
@DesignerComponent(version = 1,
category = ComponentCategory.EXTENSION,
description = "",
nonVisible = true,
iconName = "")
@SimpleObject(external = true)
public class myextension extends AndroidNonvisibleComponent {
public myextension(ComponentContainer container) {
super(container.$form());
}
@SimpleFunction(description = "Simple addition of two numbers")
public int Add(int a, int b) {
return a + b;
}
}