From 1b3c2f87d86907d4391f57971eb55eb01fa16e06 Mon Sep 17 00:00:00 2001 From: Marvin W Date: Thu, 21 Jan 2021 11:41:07 +0100 Subject: [PATCH] Fix Android Studio not reading symbols of proto generated classes --- play-services-core-proto/build.gradle | 4 ++++ play-services-nearby-core-proto/build.gradle | 4 ++++ play-services-wearable-proto/build.gradle | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/play-services-core-proto/build.gradle b/play-services-core-proto/build.gradle index 3ae24b59..68f2a91f 100644 --- a/play-services-core-proto/build.gradle +++ b/play-services-core-proto/build.gradle @@ -16,6 +16,10 @@ wire { } } +sourceSets { + main.java.srcDirs += "$buildDir/generated/source/wire" +} + compileKotlin { kotlinOptions.jvmTarget = 1.8 } diff --git a/play-services-nearby-core-proto/build.gradle b/play-services-nearby-core-proto/build.gradle index ac8889ee..c99a4c61 100644 --- a/play-services-nearby-core-proto/build.gradle +++ b/play-services-nearby-core-proto/build.gradle @@ -16,6 +16,10 @@ wire { kotlin {} } +sourceSets { + main.java.srcDirs += "$buildDir/generated/source/wire" +} + compileKotlin { kotlinOptions.jvmTarget = 1.8 } diff --git a/play-services-wearable-proto/build.gradle b/play-services-wearable-proto/build.gradle index 3ae24b59..68f2a91f 100644 --- a/play-services-wearable-proto/build.gradle +++ b/play-services-wearable-proto/build.gradle @@ -16,6 +16,10 @@ wire { } } +sourceSets { + main.java.srcDirs += "$buildDir/generated/source/wire" +} + compileKotlin { kotlinOptions.jvmTarget = 1.8 }