I'm trying to get started using protocol buffers in an Android app, using Square's Wire runtime.
I have a working Gradle build configured, which consists of a Java module for the protobuf bindings and a standard Android module with the app. The Android module refers tot the Java module as a dependency. This works in Gradle, but Android Studio 1.0RC4 does not pick up the generated code for its source code editor. It can assemble the app just fine with the Make Project command, but the dependencies show up as missing in the Java editor. I have put a minimum sample project on https://github.com/barend/ProtoConfig I believe Android Studio doesn't but should pick up on the source set addition in the Java module's gradle script: sourceSets.main.java.srcDirs += "${project.buildDir}/generated/source/protobuf" …and update its editor classpath accordingly. One work-around that I can see is to promote the protobuf module to a top-level project and have the Android module depend on it through my local maven repository rather than directly. This may even be a better approach as the API stabilizes. However, I would like for this to work as a single build, because it *should* be possible. Thanks, Barend -- You received this message because you are subscribed to the Google Groups "adt-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to adt-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.