Hello. I have already read the previous posts and attempted to
everything right to get Protobuf 2.4.1 working on android but I still
get a NoClassDefFoundError on runtime at the following line:

PhoneEvent.Builder eventMessage =

I have:
- Downloaded protobuf-2.4.1.tar.bz2, unpacked it and ./configure,
make, sudo make install. When I run protoc --version I get libprotoc
- used protoc to compile the .proto to java source and also included
that under my source.
- used maven to build the lite .jar (my proto file has "option
optimize_for = LITE_RUNTIME;") --> mvn package -P lite
- put the .jar file under lib, made a new userlibrary and referenced
it in my build path. Project compiles fine.

The funny thing is that the exact same code used to work fine with a
random protobuf.jar I found somewhere on the net and stuffed in my
build path. It's when I tried to move to protobuf 2.4.1 that all
problems started. Am I missing something?

You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to