Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

java.lang.NoSuchMethodError #55

Closed
DominikDary opened this issue Sep 25, 2013 · 2 comments
Closed

java.lang.NoSuchMethodError #55

DominikDary opened this issue Sep 25, 2013 · 2 comments

Comments

@DominikDary
Copy link

Hi,

I'm using buck to build an Android app but since I fetch the latest version (8c4ed0f) from github and rebuild it with the ant command, I'm getting this stacktrace when I exceute buck project:

bash-3.2$ buck project
java.lang.NoSuchMethodError: com.facebook.buck.java.JavacOptions$Builder.setAnnotationProcessingData(Lcom/facebook/buck/model/AnnotationProcessingData;)Lcom/facebook/buck/java/JavacOptions$Builder;
at com.facebook.buck.android.AndroidLibraryRule$Builder.build(AndroidLibraryRule.java:117)
at com.facebook.buck.android.AndroidLibraryRule$Builder.build(AndroidLibraryRule.java:105)
at com.facebook.buck.rules.BuildRuleResolver.buildAndAddToIndex(BuildRuleResolver.java:63)
at com.facebook.buck.parser.Parser$2.onNodeExplored(Parser.java:356)
at com.facebook.buck.parser.Parser$2.onNodeExplored(Parser.java:322)
at com.facebook.buck.graph.AbstractAcyclicDepthFirstPostOrderTraversal.traverse(AbstractAcyclicDepthFirstPostOrderTraversal.java:95)
at com.facebook.buck.parser.Parser.findAllTransitiveDependencies(Parser.java:377)
at com.facebook.buck.parser.Parser.parseBuildFilesForTargets(Parser.java:294)
at com.facebook.buck.parser.PartialGraph.createPartialGraph(PartialGraph.java:79)
at com.facebook.buck.cli.ProjectCommand.createPartialGraph(ProjectCommand.java:153)
at com.facebook.buck.cli.ProjectCommand.runCommandWithOptionsInternal(ProjectCommand.java:70)
at com.facebook.buck.cli.ProjectCommand.runCommandWithOptionsInternal(ProjectCommand.java:39)
at com.facebook.buck.cli.AbstractCommandRunner.runCommandWithOptions(AbstractCommandRunner.java:115)
at com.facebook.buck.cli.AbstractCommandRunner.runCommand(AbstractCommandRunner.java:95)
at com.facebook.buck.cli.Command.execute(Command.java:98)
at com.facebook.buck.cli.Main.runMainWithExitCode(Main.java:346)
at com.facebook.buck.cli.Main.tryRunMainWithExitCode(Main.java:497)
at com.facebook.buck.cli.Main.main(Main.java:515)

I'm trying to build the sample project from the documenation and this error happens as well when I run buck build app. Before I updated to this version of buck today, the old version (end of August) was working fine.

Any idea about how this can be fixed?

@bolinfest
Copy link
Contributor

Hi Dominik, can you try refreshing Buck from master and trying again? (I just did a checkout from master and clearly the method is there.) There's also the possibility that you killed Buck mid-rebuild and left it in a bad state. See also http://facebook.github.io/buck/concept/troubleshooting.html.

Please reopen if that does not fix your problem.

@DominikDary
Copy link
Author

Just running ant in the bukc folder was not enough - but http://facebook.github.io/buck/concept/troubleshooting.html and then the rebuilding instructions fixed it.

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants