Extension is not downloading after compilations

Extension is not downloading after compilations.

Hi @HarshVardhanSolanki ,
Sorry but could you please explain more, refer to this

clear cache and try again this should work or change the browser or give download permission and allow multiple downloads

The issue is in your code. Required annotations (@DesignerComponent, @SimpleObject) is missing. Add them and recompile.

Hope it helps?

1 Like
Started Compiling Project MarqueeExtension
Buildfile: /compiler/android/build.xml

javac:
[mkdir] Created dir: /compiler/android/build/pDsLW/classes
[javac] Compiling 1 source file to /compiler/android/build/pDsLW/classes
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
[javac] /compiler/android/src/pDsLW/com/hvs/MarqueeExtension/MarqueeExtension.java:9: error: cannot find symbol
[javac] import com.google.appinventor.components.runtime.ComponentCategory;
[javac] ^
[javac] symbol: class ComponentCategory
[javac] location: package com.google.appinventor.components.runtime
[javac] /compiler/android/src/pDsLW/com/hvs/MarqueeExtension/MarqueeExtension.java:15: error: cannot find symbol
[javac] category = ComponentCategory.EXTENSION,
[javac] ^
[javac] symbol: variable ComponentCategory
[javac] /compiler/android/src/pDsLW/com/hvs/MarqueeExtension/MarqueeExtension.java:15: error: an enum annotation value must be an enum constant
[javac] category = ComponentCategory.EXTENSION,
[javac] ^
[javac] 3 errors
[javac] 1 warning

This error shown.

Read the compiler logs, its very clear that you need to import the below line:

import com.google.appinventor.components.runtime.ComponentCategory;

After Adding this 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;
import com.google.appinventor.components.annotations.
;
import com.google.appinventor.components.runtime.;
import com.google.appinventor.components.common.
;

The code executed.

But after adding the ComponentCategory only it won’t works.

invoke: no method named `RegisterComponent’ in class com.hvs.GestureDetection.GestureDetection
Note: You will not see another error reported for 5 seconds.

This issue is providing me by the extension on testing.

Function Code Already in the file.

 @SimpleFunction(description = "Register a component with a unique ID for gesture detection.")
    public void RegisterComponent(int id, Component component) {
        registeredComponents.put(id, component);  // Store the component with its unique ID
    }

Giving me no download option after successful compilation.

Started Compiling Project RazorPayAdvanced
Buildfile: /compiler/androidX/build.xml

javac:
[mkdir] Created dir: /compiler/androidX/build/RpxTx/classes
[javac] Compiling 1 source file to /compiler/androidX/build/RpxTx/classes
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
[javac] Note: Wrote file file:/compiler/androidX/build/RpxTx/classes/simple_components.json
[javac] Note: Wrote file file:/compiler/androidX/build/RpxTx/classes/simple_components.txt
[javac] Note: Wrote file file:/compiler/androidX/build/RpxTx/classes/simple_components_build_info.json
[javac] Note: Wrote file file:/compiler/androidX/build/RpxTx/classes/AutogeneratedOdeMessages.java
[javac] Note: Wrote file file:/compiler/androidX/build/RpxTx/classes/ComponentsTranslation.java

process:
[mkdir] Created dir: /compiler/androidX/out/RpxTx
[mkdir] Created dir: /compiler/androidX/build/RpxTx/externalComponents
[mkdir] Created dir: /compiler/androidX/build/RpxTx/externalComponents-classes
[java]
[java] Extensions : Generating extensions

unjarAllExtensionLibraries:

jarAllExtensions:

dexAllExtensions:

extensions:

BUILD SUCCESSFUL
Total time: 0 seconds

I already use DesignerComponent and SimpleObject

The Niotron IDE is stable and working perfectly. The problem seems to be in your code. Until you show us the relevant code, we may not be able to help you.

The issue is fixed on PM via WhatsApp.