Android SDK 中突然缺少 ant/文件夹.谷歌删除了吗? [英] The ant/ folder is suddenly missing from Android SDK. Did Google remove it?
问题描述
我尝试编译 libreoffice core 项目(选择 Android 模块)(使用 make
,尚未涉及 Gradle),我收到此错误:
I've tried compiling libreoffice core project (choosing Android module) (with make
, no Gradle involved yet), and I'm getting this error:
/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
文件夹甚至不存在.这是应该的方式吗?
When looking through my SDK, I realized that /Sdk/tools/ant
folder doesn't even exist. Is this the way that it should be?
我不确定为什么它现在会导致该错误,尤其是我已经多次构建该项目而没有任何问题.我知道的唯一改变是我已经更新了所有工具(SDK 和 NDK).在发布这篇文章时(2017 年 3 月),是否有任何向后兼容的破坏性变化?可能是源代码的变化引入了这个bug,但我相信它已经被注意到了,而且这种情况已经持续了几天......有人遇到过类似的问题吗?
I'm not sure why it causes that error now, especially that I've built the project many times without any problems. The only thing that I'm aware of that was changed is that I've updated all the tools (SDK and NDK). Was there any backwards compatibility-breaking change in those around the time of posting this (March 2017)? It may be the change in the source code that introduced the bug, but I'm sure it would be noticed already, and this is going on for a couple of days... Did anyone encounter a similar issue?
推荐答案
是
Android 团队决定在 25.3.0 SDK 工具的 3 月版本中从 SDK 中删除所有旧的和过时的脚本
Android team has decided to remove all old and obsolete scripts from SDK in march release of 25.3.0 SDK Tools
https://developer.android.com/studio/releases/sdk-tools.html SDK 工具,修订版 25.3.0(2017 年 3 月)
变化:
- 已删除过时/弃用的工具:
- 安卓
- ddms(请参阅使用 DDMS)
- draw9patch(请参阅 Draw 9-patch)
- hierarchyviewer(请参阅使用 Hierarchy Viewer 分析您的布局)
- traceview(请参阅使用 Traceview 和 dmtracedump 进行分析)
- 蚂蚁脚本
- 项目和活动模板
在这里你可以下载旧版本:
here you can download older version:
https://dl.google.com/android/repository/tools_r25.2.5-windows.zip
https://dl.google.com/android/repository/tools_r25.2.5-macosx.zip
https://dl.google.com/android/repository/tools_r25.2.5-linux.zip
这篇关于Android SDK 中突然缺少 ant/文件夹.谷歌删除了吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!