When Compiled I get Errors

ant also causes error -

$ ant
Picked up _JAVA_OPTIONS: -Xmx2048M
Buildfile: C:\appinventor-sources\appinventor\build.xml

all:

init:

MakeWarLibsDir:

common_CommonUtils:

init:

CommonUtils:

common_CommonVersion:

init:

CommonVersion:

components_CommonConstants:

init:

CommonConstants:

WarLibs:

AiSharedLib:

AiServerLib:

components_AndroidRuntime:

common_CommonVersion:

init:

CommonVersion:

init:

HtmlEntities:

Barcode:

CopyComponentLibraries:

common_CommonUtils:

init:

CommonUtils:

CommonConstants:

AnnotationProcessors:

AndroidRuntime.uptodate:

AndroidRuntime:

AiClientLib:

AiRebindLib:

blocklyeditor_BlocklyTranslationGenerator:

CheckBlocklyTranslations:

init:

CheckBlocklyCompile:

BlocklyCompile:
     [java] Picked up _JAVA_OPTIONS: -Xmx2048M

BlocklyTranslationGenerator:

CheckDocs:

BuildDocs:
     [exec] Execute failed: java.io.IOException: Cannot run program "bundle" (in directory "C:\appinventor-sources\appinventor\docs\markdown"): CreateProcess error=2, The system cannot find the file specified
     [exec] Execute failed: java.io.IOException: Cannot run program "bundle" (in directory "C:\appinventor-sources\appinventor\docs\markdown"): CreateProcess error=2, The system cannot find the file specified

CopyToBuildWar:
     [copy] Copying 1 file to C:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\editor\youngandroid
Attempt to copy C:\appinventor-sources\appinventor\build\blocklyeditor\blockly-all.js to C:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\editor\youngandroid\blockly.js using NIO Channels failed due to 'C:\appinventor-sources\appinventor\build\blocklyeditor\blockly-all.js'.  Falling back to streams.

BUILD FAILED
C:\appinventor-sources\appinventor\build.xml:16: The following error occurred while executing this line:
C:\appinventor-sources\appinventor\appengine\build.xml:173: Failed to copy C:\appinventor-sources\appinventor\build\blocklyeditor\blockly-all.js to C:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\editor\youngandroid\blockly.js due to java.nio.file.AccessDeniedException C:\appinventor-sources\appinventor\build\blocklyeditor\blockly-all.js

Total time: 9 seconds

Have you changed any files, and are all of those directories writable?

nope

i dont know? :thinking:

well the main thing is that the blockly-all.js does not exists

Correct. It is built by the BlocklyCompile step, which appears in your output and doesn't indicate an error (otherwise the build would have stopped there). That's why I am wondering what the writable state of the build directories are and whether Windows is silently failing to write the file.

so what is the solution for it?

My preferred solution is to not use Windows...

You should verify that you own all of those directories and that you have write permissions for every directory, and that you are running the shell as your own user and not as an administrator.

1 Like

ok now i used powershell it worked but my antivirus software showed this - image

Well there's your problem...

is there any virus in it because antivirus software is deleting it everytime

No. Virus checking is a heuristic, and it's wrong. If you trust the antivirus software over the fact that you're building the source yourself, then I'd recommend you stop here and remove the sources from your computer.

2 Likes

ok thanks for help

hello sir @ewpatton i tried again but this time some other error came -

$ ant noplay
Picked up _JAVA_OPTIONS: -Xmx2048M
Buildfile: C:\AppInventorExtensions\appinventor-sources-master\appinventor\build.xml

noplay:

init:

MakeWarLibsDir:

common_CommonUtils:

init:

CommonUtils:

common_CommonVersion:

init:

CommonVersion:
     [exec] Result: 128
     [exec] Result: 128

components_CommonConstants:

init:

CommonConstants:

WarLibs:

AiSharedLib:

AiServerLib:

components_AndroidRuntime:

common_CommonVersion:

init:

CommonVersion:
     [exec] Result: 128
     [exec] Result: 128

init:

HtmlEntities:

Barcode:

CopyComponentLibraries:

common_CommonUtils:

init:

CommonUtils:

CommonConstants:

AnnotationProcessors:

AndroidRuntime.uptodate:

AndroidRuntime:
    [javac] Compiling 297 source files to C:\AppInventorExtensions\appinventor-sources-master\appinventor\components\build\classes\AndroidRuntime
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
    [javac] warning: In component FileMaker, event PermissionsNotGranted is missing a description.
    [javac] warning: In component FileMaker, method AskRequiredPermissions is missing a description.
    [javac] warning: In component FileMaker, method MakeFile is missing a description.
    [javac] warning: In component FileMaker, method EditFile is missing a description.
    [javac] warning: In component FileMaker, method ReadFile is missing a description.
    [javac] warning: In component FileMaker, method ChangeFileExtension is missing a description.
    [javac] warning: In component SpellChecker, event GotSuggestions is missing a description.
    [javac] warning: In component SpellChecker, method GetSuggestions is missing a description.
    [javac] Note: Wrote file file:/C:/AppInventorExtensions/appinventor-sources-master/appinventor/components/build/classes/AndroidRuntime/simple_components.json
    [javac] warning: In component FileMaker, event PermissionsNotGranted is missing a description.
    [javac] warning: In component FileMaker, method AskRequiredPermissions is missing a description.
    [javac] warning: In component FileMaker, method MakeFile is missing a description.
    [javac] warning: In component FileMaker, method EditFile is missing a description.
    [javac] warning: In component FileMaker, method ReadFile is missing a description.
    [javac] warning: In component FileMaker, method ChangeFileExtension is missing a description.
    [javac] warning: In component SpellChecker, event GotSuggestions is missing a description.
    [javac] warning: In component SpellChecker, method GetSuggestions is missing a description.
    [javac] Note: Wrote file file:/C:/AppInventorExtensions/appinventor-sources-master/appinventor/components/build/classes/AndroidRuntime/simple_components.txt
    [javac] Note: Wrote file file:/C:/AppInventorExtensions/appinventor-sources-master/appinventor/components/build/classes/AndroidRuntime/simple_components_build_info.json
    [javac] warning: In component FileMaker, event PermissionsNotGranted is missing a description.
    [javac] warning: In component FileMaker, method AskRequiredPermissions is missing a description.
    [javac] warning: In component FileMaker, method MakeFile is missing a description.
    [javac] warning: In component FileMaker, method EditFile is missing a description.
    [javac] warning: In component FileMaker, method ReadFile is missing a description.
    [javac] warning: In component FileMaker, method ChangeFileExtension is missing a description.
    [javac] warning: In component SpellChecker, event GotSuggestions is missing a description.
    [javac] warning: In component SpellChecker, method GetSuggestions is missing a description.
    [javac] Note: Wrote file file:/C:/AppInventorExtensions/appinventor-sources-master/appinventor/components/build/classes/AndroidRuntime/AutogeneratedOdeMessages.java
    [javac] Note: Wrote file file:/C:/AppInventorExtensions/appinventor-sources-master/appinventor/components/build/classes/AndroidRuntime/ComponentsTranslation.java
    [javac] warning: In component FileMaker, event PermissionsNotGranted is missing a description.
    [javac] warning: In component FileMaker, method AskRequiredPermissions is missing a description.
    [javac] warning: In component FileMaker, method MakeFile is missing a description.
    [javac] warning: In component FileMaker, method EditFile is missing a description.
    [javac] warning: In component FileMaker, method ReadFile is missing a description.
    [javac] warning: In component FileMaker, method ChangeFileExtension is missing a description.
    [javac] warning: In component SpellChecker, event GotSuggestions is missing a description.
    [javac] warning: In component SpellChecker, method GetSuggestions is missing a description.
    [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] 32 warnings
    [javac] Creating empty C:\AppInventorExtensions\appinventor-sources-master\appinventor\components\build\classes\AndroidRuntime\com\google\appinventor\components\runtime\util\package-info.class
    [javac] Creating empty C:\AppInventorExtensions\appinventor-sources-master\appinventor\components\build\classes\AndroidRuntime\com\google\appinventor\components\annotations\androidmanifest\package-info.class
    [javac] Creating empty C:\AppInventorExtensions\appinventor-sources-master\appinventor\components\build\classes\AndroidRuntime\com\google\appinventor\components\runtime\collect\package-info.class
    [javac] Creating empty C:\AppInventorExtensions\appinventor-sources-master\appinventor\components\build\classes\AndroidRuntime\com\google\appinventor\components\annotations\package-info.class
    [javac] Creating empty C:\AppInventorExtensions\appinventor-sources-master\appinventor\components\build\classes\AndroidRuntime\com\google\appinventor\components\runtime\package-info.class
    [javac] Creating empty C:\AppInventorExtensions\appinventor-sources-master\appinventor\components\build\classes\AndroidRuntime\com\google\appinventor\components\runtime\errors\package-info.class
      [jar] Building jar: C:\AppInventorExtensions\appinventor-sources-master\appinventor\build\components\AndroidRuntime.jar
     [copy] Copying 3 files to C:\AppInventorExtensions\appinventor-sources-master\appinventor\build\components
    [mkdir] Created dir: C:\AppInventorExtensions\appinventor-sources-master\appinventor\build\components\ComponentTranslation\src\com\google\appinventor\client
     [copy] Copying 2 files to C:\AppInventorExtensions\appinventor-sources-master\appinventor\build\components\ComponentTranslation\src\com\google\appinventor\client
     [copy] Copying 12 files to C:\AppInventorExtensions\appinventor-sources-master\appinventor\docs\markdown\reference\components

AiClientLib:
    [mkdir] Created dir: C:\AppInventorExtensions\appinventor-sources-master\appinventor\appengine\build\war\WEB-INF\classes
    [javac] Compiling 391 source files to C:\AppInventorExtensions\appinventor-sources-master\appinventor\appengine\build\war\WEB-INF\classes
    [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 C:\AppInventorExtensions\appinventor-sources-master\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\explorer\youngandroid\package-info.class
    [javac] Creating empty C:\AppInventorExtensions\appinventor-sources-master\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\editor\youngandroid\package-info.class
    [javac] Creating empty C:\AppInventorExtensions\appinventor-sources-master\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\explorer\commands\package-info.class
    [javac] Creating empty C:\AppInventorExtensions\appinventor-sources-master\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\boxes\package-info.class
    [javac] Creating empty C:\AppInventorExtensions\appinventor-sources-master\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\explorer\project\package-info.class
    [javac] Creating empty C:\AppInventorExtensions\appinventor-sources-master\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\package-info.class
    [javac] Creating empty C:\AppInventorExtensions\appinventor-sources-master\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\editor\package-info.class
    [javac] Creating empty C:\AppInventorExtensions\appinventor-sources-master\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\explorer\package-info.class
    [javac] Creating empty C:\AppInventorExtensions\appinventor-sources-master\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\editor\youngandroid\palette\package-info.class
    [javac] Creating empty C:\AppInventorExtensions\appinventor-sources-master\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\editor\simple\palette\package-info.class
    [javac] Creating empty C:\AppInventorExtensions\appinventor-sources-master\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\editor\simple\components\package-info.class
    [javac] Creating empty C:\AppInventorExtensions\appinventor-sources-master\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\editor\simple\package-info.class
    [javac] Creating empty C:\AppInventorExtensions\appinventor-sources-master\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\editor\youngandroid\properties\package-info.class
     [copy] Copying 1 file to C:\AppInventorExtensions\appinventor-sources-master\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor
     [copy] Copying 161 files to C:\AppInventorExtensions\appinventor-sources-master\appinventor\appengine\build\war\WEB-INF\classes
     [copy] Copied 15 empty directories to 9 empty directories under C:\AppInventorExtensions\appinventor-sources-master\appinventor\appengine\build\war\WEB-INF\classes

AiRebindLib:
    [mkdir] Created dir: C:\AppInventorExtensions\appinventor-sources-master\appinventor\appengine\build\classes\AiRebindLib
    [javac] Compiling 1 source file to C:\AppInventorExtensions\appinventor-sources-master\appinventor\appengine\build\classes\AiRebindLib
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
    [javac] 1 warning
      [jar] Building jar: C:\AppInventorExtensions\appinventor-sources-master\appinventor\appengine\build\AiRebindLib.jar

blocklyeditor_BlocklyTranslationGenerator:

CheckBlocklyTranslations:

init:
    [mkdir] Created dir: C:\AppInventorExtensions\appinventor-sources-master\appinventor\build\blocklyeditor
    [mkdir] Created dir: C:\AppInventorExtensions\appinventor-sources-master\appinventor\blocklyeditor\build
    [mkdir] Created dir: C:\AppInventorExtensions\appinventor-sources-master\appinventor\blocklyeditor\build\classes
    [mkdir] Created dir: C:\AppInventorExtensions\appinventor-sources-master\appinventor\blocklyeditor\reports
    [mkdir] Created dir: C:\AppInventorExtensions\appinventor-sources-master\appinventor\blocklyeditor\reports\raw
    [mkdir] Created dir: C:\AppInventorExtensions\appinventor-sources-master\appinventor\blocklyeditor\reports\html

CheckBlocklyCompile:

BlocklyCompile:
     [java] Picked up _JAVA_OPTIONS: -Xmx2048M
     [java] Exception in thread "main" java.lang.IllegalArgumentException: File not found at: C:\AppInventorExtensions\appinventor-sources-master\appinventor\blocklyeditor\..\lib\closure-library\closure\goog
     [java]     at com.google.common.base.Preconditions.checkArgument(Preconditions.java:88)
     [java]     at org.plovr.Manifest.getInputs(Manifest.java:393)
     [java]     at org.plovr.Manifest.getFiles(Manifest.java:369)
     [java]     at org.plovr.Manifest.getFiles(Manifest.java:363)
     [java]     at org.plovr.Manifest.getAllDependencies(Manifest.java:324)
     [java]     at org.plovr.Manifest.getInputsInCompilationOrder(Manifest.java:193)
     [java]     at org.plovr.Manifest.getCompilerArguments(Manifest.java:177)
     [java]     at org.plovr.CompileRequestHandler.compile(CompileRequestHandler.java:94)
     [java]     at org.plovr.cli.BuildCommand.runCommandWithOptions(BuildCommand.java:58)
     [java]     at org.plovr.cli.BuildCommand.runCommandWithOptions(BuildCommand.java:31)
     [java]     at org.plovr.cli.AbstractCommandRunner.runCommand(AbstractCommandRunner.java:41)
     [java]     at org.plovr.cli.Command.execute(Command.java:47)
     [java]     at org.plovr.cli.Main.mainWithExitCode(Main.java:56)
     [java]     at org.plovr.cli.Main.main(Main.java:30)

BUILD FAILED
C:\AppInventorExtensions\appinventor-sources-master\appinventor\build.xml:50: The following error occurred while executing this line:
C:\AppInventorExtensions\appinventor-sources-master\appinventor\build-common.xml:299: The following error occurred while executing this line:
C:\AppInventorExtensions\appinventor-sources-master\appinventor\blocklyeditor\build.xml:118: Java returned: 1

Total time: 15 seconds

try running
git submodule deinit --all
and after that
git submodule update --init

1 Like

thanks but my antivirus is deleting the file everytime i reported the issue to quick heal

1 Like

Whitelist the appinventor directory
as I have written here

:wink:

1 Like


@Pradevel pls help

this is not a command

have you installed google cloud SDK?

sorry i did not installed and i already received a message from @Pradevel for downloading it