2017-03-20 42 views
19

我試過編譯libreoffice core項目(選擇Android的模塊)(與make,沒有涉及到搖籃還),和我得到這個錯誤:螞蟻/文件夾突然從Android SDK中丟失。 Google刪除了它嗎?

/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文件夾甚至不存在。這是它應該的方式嗎?

我不知道爲什麼它會導致這個錯誤現在,尤其是我建立的項目很多次都沒有任何問題。我所知道的這是唯一改變的是,我已經更新了所有的工具(SDK和NDK)。有沒有在周圍那些張貼(三月2017)的任何時間向後兼容性的最新變化?這可能是源代碼中引入錯誤的變化,但我相信它已經被注意到了,並且這個過程持續了幾天......有沒有人遇到類似的問題?

回答

35


Android團隊已經決定取消從SDK中的所有舊的和過時的腳本在25.3.0 SDK工具

https://developer.android.com/studio/releases/sdk-tools.htmlSDK 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

在這裏你可以月發行下載舊版本:

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