My Appserver is not running

have you builded app inventor successfully?

Yeah, Already. Let me run ant again.

it showing me this error

BUILD FAILED
C:\Users\dhana\Desktop\appinventor-sources\appinventor\build.xml:16: The following error occurred while executing this line:
C:\Users\dhana\Desktop\appinventor-sources\appinventor\appengine\build.xml:258: Warning: Could not find file C:\Users\dhana\Desktop\appinventor-sources\appinventor\lib\protobuf\protobuf-2.6.1.jar to copy.

does renaming the protobuf jar will work ??

this error comes many time while running ant .Does anyone helps me in solving this error.

java.lang.OutOfMemoryError

my pc details -

sir @ewpatton please see this error once

See this post:

My value - <jvmarg value="-Xmx4G" />
but it also show the same error. Please Help me

the problem is solved but now, it shows Build Failed.

BUILD FAILED
C:\Users\dhana\Desktop\appinventor-sources\appinventor\build.xml:17: The following error occurred while executing this line:
C:\Users\dhana\Desktop\appinventor-sources\appinventor\blocklyeditor\build.xml:65: java.nio.file.NoSuchFileException: C:\Users\dhana\Desktop\appinventor-sources\appinventor\lib\blockly\msg\json\en.json
        at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:79)
        at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
        at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
        at sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:230)
        at java.nio.file.Files.newByteChannel(Files.java:361)
        at java.nio.file.Files.newByteChannel(Files.java:407)
        at java.nio.file.Files.readAllBytes(Files.java:3152)
        at msg.BlocklyTranslationGenerator.main(BlocklyTranslationGenerator.java:31)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:221)
        at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:154)
        at org.apache.tools.ant.taskdefs.Java.run(Java.java:834)
        at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:228)
        at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:137)
        at org.apache.tools.ant.taskdefs.Java.execute(Java.java:110)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:435)
        at org.apache.tools.ant.Target.performTasks(Target.java:456)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
        at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:435)
        at org.apache.tools.ant.Target.performTasks(Target.java:456)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
        at org.apache.tools.ant.Main.runBuild(Main.java:857)
        at org.apache.tools.ant.Main.startAnt(Main.java:236)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:287)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:113)

Total time: 5 minutes 54 seconds

dhana@DESKTOP-VJFLGMK MINGW64 ~/Desktop/appinventor-sources/appinventor (master)
$

Please Solve this error

Which command you had ran?

1 Like

I ran ant . I have downloaded the appinventor sources again. Now, going to run it again

Any other?

Make sure you are in proper directly and before ant command run this one
$ git remote add upstream https://github.com/mit-cml/appinventor-sources.git

I have run it again and it says that something like "remote git already"

$ git submodule update --init

Run this one

Then make sure you are in appinventor-source/appinventor directory and run this..
$ ant MakeAuthKey

I setup my sources again and it starts working but the components which is added newly. it shows me a error.

notes = Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36
foundIn = v185a-26-g5c9435a0
faultData = java.lang.UnsupportedOperationException: unknown component: AnimationUtilities
projectId = -1

What does this mean ??

Is there anything I am missing (There is no error while running ant extensions and ant)

ant extensions is not command for adding new components

Most probably this error occurs when you specify that a component is visible, but don't add a mock for this component, and therefore, an exception is thrown here. If you mean to make this component visible, you should create a new mock file inside simple/components directory, and edit the SimpleComponentDescriptor to create the mock in case the component type is equal to "AnimationUtilities". If you didn't meant to make the component is visible, you just need the need specify that the component is nonVisible from the designerComponent annotation:

@DesignerComponent(version = YaVersion.COMPONENT_VERSION,
   description = "",
   category = ComponentCategory.SOMECATEGORY,
   nonVisible = true,
   iconName = "")

And make your component class a subclass if the AndroidNonvisibleComponent class:

public class Component extends AndroidNonvisibleComponent {
1 Like

Thanks to @vknow360, @preetvadaliya , @MohamedTamer , @bartmathijssen and @ewpatton

Question :

Why there is a limit to mark only one answer as a Solution :sob:. Please Increase It :star_struck: :star_struck:

1 Like

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