Android SDK 中突然缺少 ant/ 文件夹。 Google 删除了吗?
The ant/ folder is suddenly missing from Android SDK. Did Google remove it?
我已经尝试编译 libreoffice core 项目(选择 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 年 3 月)是否有任何破坏向后兼容性的变化?可能是源代码的变化引入了这个错误,但我相信它已经被注意到了,而且这已经持续了几天......有没有人遇到过类似的问题?
是
Android 团队已决定在 25.3.0 SDK 工具的 3 月版本中从 SDK 中删除所有旧的和过时的脚本
https://developer.android.com/studio/releases/sdk-tools.html SDK Tools, Revision 25.3.0 (March 2017)
Changes:
- Obsolete/deprecated tools have been removed:
- android
- ddms (instead see Using DDMS)
- draw9patch (instead see Draw 9-patch)
- hierarchyviewer (instead see Profile Your Layout with Hierarchy Viewer)
- traceview (instead see Profiling with Traceview and dmtracedump)
- ant scripts
- Project and activity templates
在这里你可以下载旧版本:
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
我已经尝试编译 libreoffice core 项目(选择 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 年 3 月)是否有任何破坏向后兼容性的变化?可能是源代码的变化引入了这个错误,但我相信它已经被注意到了,而且这已经持续了几天......有没有人遇到过类似的问题?
是
Android 团队已决定在 25.3.0 SDK 工具的 3 月版本中从 SDK 中删除所有旧的和过时的脚本
https://developer.android.com/studio/releases/sdk-tools.html SDK Tools, Revision 25.3.0 (March 2017)
Changes:
- Obsolete/deprecated tools have been removed:
- android
- ddms (instead see Using DDMS)
- draw9patch (instead see Draw 9-patch)
- hierarchyviewer (instead see Profile Your Layout with Hierarchy Viewer)
- traceview (instead see Profiling with Traceview and dmtracedump)
- ant scripts
- Project and activity templates
在这里你可以下载旧版本:
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