Extension error

E:\appinventor-sources\appinventor>ant extenions
Buildfile: E:\appinventor-sources\appinventor\build.xml

BUILD FAILED
Target "extenions" does not exist in the project "AllProjects".

Total time: 0 seconds

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 292 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] E:\appinventor-sources\appinventor\components\src\com\sashi\geometry.java:100: error: class, interface, or enum expected
[javac] }package com.sashi.geo;
[javac] ^
[javac] E:\appinventor-sources\appinventor\components\src\com\sashi\geometry.java:103: error: class, interface, or enum expected
[javac] import com.google.appinventor.components.annotations.;
[javac] ^
[javac] E:\appinventor-sources\appinventor\components\src\com\sashi\geometry.java:104: error: class, interface, or enum expected
[javac] import com.google.appinventor.components.runtime.
;
[javac] ^
[javac] E:\appinventor-sources\appinventor\components\src\com\sashi\geometry.java:105: error: class, interface, or enum expected
[javac] import com.google.appinventor.components.common.*;
[javac] ^
[javac] 4 errors
[javac] 1 warning

It shows Error while compiling

Have you correctly downloaded all the dependencies?
What git command did you use to clone the extension template? Or you downloaded the .zip from GitHub?

Yesterday it was working now it shows error

Try removing the "}" from this line

pls show your full code

Think about what has changed between when it was working and now.

You have defined package on 100th line?

You misspelled extensions as extenions...

1 Like

You will have to add a * between period and semicolon.
Same applies for other imports.
Can you post your code?

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.