Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
522 views
in Technique[技术] by (71.8m points)

makefile - The ant/ folder is suddenly missing from Android SDK. Did Google remove it?

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

When looking through my SDK, I realized that /Sdk/tools/ant folder doesn't even exist. Is this the way that it should be?

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Yes


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)

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

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...