Android SDK 中突然缺少 ant/文件夹.谷歌删除了吗? [英] The ant/ folder is suddenly missing from Android SDK. Did Google remove it?

查看:25
本文介绍了Android SDK 中突然缺少 ant/文件夹.谷歌删除了吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试编译 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 月)

变化:

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆