Akdeniz / google-play-crawler

Play with Google Play API :)
Other
565 stars 204 forks source link

ListResponse overrides final method getUnknownFields #21

Closed qwertydzen closed 11 years ago

qwertydzen commented 11 years ago

HI!

Firstly, thank you for a great lib!

After update a version I have the error I work with library in jruby

After import com.akdeniz.googleplaycrawler.GooglePlayAPI

I have error in log

LoadError: load error: ./lib/google_play -- java.lang.VerifyError: class com.akdeniz.googleplaycrawler.GooglePlay$ListResponse overrides final method getUnknownFields.()Lcom/google/protobuf/UnknownFieldSet; require at org/jruby/RubyKernel.java:1027 (root) at script/google_play.rb:8

May be do you know how it resolve?

Akdeniz commented 11 years ago

Hi @qwertydzen,

I think it is the issue of protobuf version.

Can you confirm that you are using version 2.5.0 of both protobuf compiler and library?

qwertydzen commented 11 years ago

<< aptitude show libprotobuf-java Package: libprotobuf-java
State: installed Automatically installed: no Version: 2.5.0-1chl1~lucid1 Priority: extra Section: java Maintainer: Ubuntu Developers ubuntu-devel-discuss@lists.ubuntu.com

<< protoc --version libprotoc 2.5.0

I'm imported only your jar file and don't need compile one more time. Your jar works well in cli mode but after include in jruby I catch error

Some else ideas?

qwertydzen commented 11 years ago

You said me about protobuf-java-2.5.0.jar after updating it all works well. Thank you

Fuzion24 commented 11 years ago

@Akdeniz, it might be a good idea to have sbt do some sanity checks on the environment to validate Protobuf is installed + correct version, etc..