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

I am trying to create an Android application only from the command line, using ant I have taken the following steps:

  • loading appcompat v7 and v4
  • I launched android update project --target 1 --path . --library ../../Downloads/android-sdk-linux/extras/android/support/v7/appcompat android update project --target 1 --path . --library ../../Downloads/android-sdk-linux/extras/android/support/v7/appcompat

Now when I run the ant debug command, 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 also tested this project

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

I'm specifically looking for answers on the command line, as the goal is to understand the "magic". Is there a problem with me, or am I missing something?

+5
source share
1 answer

in fact, itโ€™s โ€œnormalโ€ that the build.xml file is missing and you have to regenerate it yourself, for this you first go to the android-sdk-linux/extras/android/support/v7/appcompat , and then

android update project --target 1 -p .

replace 1 with your target number

+8
source

Source: https://habr.com/ru/post/1210067/


All Articles