ant/文件夹突然从Android SDK中丢失. Google删除了吗? [英] 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月)前后是否存在向后兼容性突破的变化?可能是由于引入了该错误的源代码中的更改引起的,但是我敢肯定它已经被注意到,并且这种情况持续了几天……有人遇到过类似的问题吗?
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工具的三月发行版中从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 Tools, Revision 25.3.0 (March 2017)
更改:
- 已删除/过时的工具:
- android
- ddms(请参阅使用DDMS)
- draw9patch(代替参见Draw 9-patch)
- hierarchyviewer(相反,请参见使用Hierarchy Viewer剖析您的布局)
- traceview(而不是查看使用Traceview和dmtracedump进行分析)
- 蚂蚁脚本
- 项目和活动模板
- 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
在这里您可以下载旧版本:
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
这篇关于ant/文件夹突然从Android SDK中丢失. Google删除了吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!