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

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

问题描述

我尝试编译 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进行分析)
    • 蚂蚁脚本
    • 项目和活动模板
查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆