SOLVED! The problem was not a protocol buffers problem, however a more general problem in ADT after updating. The jars was not copied to the device. For people experincing the same, have a look at: http://stackoverflow.com/questions/1334802/how-can-i-use-external-jars-in-an-android-project http://stackoverflow.com/questions/2247998/noclassdeffounderror-eclipse-and-android
Best and thanks Kasper Revsbech Den tirsdag den 8. maj 2012 09.25.37 UTC+2 skrev Kasper Revsbech: > > Hi all > I have a mind wrapping problem using protocol Buffers on Android. > I among other commands defined a request in my .proto file: > http://pastebin.com/B4htQeRm > > In my communication I do as follows: > > Protocol.request.Builder r = Protocol.request.newBuilder(); > > However on run time I get the error: > java.lang.NoClassDefFoundError dk.revsbech.client.Protocol$request > > I have now trie with at bunch of jar files both pre compiled and manually > compiled both with and withouut Maven, both with and without the > LITE_RUNTIME optimization. > However I keep getting the runtime error. > > Tanks in advance > > > -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To view this discussion on the web visit https://groups.google.com/d/msg/protobuf/-/utubWuytGfcJ. 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/protobuf?hl=en.
