- ant cannot find android sdk, ubuntu
- В Android SDK внезапно отсутствует папка ant /. Удалил ли Google его?
- Cannot find %ANDROID_SDK%\tools\ant\build.xml #462
- Comments
- man2 commented Apr 22, 2017 •
- man2 commented Apr 22, 2017
- madrazo commented Apr 27, 2017
- madrazo commented May 11, 2017
- hughsando commented May 12, 2017 •
- hughsando commented May 12, 2017
- Android BUILD FAILED Cannot find build.xml
- Brett
- Monsi
- Brett
- Brett
- santiagolemos123
- Brett
- santiagolemos123
- Brett
- Brett
- Brett
- cant find android sdk build-tools
- 5 Answers 5
ant cannot find android sdk, ubuntu
I used to do android development using Netbeans in Fedora 17, I wanted to move to Ubuntu. So I zipped my project, installed Ubuntu 12.04.4, jdk7u51, android sdk, netbeans 7.4, the problem is: when I am trying to compile my unzipped project:
/home/vitali/Documents/android-sdk-linux/tools/ant/build.xml:471: The following error occurred while executing this line:
/home/vitali/Documents/android projects/ProjectName/build.xml:90: Cannot find /home/vitali/development/android-sdk-linux/tools/ant/build.xml imported from /home/vitali/Documents/android projects/ProjectName/build.xml
where: /home/vitali/Documents/android projects/ProjectName is path to the project now in Ubuntu
/home/vitali/development/android-sdk-linux is the old path which was in Fedora to android-sdk
/home/vitali/Documents/android-sdk-linux is the new one in Ubuntu
Can anybody tell me why ant is looking android sdk using the old path and how to fix it?
Each time I go in NetBeans tools/sdk manager it asks me to locate android sdk, I do this, then when I reopen NetBeans it happens again, so it doesn’t save the path to sdk.
in NetBeans file local.properties has the right path to sdk, but is ignored (I don’t know how to fix it).
I created env. variable ANDROID_HOME with path to sdk (export ANDROID_HOME=/home/vitali/Documents/android-sdk-linux) but after rebooting computer this variable disappears.
my PATH env. variable:
PATH=/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/vitali/Documents/android-sdk-linux/tools:/home/vitali/Documents/android-sdk-linux/platform-tools
Has anyone had this problem before?
update (android update project -p path) doesn’t help.
Источник
В Android SDK внезапно отсутствует папка ant /. Удалил ли Google его?
Я пробовал компилировать основной проект libreoffice (выбирая модуль Android) (с make , еще не включенным Gradle), и я получаю эту ошибку:
/home/aleksandar/libreoffice/workdir/UnpackedTarball/owncloud_android_lib/build.xml:90: Cannot find /home/aleksandar/Android/Sdk/tools/ant/build.xml imported from /home/aleksandar/libreoffice/workdir/UnpackedTarball/owncloud_android_lib/build.xml
Когда я просматривал свой SDK, я понял, что /Sdk/tools/ant даже не существует. Так оно и должно быть?
Я не уверен, почему он вызывает эту ошибку сейчас, особенно, что я много раз строил проект без каких-либо проблем. Единственное, что я знаю об этом, было изменено, так это то, что я обновил все инструменты (SDK и NDK). Было ли какое-либо обратное изменение совместимости во время публикации этого сообщения (март 2017 года)? Возможно, это изменение исходного кода, которое ввело ошибку, но я уверен, что это уже будет замечено, и это продолжается уже пару дней … Кто-нибудь сталкивался с подобной проблемой?
Команда Android решила удалить все старые и устаревшие скрипты из SDK в мартовской версии 25.3.0 SDK Tools
- Утилиты устаревших / устаревших были удалены:
- андроид
- Ddms (вместо этого см. Использование DDMS)
- Draw9patch (вместо этого нарисуйте 9-патч)
- Hierarchyviewer (вместо этого просмотрите профиль своего макета с помощью средства просмотра иерархии)
- Traceview (вместо этого просмотрите профилирование с помощью Traceview и dmtracedump)
- Скрипты ant
- Шаблоны проектов и действий
Здесь вы можете скачать более старую версию:
Источник
Cannot find %ANDROID_SDK%\tools\ant\build.xml #462
Comments
man2 commented Apr 22, 2017 •
Cannot find %ANDROID_SDK%\tools\ant\build.xml imported from bin\android\MyProject\build.xml
Got this error error when building my project to Android
hxcpp: [3.4.64]
nme: [5.7.1]
Android SDK Build Tools 25.0.2 ( tried with 24.0.3 and 23.0.3 same results )
ant 1.10.1
ndk r10e
jdk1.8.0_131 32 bit
What could possibly go wrong?
The text was updated successfully, but these errors were encountered:
man2 commented Apr 22, 2017
downgrading android sdk seems to solve the problem, should I close it?
madrazo commented Apr 27, 2017
Last time I used 25.0.0 ok. Maybe ANDROID_SDK is not set. i only have ANDROID_SDK_ROOT on my environment variables, but I have ANDROID_SETUP, ANDROID_NDK_ROOT, ANT_HOME, ANDROID_SDK, ANDROID_HOME on my .hxcpp_config
madrazo commented May 11, 2017
We did some non-gradle extensions but gradle would be much better to be up to date with the SDks, and compatibility with openfl gradle extensions is desired 😄
hughsando commented May 12, 2017 •
How could you tell it was me who wrote that file?
I guess it should be something like ::ANDROID_SDK_DIR::
I will have to get on this because I think gradle is the way forward.
hughsando commented May 12, 2017
I guess we should also make the extensions compatible with openfl — I will have to look into how they do things.
Источник
Android BUILD FAILED Cannot find build.xml
Brett
Guest
I am using Gamemaker Studio v1.4.1657 because I am trying to test a project on Android TV and the newest 1.4 builds give an «Incorrect Android target» error when testing the APK on my Nvidia Shield TV. I can build successfully on the newer 1.4 builds but on v.1.4.1657 build this occurs:
BUILD FAILED
C:\Users\Badboybrenden\AppData\Local\gm_ttt_81655\gm_ttt_90926\build.xml:84: Cannot find C:\Users\Badboybrenden\AppData\Local\Android\Sdk\tools\ant\build.xml imported from C:\Users\Badboybrenden\AppData\Local\gm_ttt_81655\gm_ttt_90926\build.xml
I have been looking for a solution for hours and nothing works. If you guys can help I would appreciate it greatly.
Here is the full compile:
Monsi
Guest
Did you try clearing the cache?
Brett
Guest
Brett
Guest
santiagolemos123
Guest
I am using Gamemaker Studio v1.4.1657 because I am trying to test a project on Android TV and the newest 1.4 builds give an «Incorrect Android target» error when testing the APK on my Nvidia Shield TV. I can build successfully on the newer 1.4 builds but on v.1.4.1657 build this occurs:
BUILD FAILED
C:\Users\Badboybrenden\AppData\Local\gm_ttt_81655\gm_ttt_90926\build.xml:84: Cannot find C:\Users\Badboybrenden\AppData\Local\Android\Sdk\tools\ant\build.xml imported from C:\Users\Badboybrenden\AppData\Local\gm_ttt_81655\gm_ttt_90926\build.xml
I have been looking for a solution for hours and nothing works. If you guys can help I would appreciate it greatly.
Here is the full compile:
Brett
Guest
santiagolemos123
Guest
Brett
Guest
Member
Hi Brett, i am having the same problem here.
The exact same error with the wrong android target.
Could you tell me what API’s exactly you installed to make the compiled .apk work on nvidia shield TV? And what settings you used in the project?
Also, in the API i have the SDK, and also some other items in there. Two of them has to do with android TV. Which ones did you install?
I hope you can enlighten me
It’s greatly appreciated 
Brett
Guest
Hi Brett, i am having the same problem here.
The exact same error with the wrong android target.
Could you tell me what API’s exactly you installed to make the compiled .apk work on nvidia shield TV? And what settings you used in the project?
Also, in the API i have the SDK, and also some other items in there. Two of them has to do with android TV. Which ones did you install?
I hope you can enlighten me
It’s greatly appreciated 
Member
Hi Brett, thanks for getting back to me!
i appreciate it!
2) Then, i got settings for the game as follows (global game settings -> android):
www.jrxs.net/temp/global_game_settings_android.png
When i compile this, it runs on my android tablet, phone and also OUYA,
It installs on Android shield TV, but when i try to run it, i get the error that it’s not for Android TV target, but Android target.
3) If i expand the API23 node in SDK manager :
www.jrxs.net/temp/skd6.0_(API23).png
i see a bunch of stuff that can be installed also (looks like it has got to do something with android TV)
I only installed «SDK platform» and «google APIs». I also installed «Android TV ARM EABI v7a System image», but i dont think the latter is doing anything.
4) When i compile the game, i choose target «Andoid/Fire» option.
Did i forget something?
Especially with (3), do i need to install something more for android TV?
Brett
Guest
Hi Brett, thanks for getting back to me!
i appreciate it!
2) Then, i got settings for the game as follows (global game settings -> android):
www.jrxs.net/temp/global_game_settings_android.png
When i compile this, it runs on my android tablet, phone and also OUYA,
It installs on Android shield TV, but when i try to run it, i get the error that it’s not for Android TV target, but Android target.
3) If i expand the API23 node in SDK manager :
www.jrxs.net/temp/skd6.0_(API23).png
i see a bunch of stuff that can be installed also (looks like it has got to do something with android TV)
I only installed «SDK platform» and «google APIs». I also installed «Android TV ARM EABI v7a System image», but i dont think the latter is doing anything.
4) When i compile the game, i choose target «Andoid/Fire» option.
Did i forget something?
Especially with (3), do i need to install something more for android TV?
Источник
cant find android sdk build-tools
When i create a new android application project in eclipse the gen — file is empty. I found out I have to install android sdk build-tools but in the tools folder there’s just the Android SDK tools and the android platform tools. It’s revision 22
5 Answers 5
You need to start the SDK Manager and download the build-tools from there.
You’ll need to update the ADT (Android Development Tools) in Eclipse to the newest version first (see this post for more info on how to do this). What also worked for me was to get the Android API and all the extras updated before I could update the build-tools.
May be you can use ADT bundle (http://developer.android.com/sdk/index.html) and avoid the manual installing of SDK and eclipse plugins. All you need to do is to download it, unzip it and start using eclipse to create your apps.
I had the same concern.
You may be looking in the wrong sdk folder.
I had two on my machine. One from before I started using the ADT Bundle. when you open Eclipse sometimes it opens the SDK manager for the wrong SDK. Open it manually from the bundle you downloaded.
Hope this helps.
I hope that this will help you and others. I had downloaded the «build tools» myself and placed in «Android home». I even used some of the tools several times but could not link them to other tools listed under sdkmanager. After much searching, I found that;
- deleting the old tools that I installed manually, and
- re-installing the same package version of the tools using the sdkmanager
helped me. After this the tools showed up under the list of packages in the sdkmanager. I had not noticed that my «build tools» were not listed on sdkmanager before as I had installed them myself and barely used the manager.
If you don’t want to go through this (reinstall) hassle, I noticed that the only difference between the auto install and manual is that sdkmanager kept the package version directory structure for the «build tools». For example, if you download version 4.0.5, then it will be in
whereas I had done away with this to keep the file path shorter. After this, all should be fine.
Note: this is like learning that white space matters in some languages and not others. You just have to follow the thing’s rules. Also question is a duplicate of this one.
Источник