Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invalid file: android-sdk-linux/extras/android/support/v7/appcompat/build.xml

I'm trying to create an Android application only from the command line, build with ant I've made these steps:

  1. downloading the appcompat v7 and v4
  2. I've run android update project --target 1 --path . --library ../../Downloads/android-sdk-linux/extras/android/support/v7/appcompat

Now when I run the command ant debug I get the following error message:

[dependency] ------------------
[dependency] Ordered libraries:
[dependency] 
[dependency] ------------------
     [echo] ----------
     [echo] Building Libraries with 'debug'...

BUILD FAILED
/home/xxxx/Downloads/android-sdk-linux/tools/ant/build.xml:601: Invalid file: /home/xxxx/Downloads/android-sdk-linux/extras/android/support/v7/appcompat/build.xml

I've tested also with this project

Using that, I got exactly the same error, and indeed the file "build.xml" is not present in that directory.

I'm specifically looking for command line answers as the goal is to understand "the magic". Does the problem come from me, or am I missing something ?

like image 874
allan.simon Avatar asked Dec 29 '14 20:12

allan.simon


1 Answers

actually it is "normal" that the build.xml is missing, and you have to regenerate it yourself, for this you first go in android-sdk-linux/extras/android/support/v7/appcompat directory and then

android update project --target 1 -p .

replace 1 by your target number

like image 123
allan.simon Avatar answered Nov 12 '22 08:11

allan.simon