5

When using protobuf definitions in my gradle projects, protoc works as expected. Everything builds as it is supposed to do. However, when working in the Android view (I mean View->Project->Android), the definition file doesn't show up. On the contrary, it is visible from View->Project->Project. There I can find the my protobuf definition files as expected in e.g. app/src/main/proto.

Sources are defined in my build.gradle like this:

android {
    sourceSets {
        main {
            proto {
                srcDir '../src/main/proto'
            }
        }
    }
}

What do I have to do to make the proto source files visible in the Android view?

F K
  • 315
  • 2
  • 9

1 Answers1

0

My solution is to simply bookmark the .proto files, doing this doesn't make the .proto files appear in your "Android" view but at least you don't have to switch to "Project" view to find those files.

ZhouX
  • 1,866
  • 18
  • 22