Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing package name #174

Closed
zokipirlo opened this issue Nov 25, 2014 · 1 comment
Closed

Missing package name #174

zokipirlo opened this issue Nov 25, 2014 · 1 comment

Comments

@zokipirlo
Copy link

Hi!

All generated Java classes are without package name. What am I doing wrong?

Here is my compilation code:

java -jar wire-compiler-1.6.0-jar-with-dependencies.jar \
    --java_out=../app/src/main/java/my/package/name/proto api.proto

First few lines look like this:

// Code generated by Wire protocol buffer compiler, do not edit.
// Source file: /full/path/to/api.proto
import com.squareup.wire.Message;
import com.squareup.wire.ProtoField;

import static com.squareup.wire.Message.Datatype.INT32;
import static com.squareup.wire.Message.Datatype.STRING;
import static com.squareup.wire.Message.Label.REQUIRED;

public final class ResponseError extends Message {
@zokipirlo
Copy link
Author

Ok, I'm stupid. Forgot to set package in .proto file.

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

No branches or pull requests

1 participant