I have checked with my friend who has Android SDK tools version 21, the apkbuilder is there. I have updated the Android SDK tools to version 22 and I can't find apkbuilder anymore.
So it seems that the Andorid SDK tool has replace the apkbuilder with something else? How can I make ant build.xml without apkbuilder? Is there some other way to build the unsigned apk for Android?
After updating to SDK Tools to rev. 22 for the first time, you may need to relaunch Android SDK Manager again and install a new item: Android SDK Build-tools.
After installing this, clean your projects and rebuild.
Did you checked? Build-tools do not include apkbuilder. –
Krom SternMay 18 '13 at 18:12
2
I have done this。 And build.xml is exists and i want to find the instead tool of apkbuilder.How the sdk tool ver.22 build apk?without apkbuilder? –
tommy cheungMay 19 '13 at 10:53
Also perform "android update project -p ." in your project directory. This will update your build.xml. –
Lionel PortJun 7 '13 at 3:09
The apkbuilder/apkbuilder.bat wrappers around "com.android.sdklib.build.ApkBuilderMain" no longer exit in rev 22. –
miracle2kAug 4 '13 at 15:01
I hope to fix my rebuild problem after updating it. Thanks! –
GokuSep 23 '13 at 1:41
for script or other development You can use ${sdk.dir}/tools/lib/sdklib.jar, the apkbuilder was included in. Take a look at apkbuild.bat in previous version, at the end of the file:
set jarfile=sdklib.jar
set frameworkdir=
if exist %frameworkdir%%jarfile% goto JarFileOk
set frameworkdir=lib\
if exist %frameworkdir%%jarfile% goto JarFileOk
set frameworkdir=..\framework\
:JarFileOk
set jarpath=%frameworkdir%%jarfile%
call %java_exe% -classpath %jarpath% com.android.sdklib.build.ApkBuilderMain %*
Changed the structure of the SDK by adding a new build tool SDK Component, which is based on the existing platform-tools component. This change decouples the build tools versions from the IDE versions, allowing updates to the tools without requiring an IDE update.
One of the temporary options is to roll back your SDK tools back to rev.21 where apkbuilder existed. You can do that by backing up tools folder (e.g. rename it to tools_22) and downloading previous tools from rev.21: dl-ssl.google.com/android/repository/tools_r20-windows.zip, unpack it to your SDK and it will work like before.
THX.Iwant to find a way to edit my build.xml to fit the new version tool .Or should i change builder to gradle or sth else? –
tommy cheungMay 19 '13 at 10:55
In the case that will not roll back my sdk tool verison 21?In fact i want to know how build the apk in tools version 22?The sugest way? –
tommy cheungMay 19 '13 at 10:58
I know only of this solution. Maybe someone else knows a better way around rev.22 –
Krom SternMay 19 '13 at 13:50
See liuyong's answer for a link to the bat. –
Steven Mark FordJul 24 '13 at 10:08
It indeed appears as if the script has been removed. For now, using an old version works because the command line interface still exists as part of the Java class, though I wouldn't be surprised if that goes as well. –
miracle2kAug 4 '13 at 14:59
I find a way but i don't very sure of it. I saw a ant directory in tools directory and found a build.xml contains the new way to build apk. I also saw ant_task.jar in the tools/lib directory.When i unzip the jar i fount some classes like Apk ApkBuilderTask.class CheckEnvTask.class and so on... So i think the way is be changed to build apk with the ant Task,i 'll try to use the template to build the apk ,and if it works i will post the solution here. thanks!
You can recreate your project build.xml to use the new method but running "android update project -p ." in your project directory. –
Lionel PortJun 7 '13 at 3:12
I have updated Android SDK to rev. 22 yesterday and there is no apkbuilder in tools
转:http://stackoverflow.com/questions/16620655/i-have-updated-android-sdk-to-rev-22-yesterday-and-there-is-no-apkbuilder-in-toI have checked with my friend who has Android S