google / google/protobuf-gradle-plugin

Android + kts: Conflict while specifying proto sources directory

Open
#529 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Groovy
Stars
1.8k
Forks
288
PR merge metrics
No merged PRs in 30d

Description

When I decided to convert gradle groovy script to kotlin DSL variant I encountered this weird error.
```
android {
...
sourceSets {
getByName("main") {
proto {
^
Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
public fun AndroidSourceSet.proto(action: SourceDirectorySet.() -> Unit): Unit defined in com.google.protobuf.gradle
public fun SourceSet.proto(action: SourceDirectorySet.() -> Unit): Unit defined in com.google.protobuf.gradle
```
Is the above occuring because of #433 ?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.