Extension Stucked

Hello,
I always stuck when i try to create extensions ,
here is my error log

Buildfile: /home/Makeroid/appinventor/build.xml

extensions:

clean:

init:
[mkdir] Created dir: /home/Makeroid/appinventor/build/buildserver
[mkdir] Created dir: /home/Makeroid/appinventor/buildserver/build
[mkdir] Created dir: /home/Makeroid/appinventor/buildserver/build/classes
[mkdir] Created dir: /home/Makeroid/appinventor/buildserver/reports
[mkdir] Created dir: /home/Makeroid/appinventor/buildserver/reports/raw
[mkdir] Created dir: /home/Makeroid/appinventor/buildserver/reports/html

common_CommonUtils:

init:
[mkdir] Created dir: /home/Makeroid/appinventor/build/common
[mkdir] Created dir: /home/Makeroid/appinventor/common/build
[mkdir] Created dir: /home/Makeroid/appinventor/common/build/classes
[mkdir] Created dir: /home/Makeroid/appinventor/common/reports
[mkdir] Created dir: /home/Makeroid/appinventor/common/reports/raw
[mkdir] Created dir: /home/Makeroid/appinventor/common/reports/html

CommonUtils:
[mkdir] Created dir: /home/Makeroid/appinventor/common/build/classes/CommonUtils
[javac] Compiling 3 source files to /home/Makeroid/appinventor/common/build/classes/CommonUtils
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
[javac] 1 warning
[javac] Creating empty /home/Makeroid/appinventor/common/build/classes/CommonUtils/com/google/appinventor/common/utils/package-info.class
[jar] Building jar: /home/Makeroid/appinventor/build/common/CommonUtils.jar
[jar] Building jar: /home/Makeroid/appinventor/build/common/CommonUtils-gwt.jar

common_CommonVersion:

init:

CommonVersion:
[mkdir] Created dir: /home/Makeroid/appinventor/common/build/classes/CommonVersion
[mkdir] Created dir: /home/Makeroid/appinventor/common/build/src/com/google/appinventor/common/version
[copy] Copying 1 file to /home/Makeroid/appinventor/common/build/src/com/google/appinventor/common/version
[javac] Compiling 3 source files to /home/Makeroid/appinventor/common/build/classes/CommonVersion
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
[javac] 1 warning
[javac] Creating empty /home/Makeroid/appinventor/common/build/classes/CommonVersion/com/google/appinventor/common/version/package-info.class
[jar] Building jar: /home/Makeroid/appinventor/build/common/CommonVersion.jar
[jar] Building jar: /home/Makeroid/appinventor/build/common/CommonVersion-gwt.jar

CopyToRunLibDir:
[mkdir] Created dir: /home/Makeroid/appinventor/buildserver/build/run/lib
[copy] Copying 36 files to /home/Makeroid/appinventor/buildserver/build/run/lib

components_AndroidRuntime:

init:
[mkdir] Created dir: /home/Makeroid/appinventor/build/components
[mkdir] Created dir: /home/Makeroid/appinventor/components/build
[mkdir] Created dir: /home/Makeroid/appinventor/components/build/classes
[mkdir] Created dir: /home/Makeroid/appinventor/components/reports
[mkdir] Created dir: /home/Makeroid/appinventor/components/reports/raw
[mkdir] Created dir: /home/Makeroid/appinventor/components/reports/html

CommonConstants:
[mkdir] Created dir: /home/Makeroid/appinventor/components/build/classes/CommonConstants
[javac] Compiling 7 source files to /home/Makeroid/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 /home/Makeroid/appinventor/components/build/classes/CommonConstants/com/google/appinventor/components/common/package-info.class
[jar] Building jar: /home/Makeroid/appinventor/build/components/CommonConstants.jar
[jar] Building jar: /home/Makeroid/appinventor/build/components/CommonConstants-gwt.jar

HtmlEntities:
[mkdir] Created dir: /home/Makeroid/appinventor/components/build/classes/HtmlEntities
[javac] Compiling 1 source file to /home/Makeroid/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: /home/Makeroid/appinventor/components/build/HtmlEntities.jar

common_CommonVersion:

init:

CommonVersion:

AndroidRuntime:
[mkdir] Created dir: /home/Makeroid/appinventor/components/build/classes/AndroidRuntime
[javac] Compiling 362 source files to /home/Makeroid/appinventor/components/build/classes/AndroidRuntime
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
[javac] /home/Makeroid/appinventor/components/src/com/google/appinventor/components/runtime/OGridView.java:33: error: class GridView is public, should be declared in a file named GridView.java
[javac] public class GridView extends AndroidViewComponent implements AdapterView.OnItemClickListener {
[javac] ^
[javac] /home/Makeroid/appinventor/components/src/com/google/appinventor/components/runtime/OGridView.java:33: error: cannot find symbol
[javac] public class GridView extends AndroidViewComponent implements AdapterView.OnItemClickListener {
[javac] ^
[javac] symbol: class AndroidViewComponent
[javac] /home/Makeroid/appinventor/components/src/com/google/appinventor/components/runtime/OGridView.java:60: error: cannot find symbol
[javac] public GridView(ComponentContainer container) {
[javac] ^
[javac] symbol: class ComponentContainer
[javac] location: class GridView
[javac] /home/Makeroid/appinventor/components/src/com/google/appinventor/components/runtime/OGridView.java:27: error: cannot find symbol
[javac] @DesignerComponent(version = YaVersion.GRIDVIEW_COMPONENT_VERSION,
[javac] ^
[javac] symbol: variable GRIDVIEW_COMPONENT_VERSION
[javac] location: class YaVersion
[javac] /home/Makeroid/appinventor/components/src/com/google/appinventor/components/runtime/OGridView.java:131: error: cannot find symbol
[javac] defaultValue = Component.DEFAULT_VALUE_COLOR_BLACK)
[javac] ^
[javac] symbol: variable Component
[javac] location: class GridView
[javac] /home/Makeroid/appinventor/components/src/com/google/appinventor/components/runtime/OGridView.java:143: error: cannot find symbol
[javac] defaultValue = Component.FONT_DEFAULT_SIZE + “”)
[javac] ^
[javac] symbol: variable Component
[javac] location: class GridView
[javac] /home/Makeroid/appinventor/components/src/com/google/appinventor/components/runtime/OGridView.java:214: error: cannot find symbol
[javac] defaultValue = Component.DEFAULT_VALUE_COLOR_DEFAULT)
[javac] ^
[javac] symbol: variable Component
[javac] location: class GridView
[javac] /home/Makeroid/appinventor/components/src/com/google/appinventor/components/runtime/OGridView.java:75: error: cannot find symbol
[javac] BackgroundColor(Component.COLOR_DEFAULT);
[javac] ^
[javac] symbol: variable Component
[javac] location: class GridView
[javac] /home/Makeroid/appinventor/components/src/com/google/appinventor/components/runtime/OGridView.java:81: error: cannot find symbol
[javac] FontSize(Component.FONT_DEFAULT_SIZE);
[javac] ^
[javac] symbol: variable Component
[javac] location: class GridView
[javac] /home/Makeroid/appinventor/components/src/com/google/appinventor/components/runtime/OGridView.java:82: error: cannot find symbol
[javac] TextColor(COLOR_BLACK);
[javac] ^
[javac] symbol: variable COLOR_BLACK
[javac] location: class GridView
[javac] /home/Makeroid/appinventor/components/src/com/google/appinventor/components/runtime/OGridView.java:163: error: cannot find symbol
[javac] adapter = new MyAdapter(container.$context());
[javac] ^
[javac] symbol: variable container
[javac] location: class GridView
[javac] /home/Makeroid/appinventor/components/src/com/google/appinventor/components/runtime/OGridView.java:205: error: cannot find symbol
[javac] backgroundImageDrawable = MediaUtil.getBitmapDrawable(container.$form(), imagePath);
[javac] ^
[javac] symbol: variable container
[javac] location: class GridView
[javac] /home/Makeroid/appinventor/components/src/com/google/appinventor/components/runtime/OGridView.java:235: error: cannot find symbol
[javac] if (backgroundColor == Component.COLOR_DEFAULT) {
[javac] ^
[javac] symbol: variable Component
[javac] location: class GridView
[javac] /home/Makeroid/appinventor/components/src/com/google/appinventor/components/runtime/OGridView.java:330: error: method does not override or implement a method from a supertype
[javac] @Override
[javac] ^
[javac] /home/Makeroid/appinventor/components/src/com/google/appinventor/components/runtime/OGridView.java:347: error: cannot find symbol
[javac] EventDispatcher.dispatchEvent(this, “AfterPicking”, item);
[javac] ^
[javac] symbol: variable EventDispatcher
[javac] location: class GridView
[javac] /home/Makeroid/appinventor/components/src/com/google/appinventor/components/runtime/OGridView.java:358: error: cannot find symbol
[javac] private float fontSize=Component.FONT_DEFAULT_SIZE;
[javac] ^
[javac] symbol: variable Component
[javac] location: class GridView.MyAdapter
[javac] /home/Makeroid/appinventor/components/src/com/google/appinventor/components/runtime/OGridView.java:365: error: cannot find symbol
[javac] imageBackground = container.$context().getResources().getIdentifier(“ImageGallery_android_galleryItemBackground”, “styleable”, container.$context().getPackageName());
[javac] ^
[javac] symbol: variable container
[javac] location: class GridView.MyAdapter
[javac] /home/Makeroid/appinventor/components/src/com/google/appinventor/components/runtime/OGridView.java:365: error: cannot find symbol
[javac] imageBackground = container.$context().getResources().getIdentifier(“ImageGallery_android_galleryItemBackground”, “styleable”, container.$context().getPackageName());
[javac] ^
[javac] symbol: variable container
[javac] location: class GridView.MyAdapter
[javac] /home/Makeroid/appinventor/components/src/com/google/appinventor/components/runtime/OGridView.java:425: error: cannot find symbol
[javac] iv.setImageDrawable(MediaUtil.getBitmapDrawable(container.$form(), elements[index]));
[javac] ^
[javac] symbol: variable container
[javac] location: class GridView.MyAdapter
[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] 19 errors
[javac] 1 warning

please help me and help me to pass this error…
your answer is appreciated

Well looks like you are missing something here. Are you using IDE?

I am using kodular ide

Well you can import libraries to IDE. So you need to import the content into your file or build externally.

A list of libraries available is here (click tools and see this)

It means the code to import libraries is not sufficient???

I tried to build extensions externally but it showed me error saying that there is error in the file named build.xml, which is an app Inventor sources file…

You cannot import libarires not part of the list on IDE

Because there is nowhere to upload them. When compiled the other libbraries are bundled into the jar file. They need tobbe locally referenced not remotely.

Ok thanks for your help I will try to do so and as soon as I pass it I will mark you the solution

well there is nothing to try. Libraries can’t be imported into IDE.

Yeah I just experienced it

So what can I do now???

Use AppInventor Source Code to make The extension

You mean building extension from of pc without kodular ide???

1 Like

Yes, exactly

But as I said above it says that there is error in some line of build.xml file of app Inventor

It means that there is an error in your code not the build.xml

But it show the directory of the file which cause error and it it a file build.xml of app Inventor

This clearly says what your problem is. Fix this first then import all the necessary classes

1 Like

Then correct the line

/Boban

Build.xml is not my file it’s of app Inventor

I know, been there done that

/Boban