Hi all,
I'm having pukage when I try building from ant. I followed the sdk
upgrade instructions:
$ android update project --path /path/to/my-project --target 1
and when I try to build:
$ ant release
I get:
Buildfile: build.xml
BUILD FAILED
java.lang.NoSuchMethodError: method java.lang.String.format with
signature (Ljava.lang.String;[Ljava.lang.Object;)Ljava.lang.String;
was not found.
at com.android.sdklib.PlatformTarget.<init>(PlatformTarget.java:44)
at com.android.sdklib.SdkManager.loadPlatform(SdkManager.java:196)
at com.android.sdklib.SdkManager.loadPlatforms(SdkManager.java:151)
at com.android.sdklib.SdkManager.createManager(SdkManager.java:80)
at com.android.ant.SetupTask.execute(SetupTask.java:94)
at org.apache.tools.ant.UnknownElement.execute(ant-1.6.5.jar.so)
at org.apache.tools.ant.Task.perform(ant-1.6.5.jar.so)
at org.apache.tools.ant.Target.execute(ant-1.6.5.jar.so)
at org.apache.tools.ant.helper.ProjectHelper2.parse
(ant-1.6.5.jar.so)
at org.apache.tools.ant.ProjectHelper.configureProject
(ant-1.6.5.jar.so)
at org.apache.tools.ant.Main.runBuild(ant-1.6.5.jar.so)
at org.apache.tools.ant.Main.startAnt(ant-1.6.5.jar.so)
at org.apache.tools.ant.launch.Launcher.run(ant-
launcher-1.6.5.jar.so)
at org.apache.tools.ant.launch.Launcher.main(ant-
launcher-1.6.5.jar.so)
Total time: 0 seconds
java.lang.NoSuchMethodError: method java.lang.String.format with
signature (Ljava.lang.String;[Ljava.lang.Object;)Ljava.lang.String;
was not found.
at com.android.sdklib.PlatformTarget.<init>(PlatformTarget.java:44)
at com.android.sdklib.SdkManager.loadPlatform(SdkManager.java:196)
at com.android.sdklib.SdkManager.loadPlatforms(SdkManager.java:151)
at com.android.sdklib.SdkManager.createManager(SdkManager.java:80)
at com.android.ant.SetupTask.execute(SetupTask.java:94)
at org.apache.tools.ant.UnknownElement.execute(ant-1.6.5.jar.so)
at org.apache.tools.ant.Task.perform(ant-1.6.5.jar.so)
at org.apache.tools.ant.Target.execute(ant-1.6.5.jar.so)
at org.apache.tools.ant.helper.ProjectHelper2.parse
(ant-1.6.5.jar.so)
at org.apache.tools.ant.ProjectHelper.configureProject
(ant-1.6.5.jar.so)
at org.apache.tools.ant.Main.runBuild(ant-1.6.5.jar.so)
at org.apache.tools.ant.Main.startAnt(ant-1.6.5.jar.so)
at org.apache.tools.ant.launch.Launcher.run(ant-
launcher-1.6.5.jar.so)
at org.apache.tools.ant.launch.Launcher.main(ant-
launcher-1.6.5.jar.so)
method java.lang.String.format with signature (Ljava.lang.String;
[Ljava.lang.Object;)Ljava.lang.String; was not found.
It seems that something in:
<taskdef name="setup"
classname="com.android.ant.SetupTask"
classpathref="android.antlibs"/>
Is causing ant to harf, but that's about all I can tell.
Mike
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---