THIS TOOL IS DEPRECATED and may stop working at any time! current just the batch or bash script be removed
you can just create a new apkbuilder file in android-sdk-linux/tools dir by:
windows:
copy android.bat apkbuilder.bat
modify apkbuilder.bat: change com.android.sdkmanager.Main to com.android.sdklib.build.ApkBuilderMain
Linux:
cat android | sed -e 's/com.android.sdkmanager.Main/com.android.sdklib.build.ApkBuilderMain/g' > apkbuilder
chmod a+x apkbuilder
ps:来至 stack overflow lorbot的回答