Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 577
Aleksandar Stefanović Avatar asked Mar 20 '17 19:03

Aleksandar Stefanović


People also ask

How do I fix Android SDK missing?

Quick fix: Go to the Tools –> SDK manager –> SDK tools. Deselect Hide obsolete packages option on the right bottom and further install Android SDK Tools(obsolete). A new folder named Tools is now generated in the SDK directory.

Where is the Android SDK folder?

Expand Appearance & Behavior —> System Settings —> Android SDK menu item on the left side of the popup window. Then you can find the Android SDK Location directory path on the right side ( in this example, the Android SDK location path is C:\Users\Jerry\AppData\Local\Android\Sdk ), remember it.

How do I download SDK Manager on Android?

Install the SDKClick Tools > SDK Manager. In the SDK Platforms tab, select Android 12. In the SDK Tools tab, select Android SDK Build-Tools 31. Click OK to install the SDK.


1 Answers

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

like image 66
V-master Avatar answered Sep 18 '22 15:09

V-master