Extension Stucked

I can consider the error in my this code but the problem is when I try to build a simple open source extension whose code is available at net even then it show error , it look like system do not want to build extensions for me​:pensive:

Suck, post the build.xml and on which line it gives error

/Boban

Yeah sure I will be posting it very soon

It do not belong to community

Oops sorry this was what i mean by it but i wrote it in swedish

/Boban

1 Like

The problem is not at our IDE.
The problem is in your source code.

4 Likes

Do you get something like this error?

pected
[javac] 'git <command> [<revision>...] -- [<file>...]'";
[javac]                  ^
[javac] D:\Apptools\appinventor-sources-master-20190428\appinventor\common\build\src\com\google\appinventor\common\version\GitBuildId.java:21: error: illegal start of type
[javac] 'git <command> [<revision>...] -- [<file>...]'";
[javac]                          ^
[javac] D:\Apptools\appinventor-sources-master-20190428\appinventor\common\build\src\com\google\appinventor\common\version\GitBuildId.java:21: error: <identifier> expected
[javac] 'git <command> [<revision>...] -- [<file>...]'";
[javac]                           ^
[javac] D:\Apptools\appinventor-sources-master-20190428\appinventor\common\build\src\com\google\appinventor\common\version\GitBuildId.java:21: error: ';' expected
[javac] 'git <command> [<revision>...] -- [<file>...]'";
[javac]                              ^
[javac] D:\Apptools\appinventor-sources-master-20190428\appinventor\common\build\src\com\google\appinventor\common\version\GitBuildId.java:21: error: illegal start of type
[javac] 'git <command> [<revision>...] -- [<file>...]'";
[javac]                                ^
[javac] D:\Apptools\appinventor-sources-master-20190428\appinventor\common\build\src\com\google\appinventor\common\version\GitBuildId.java:21: error: <identifier> expected
[javac] 'git <command> [<revision>...] -- [<file>...]'";
[javac]                                  ^
[javac] D:\Apptools\appinventor-sources-master-20190428\appinventor\common\build\src\com\google\appinventor\common\version\GitBuildId.java:21: error: ';' expected
[javac] 'git <command> [<revision>...] -- [<file>...]'";
[javac]                                    ^
[javac] D:\Apptools\appinventor-sources-master-20190428\appinventor\common\build\src\com\google\appinventor\common\version\GitBuildId.java:21: error: <identifier> expected
[javac] 'git <command> [<revision>...] -- [<file>...]'";
[javac]                                         ^
[javac] D:\Apptools\appinventor-sources-master-20190428\appinventor\common\build\src\com\google\appinventor\common\version\GitBuildId.java:21: error: illegal start of type
[javac] 'git <command> [<revision>...] -- [<file>...]'";
[javac]                                          ^
[javac] D:\Apptools\appinventor-sources-master-20190428\appinventor\common\build\src\com\google\appinventor\common\version\GitBuildId.java:21: error: <identifier> expected
[javac] 'git <command> [<revision>...] -- [<file>...]'";
[javac]                                             ^
[javac] D:\Apptools\appinventor-sources-master-20190428\appinventor\common\build\src\com\google\appinventor\common\version\GitBuildId.java:21: error: unclosed character literal
[javac] 'git <command> [<revision>...] -- [<file>...]'";
[javac]                                              ^
[javac] 27 errors
[javac] 1 warning

BUILD FAILED
D:\Apptools\appinventor-sources-master-20190428\appinventor\build.xml:40: The following error     occurred while executing this line:
D:\Apptools\appinventor-sources-master-20190428\appinventor\build-common.xml:344: The following error occurred while executing this line:
D:\Apptools\appinventor-sources-master-20190428\appinventor\common\build.xml:136: The following error occurred while executing this line:
D:\Apptools\appinventor-sources-master-20190428\appinventor\build-common.xml:125: Compile failed; see the compiler error output for details.

Total time: 2 seconds

Boban@Boban-PC MINGW64 /d/Apptools/appinventor-sources-master-20190428/appinventor (master)
$

/Boban

I just tried by downloading the latest and I got that error

GitBuildId.java is the cause for it

changes on row 14-23 in GitBuildId.java, from this

public final class GitBuildId {

  // The following values are set during the ant build.
  public static final String GIT_BUILD_VERSION = "fatal: No names found, cannot describe anything.";
  public static final String GIT_BUILD_FINGERPRINT = "HEAD
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'";
  public static final String ANT_BUILD_DATE = "April 28 2019";
  public static final String ACRA_URI = "${acra.uri}";

to this, row 14-20

public final class GitBuildId {

  // The following values are set during the ant build.
  public static final String GIT_BUILD_VERSION = "fatal: No names found, cannot describe anything.";
  public static final String GIT_BUILD_FINGERPRINT = "HEAD fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git <command> [<revision>...] -- [<file>...]'";
  public static final String ANT_BUILD_DATE = "April 28 2019";
  public static final String ACRA_URI = "${acra.uri}";

/Boban

I will be sure doing it thanks I am going to school and from there probably I could send the error log

This was the error when i tried manually in pc
BUILD FAILED C:\appinventor-sources\appinventor\build.xml:40: The following error occurred while executing this line: C:\appinventor-sources\appinventor\components\build.xml:55: The following error occurred while executing this line: C:\appinventor-sources\appinventor\build-common.xml:125: Compile failed; see the compiler error output for details.

i will try to do change the file as you discussed but before that i figured out some changes and now kodular ide show only 2 errors, so check if these can be figured out

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/GridView1.java:28: error: β€˜)’ expected
[javac] version = YaVersion.GridView1 _COMPONENT_VERSION,
[javac] ^
[javac] /home/Makeroid/appinventor/components/src/com/google/appinventor/components/runtime/GridView1.java:28: error: class, interface, or enum expected
[javac] version = YaVersion.GridView1 _COMPONENT_VERSION,
[javac] ^
[javac] 2 errors
[javac] 1 warning