I have the following block in my build.gradle to generate Java sources with the protobuf compiler:
afterEvaluate { generateDebugSources.dependsOn compileProtobuf generateReleaseSources.dependsOn compileProtobuf } After switching from plugin v2.1.3 to v2.2.0, I get the following error when I try to run the project in Android Studio 2.2: "A problem occurred configuring root project 'android'. > Could not get unknown property 'generateReleaseSources' for root project > 'android' of type org.gradle.api.Project." I can't replicate this when running gradlew from the command line, but going back to v2.1.3 resolves the problem in Android Studio. Is there some other method I should use to run my compileProtobuf task before generateDebugSources and generateReleaseSources? -Max -- 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.