It showed Build Successful But there is no Extension in Extension Folder
Try:
ant MakeAuthKey
Please See my Updated post That one is solved
Make sure extension object is defined as external.
At a minimum, you'll need the following annotations on the object:
@DesignerComponent(version = 1, nonVisible = true, category = ComponentCategory.EXTENSION)
@SimpleObject(external = true)
public class MyExtension extends AndroidNonvisibleComponent {
// ...
}
If you're using the extension template, ant
is sufficient. If you're building in the App Inventor source tree, you need to use ant extensions
.
It shows Successful but there is not extension in extension folder
Compile code @ewpatton
E:\appinventor-sources\appinventor>ant extensions
Buildfile: E:\appinventor-sources\appinventor\build.xml
extensions:
clean:
[delete] Deleting directory E:\appinventor-sources\appinventor\build\components
[delete] Deleting directory E:\appinventor-sources\appinventor\components\build
[delete] Deleting directory E:\appinventor-sources\appinventor\components\reports
common_CommonVersion:
init:
CommonVersion:
init:
[mkdir] Created dir: E:\appinventor-sources\appinventor\build\components
[mkdir] Created dir: E:\appinventor-sources\appinventor\components\build
[mkdir] Created dir: E:\appinventor-sources\appinventor\components\build\classes
[mkdir] Created dir: E:\appinventor-sources\appinventor\components\reports
[mkdir] Created dir: E:\appinventor-sources\appinventor\components\reports\raw
[mkdir] Created dir: E:\appinventor-sources\appinventor\components\reports\html
HtmlEntities:
[mkdir] Created dir: E:\appinventor-sources\appinventor\components\build\classes\HtmlEntities
[javac] Compiling 1 source file to E:\appinventor-sources\appinventor\components\build\classes\HtmlEntities
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
[javac] 1 warning
[jar] Building jar: E:\appinventor-sources\appinventor\components\build\HtmlEntities.jar
Barcode:
[mkdir] Created dir: E:\appinventor-sources\appinventor\components\build\classes\Barcode
[javac] Compiling 40 source files to E:\appinventor-sources\appinventor\components\build\classes\Barcode
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 warning
[jar] Building jar: E:\appinventor-sources\appinventor\build\components\deps\Barcode.jar
CopyComponentLibraries:
[copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
[copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
[copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
[copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps\armeabi-v7a
[copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps\arm64-v8a
[copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps\x86_64
[copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
[copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
[copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
[copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
[copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
[copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
[copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
[copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
[copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
[copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
[copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
[copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
[copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
[copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
[copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
[copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
[copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
[copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
[copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
[copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
[copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
[copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
[copy] Copying 59 files to E:\appinventor-sources\appinventor\build\components\deps
[copy] Copying 2 files to E:\appinventor-sources\appinventor\build\components\deps
[copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
[copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
[copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
[copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
[copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
[copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
common_CommonUtils:
init:
CommonUtils:
CommonConstants:
[mkdir] Created dir: E:\appinventor-sources\appinventor\components\build\classes\CommonConstants
[javac] Compiling 7 source files to E:\appinventor-sources\appinventor\components\build\classes\CommonConstants
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
[javac] 1 warning
[javac] Creating empty E:\appinventor-sources\appinventor\components\build\classes\CommonConstants\com\google\appinventor\components\common\package-info.class
[jar] Building jar: E:\appinventor-sources\appinventor\build\components\CommonConstants.jar
[jar] Building jar: E:\appinventor-sources\appinventor\build\components\CommonConstants-gwt.jar
AnnotationProcessors:
[mkdir] Created dir: E:\appinventor-sources\appinventor\components\build\classes\AnnotationProcessors
[javac] Compiling 41 source files to E:\appinventor-sources\appinventor\components\build\classes\AnnotationProcessors
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
[javac] Note: E:\appinventor-sources\appinventor\components\src\com\google\appinventor\components\scripts\ComponentProcessor.java uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: E:\appinventor-sources\appinventor\components\src\com\google\appinventor\components\scripts\ComponentProcessor.java uses unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 warning
[javac] Creating empty E:\appinventor-sources\appinventor\components\build\classes\AnnotationProcessors\com\google\appinventor\components\annotations\androidmanifest\package-info.class
[javac] Creating empty E:\appinventor-sources\appinventor\components\build\classes\AnnotationProcessors\com\google\appinventor\components\annotations\package-info.class
[javac] Creating empty E:\appinventor-sources\appinventor\components\build\classes\AnnotationProcessors\com\google\appinventor\components\scripts\package-info.class
[copy] Copying 22 files to E:\appinventor-sources\appinventor\components\build\classes\AnnotationProcessors
[jar] Building jar: E:\appinventor-sources\appinventor\components\build\AnnotationProcessors.jar
AndroidRuntime.uptodate:
AndroidRuntime:
[mkdir] Created dir: E:\appinventor-sources\appinventor\components\build\classes\AndroidRuntime
[javac] Compiling 291 source files to E:\appinventor-sources\appinventor\components\build\classes\AndroidRuntime
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
[javac] Note: Wrote file file:/E:/appinventor-sources/appinventor/components/build/classes/AndroidRuntime/simple_components.json
[javac] Note: Wrote file file:/E:/appinventor-sources/appinventor/components/build/classes/AndroidRuntime/simple_components.txt
[javac] Note: Wrote file file:/E:/appinventor-sources/appinventor/components/build/classes/AndroidRuntime/simple_components_build_info.json
[javac] Note: Wrote file file:/E:/appinventor-sources/appinventor/components/build/classes/AndroidRuntime/AutogeneratedOdeMessages.java
[javac] Note: Wrote file file:/E:/appinventor-sources/appinventor/components/build/classes/AndroidRuntime/ComponentsTranslation.java
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] Creating empty E:\appinventor-sources\appinventor\components\build\classes\AndroidRuntime\com\google\appinventor\components\runtime\util\package-info.class
[javac] Creating empty E:\appinventor-sources\appinventor\components\build\classes\AndroidRuntime\com\google\appinventor\components\annotations\androidmanifest\package-info.class
[javac] Creating empty E:\appinventor-sources\appinventor\components\build\classes\AndroidRuntime\com\google\appinventor\components\runtime\collect\package-info.class
[javac] Creating empty E:\appinventor-sources\appinventor\components\build\classes\AndroidRuntime\com\google\appinventor\components\annotations\package-info.class
[javac] Creating empty E:\appinventor-sources\appinventor\components\build\classes\AndroidRuntime\com\google\appinventor\components\runtime\package-info.class
[javac] Creating empty E:\appinventor-sources\appinventor\components\build\classes\AndroidRuntime\com\google\appinventor\components\runtime\errors\package-info.class
[jar] Building jar: E:\appinventor-sources\appinventor\build\components\AndroidRuntime.jar
[copy] Copying 3 files to E:\appinventor-sources\appinventor\build\components
[mkdir] Created dir: E:\appinventor-sources\appinventor\build\components\ComponentTranslation\src\com\google\appinventor\client
[copy] Copying 2 files to E:\appinventor-sources\appinventor\build\components\ComponentTranslation\src\com\google\appinventor\client
[copy] Copying 11 files to E:\appinventor-sources\appinventor\docs\markdown\reference\components
ExternalComponentGenerator:
[mkdir] Created dir: E:\appinventor-sources\appinventor\components\build\classes\ExternalComponentGenerator
[mkdir] Created dir: E:\appinventor-sources\appinventor\components\build\externalComponents
[mkdir] Created dir: E:\appinventor-sources\appinventor\components\build\externalComponents-class
[javac] Compiling 1 source file to E:\appinventor-sources\appinventor\components\build\classes\ExternalComponentGenerator
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
[javac] 1 warning
[java]
[java] Extensions : Generating extensions
unjarAllExtensionLibraries:
jarAllExtensions:
dexAllExtensions:
extensions:
[mkdir] Created dir: E:\appinventor-sources\appinventor\components\build\extensions
BUILD SUCCESSFUL
Total time: 25 seconds
The ExternalComponentGenerator is not picking up your extension class. Please post the preamble of your extension Java file here (everything up to and include the public class
declaration).
You can Also Give me dummy code I just want test
package io.kodular; // package of the extension will be "com.kodular.SimpleMaths"
// Only these imports are required to interact with Kodular
import com.google.appinventor.components.annotations.;
import com.google.appinventor.components.runtime.;
import com.google.appinventor.components.common.*;
@DesignerComponent(version = 1, // Update version here, You must do for each new release to upgrade your extension
description = "Simple Maths extension created by you",
category = ComponentCategory.EXTENSION,
nonVisible = true,
iconName = "images/extension.png") // Change your extension's icon from here; can be a direct url
@SimpleObject(external = true)
public class SimpleMaths extends AndroidNonvisibleComponent {
public SimpleMaths(ComponentContainer container) {
super(container.$form());
}
@SimpleFunction(description = "Simple addition of two numbers")
public int Add(int a, int b) {
return a + b;
}
@SimpleFunction(description = "Simple subtraction of two numbers")
public int Subtract(int a, int b) {
return a - b;
}
Problem Solved
Because of wrong Package Name
Can you tell us what solved the problem so that anyone with the same problem can know when they see this topic.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.