1
--EDIT--查看缺失存檔的註釋android sdk(23)完全破解 - 哪裏是22.6的存檔?
發生了下載sdk的r23錯誤,現在所有ant,CLI項目構建都被破壞。仍然在螞蟻/日食做NDK ....
我已閱讀this。
我知道我想要什麼狀態找回,但我無法找到一個22.6版本$ SDK_ROOT/tools文件夾內的...
否[的zipalign] ... ...它不見了
無[proguard] ....它不見了
oops。我沒有工具目錄的備份和我似乎無法找到在Android網站舊的SDK下載(所有鏈接均指向該斷則R23)標準輸出
例如,從構建昨天曾在22.6
-package:
[apkbuilder] Current build type is different than previous build: forced apkbuilder run.
[apkbuilder] Creating speech-debug-unaligned.apk and signing it with a debug key...
-post-package:
-do-debug:
[zipalign] Running zip align on final apk...
BUILD FAILED
/home/rob/src/speech/build.xml:1113: The following error occurred while executing this line:
/home/rob/src/speech/build.xml:1115: The following error occurred while executing this line:
/home/rob/src/speech/build.xml:402: Execute failed: java.io.IOException: Cannot run program "/usr/local/src/android-sdk-linux/tools/zipalign": java.io.IOException: error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:475)
at java.lang.Runtime.exec(Runtime.java:610)
at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:862)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:481)
我的SDK /工具如下:
[email protected] speech$ ls -l /usr/local/src/android-sdk-linux/tools
total 17368
-rwxr----- 1 rob rob 3498 Jun 23 13:11 android
drwxr-x--- 2 rob rob 4096 Jun 23 13:11 ant
drwxr-x--- 3 rob rob 4096 Jun 23 13:11 apps
-rwxr----- 1 rob rob 3286 Jun 23 13:11 ddms
-rwxr----- 1 rob rob 1940 Jun 23 13:11 draw9patch
-rwxr----- 1 rob rob 33428 Jun 23 13:11 emulator
-rwxr----- 1 rob rob 2854417 Jun 23 13:11 emulator64-arm
-rwxr----- 1 rob rob 2884527 Jun 23 13:11 emulator64-mips
-rwxr----- 1 rob rob 2956240 Jun 23 13:11 emulator64-x86
-rwxr----- 1 rob rob 2706541 Jun 23 13:11 emulator-arm
-rwxr----- 1 rob rob 2679855 Jun 23 13:11 emulator-mips
-rwxr----- 1 rob rob 2811534 Jun 23 13:11 emulator-x86
-rwxr----- 1 rob rob 3464 Jun 23 13:11 hierarchyviewer
-rwxr----- 1 rob rob 1845 Jun 23 13:11 jobb
drwxr-x--- 8 rob rob 4096 Jun 23 13:11 lib
-rwxr----- 1 rob rob 2046 Jun 23 13:11 lint
-rwxr----- 1 rob rob 12191 Jun 23 13:11 mksdcard
-rwxr----- 1 rob rob 1293 Jun 23 13:11 monitor
-rwxr----- 1 rob rob 3176 Jun 23 13:11 monkeyrunner
-rw-r----- 1 rob rob 758210 Jun 23 13:11 NOTICE.txt
-rwxr----- 1 rob rob 2259 Jun 23 13:11 screenshot2
-rw-r----- 1 rob rob 70 Jun 23 13:13 source.properties
drwxr-x--- 2 rob rob 4096 Jun 23 13:11 support
drwxr-x--- 6 rob rob 4096 Jun 23 13:11 templates
-rwxr----- 1 rob rob 3219 Jun 23 13:11 traceview
-rwxr----- 1 rob rob 3054 Jun 23 13:11 uiautomatorviewer
http://dl.google.com/android/android-sdk_r22.6.2-linux.tgz 有什麼,我找。 。 –
僅供參考 - zipalign在我的Windows機器上構建工具20。一旦我下載了相當於該tar文件的Windows,zipalign就被命令行Ant build拾取。 – NickT
https://code.google.com/p/android/issues/detail?id=72419 –