Error: Build.xml does not exist

I am getting error that build.xml doesn't exist i am using git bash -

arnavb@DESKTOP-3MQ4KKR MINGW64 ~
$ java -version
Picked up _JAVA_OPTIONS: -Xmx2048M
java version "1.8.0_291"
Java(TM) SE Runtime Environment (build 1.8.0_291-b10)
Java HotSpot(TM) 64-Bit Server VM (build 25.291-b10, mixed mode)

arnavb@DESKTOP-3MQ4KKR MINGW64 ~
$ javac -version
Picked up _JAVA_OPTIONS: -Xmx2048M
javac 1.8.0_291

arnavb@DESKTOP-3MQ4KKR MINGW64 ~
$ gcloud
/c/Users/arnavb/Desktop/ExtensionDev/google-cloud-sdk/bin/gcloud: line 181: exec: python: not found

arnavb@DESKTOP-3MQ4KKR MINGW64 ~
$ gcloud init
/c/Users/arnavb/Desktop/ExtensionDev/google-cloud-sdk/bin/gcloud: line 181: exec: python: not found

arnavb@DESKTOP-3MQ4KKR MINGW64 ~
$ $ git clone https://github.com/YOUR_USER_NAME/appinventor-sources.git
bash: $: command not found

arnavb@DESKTOP-3MQ4KKR MINGW64 ~
$ $ git clone https://github.com/YOUR_USER_NAME/appinventor-sources.git
bash: $: command not found

arnavb@DESKTOP-3MQ4KKR MINGW64 ~
$ git clone https://github.com/ArnavBhardwaj2009/appinventor-sources.git
fatal: destination path 'appinventor-sources' already exists and is not an empty directory.

arnavb@DESKTOP-3MQ4KKR MINGW64 ~
$ cd appinventor-sources

arnavb@DESKTOP-3MQ4KKR MINGW64 ~/appinventor-sources (master)
$ git remote add upstream https://github.com/mit-cml/appinventor-sources.git

arnavb@DESKTOP-3MQ4KKR MINGW64 ~/appinventor-sources (master)
$ cp sample- .gitignore .gitignore
cp: target '.gitignore' is not a directory

arnavb@DESKTOP-3MQ4KKR MINGW64 ~/appinventor-sources (master)
$ cp sample- .gitignore
cp: cannot stat 'sample-': No such file or directory

arnavb@DESKTOP-3MQ4KKR MINGW64 ~/appinventor-sources (master)
$ git submodule update --init

arnavb@DESKTOP-3MQ4KKR MINGW64 ~/appinventor-sources (master)
$ ant MakeAuthKey
Picked up _JAVA_OPTIONS: -Xmx2048M
Buildfile: build.xml does not exist!
Build failed

arnavb@DESKTOP-3MQ4KKR MINGW64 ~/appinventor-sources (master)
$ ant
Picked up _JAVA_OPTIONS: -Xmx2048M
Buildfile: build.xml does not exist!
Build failed

arnavb@DESKTOP-3MQ4KKR MINGW64 ~/appinventor-sources (master)
$

The build.xml is in appinventor-sources/appinventor you're executing it in appinventor-sources

so how to change the path ?

`

$ cd appinventor-sources/appinventor

` did not work

Run this cd appinventor && ant

image
did not work

The you might not have the repository cloned properly

so should i delete and clone it agin ??

Yes try recloning


altho i ahve deleted appinventor-sources and removed it from recycle bin i have even closed git bash and opened it again

Ufff, you are doing wrong, go to the folder where you cloned appinventor, then go to appinventor named folder, then right click and select git bash here, then it will work because the build.xml is located there

@Know_About_IT i deleted the source (advised by @Souvik_Bera) but i am not able to clone again
https://community.appinventor.mit.edu/uploads/default/original/3X/1/c/1c87a8b327a8cac7d181f6a677e78dbb1b3bbf4c.png

1 Like

You need to delete the appinventor sources folder, huh ! You need to do a lot of homework (Read the docs)

1 Like
arnavb@DESKTOP-3MQ4KKR MINGW64 ~
$ C:/Users/arnavb/Desktop/ExtensionDev/google-cloud-sdk/bin/java_dev_appserver.sh
C:/Users/arnavb/Desktop/ExtensionDev/google-cloud-sdk/bin/java_dev_appserver.sh: line 181: exec: python: not found

arnavb@DESKTOP-3MQ4KKR MINGW64 ~
$         --port=8888 --address=0.0.0.0 appengine/build/war/
bash: --port=8888: command not found

My build was succesful now i am trying run main server ut getting this error.
following the readme.md in appinventor-sources.

do i need to install python ?
cuz i already have it (version 3.7)

Have you downloaded Google cloud sdk ? If not, do so and if yes, try same command in cmd or powershell

yes i have downloaded it

btw when i execute the first line about gcloud sdk a blank popup cmd opens and closes after a few secs... thought it might be useful

You are doing a lot of mistakes in typing command, firstly, for you convenience as beginner, add the sdk in paths, then ur work will be easier, if u want me to help you better, give me you anydesk code in dm and I will help you do,

Regards

can you elaborate