What is the error in this extension code

I want to know that what is the error in this code. I want to build an extension which calculates the length of a text.

/** ~~~~~

  • Created with the AppyBuilder Code Editor.
  • This is a template for basic Extension.
  • Modify this template to customize your extension.
  • **** NOTE: DO NOT use a package name.
  • **** The package name will be created for you automatically.
  • **** Adding a package name will cause a compile error
    import android.content.Context;
    import android.util.Log;
    import com.google.appinventor.components.annotations.
    import com.google.appinventor.components.runtime.*;
    import com.google.appinventor.components.common.ComponentCategory;

@DesignerComponent(version = 1, description = “This Extension was created with the AppyBuilder Code Editor.
” +
“Create your own here:
category = ComponentCategory.EXTENSION,
nonVisible = true, iconName = “http://appyBuilder.com/extensions/icons/extension.png”)
@SimpleObject(external = true)
public class Akshat_rana_all_in_one_tool_calculator extends AndroidNonvisibleComponent {
private ComponentContainer container;
* @param container container, component will be placed in
public Akshat_rana_all_in_one_tool_calculator(ComponentContainer container) {
this.container = container;

@SimpleFunction(description = "Returns the length of a text")
public int LengthOfText(String = Text ){
  int TextLength = Text.length();
  return TextLength;


I think you dont have any experience in java !:thinking:

Just took some guides first

Btw here is the error Fix : :eyes:



Thankyou i am new to java :smiley:

If you got the answer mark my post as solution :sunglasses: