Simon Hafner
05/06/2025, 1:09 PMAdrian Tache
05/12/2025, 3:18 PMVishwanth Prakash
05/31/2025, 12:02 PMWARNING: The following problems were found when resolving the SDK location:
101
Where: ANDROID_SDK_ROOT environment variable. Problem: Directory does not existVishwanth Prakash
06/02/2025, 6:37 AMDon Phillips
06/24/2025, 6:24 PMfirebaseAppDistribution block at the project level for config common to all build variants, but also override stuff at the buildType/productFlavor level.
I see that the app distribution plugin provides the following 3 extensions:
package com.google.firebase.appdistribution.gradle
public fun com.android.build.api.dsl.ProductFlavor.firebaseAppDistribution(action: com.google.firebase.appdistribution.gradle.AppDistributionExtension.() -> kotlin.Unit): kotlin.Unit { /* compiled code */ }
public fun org.gradle.api.Project.firebaseAppDistribution(action: com.google.firebase.appdistribution.gradle.AppDistributionExtension.() -> kotlin.Unit): kotlin.Unit { /* compiled code */ }
public fun org.gradle.nativeplatform.BuildType.firebaseAppDistribution(action: com.google.firebase.appdistribution.gradle.AppDistributionExtension.() -> kotlin.Unit): kotlin.Unit { /* compiled code */ }
I've got this at the top of my build script per the instructions and the linter error:
import com.google.firebase.appdistribution.gradle.firebaseAppDistribution
But only the extension on org.gradle.api.Project seems to resolve. When I add a firebaseAppDistribution block to my release buildType, I still get a red squiggly.
I'm on pretty much the most recent versions of everything.
So far, this is all I've found on the topic - https://medium.com/@anthony_m_cannon/android-firebase-app-distribution-for-multiple-build-types-4b50ff751ef0 and it pretty much seems like the author couldn't figure it out, so he worked around it by specifying an env-var in CI so he could pick the right one at the Project level block. But this seems wrong.
But maybe the plugin is wrong? My release buildType block's type is org.gradle.api.NamedDomainObjectContainer<com.android.build.api.dsl.ApplicationBuildType> which is definitely NOT org.gradle.nativeplatform.BuildTypeArdit Qerimi
07/10/2025, 7:49 AMnpm run android. The build fails with the following error:
Execution failed for task ':app:checkDebugAarMetadata'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
> 2 issues were found when checking AAR metadata:
1. Dependency 'androidx.core:core:1.16.0' requires Android Gradle plugin 8.6.0 or higher.
2. Dependency 'androidx.core:core-ktx:1.16.0' requires Android Gradle plugin 8.6.0 or higher.
My current setup:
• O*penJDK:*
• 17.0.15 (2025-04-15 LTS)
• Gradle: 8.3
• Android Gradle Plugin (AGP): 8.2.1
• compileSdk: 35Faid Alagbe
07/11/2025, 9:36 AMFaid Alagbe
07/11/2025, 9:36 AMA failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction> Android resource linking failed aapt2.exe E 07-11 112826 25748 29600 LoadedArsc.cpp:94] RES_TABLE_TYPE_TYPE entry offsets overlap actual entry data. aapt2.exe E 07-11 112826 25748 29600 ApkAssets.cpp:149] Failed to load resources table in APK 'C:\Users\HP Elitebook\AppData\Local\Android\sdk\platforms\androi d-35\android.jar'. error: failed to load include path C:\Users\HP Elitebook\AppData\Local\Android\sdk\platforms\android-35\android.jar. * Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.============================================================================== 2: Task failed with an exception. ----------- * What went wrong: Execution failed for task 'appbundleReleaseResources'.
A failure occurred while executing com.android.build.gradle.internal.res.Aapt2ProcessResourcesRunnable> Android resource linking failed aapt2.exe E 07-11 112826 21836 29372 LoadedArsc.cpp:94] RES_TABLE_TYPE_TYPE entry offsets overlap actual entry data. aapt2.exe E 07-11 112826 21836 29372 ApkAssets.cpp:149] Failed to load resources table in APK 'C:\Users\HP Elitebook\AppData\Local\Android\sdk\platforms\androi d-35\android.jar'. error: failed to load include path C:\Users\HP Elitebook\AppData\Local\Android\sdk\platforms\android-35\android.jar. * Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.============================================================================== * Get more help at https://help.gradle.org BUILD FAILED in 2m 2s Running Gradle task 'assembleRelease'... 123,8s Gradle task assembleRelease failed with exit code 1
Vareli Tecsoft
07/16/2025, 7:48 AMRun with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.* Exception is: org.gradle.api.plugins.UnknownPluginException: Plugin [id: 'com.android.application', version: '8.2', apply: false] was not found in any of the following sources: - Gradle Core Plugins (plugin is not in 'org.gradle' namespace) - Plugin Repositories (could not resolve plugin artifact 'com.android.applicationcom.android.application.gradle.plugin8.2')
Brandon Mwakasege
07/21/2025, 1:12 PMRun with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.* Exception is: org.gradle.api.plugins.UnknownPluginException: Plugin [id: 'com.android.application', version: '8.11.1', apply: false] was not found in any of the following sources: - Gradle Core Plugins (plugin is not in 'org.gradle' namespace) - Included Builds (No included builds contain this plugin) - Plugin Repositories (could not resolve plugin artifact 'com.android.applicationcom.android.application.gradle.plugin8.11.1') Searched in the following repositories: Google MavenRepo Gradle Central Plugin Repository
Mohammed Mahmood Ahmed
07/27/2025, 3:54 PMAndrzej Zabost
07/30/2025, 12:10 PMw: [ksp] Schema export directory was not provided to the annotation processor so Room cannot export the schema. You can either provide `room.schemaLocation` annotation processor argument by applying the Room Gradle plugin (id 'androidx.room') OR set exportSchema to false.
depending on how the plugin is applied?
---
Method 1 (everything is fine, schema is generated, no warnings)
libs.versions.toml
[versions]
room = "2.7.2"
[plugins]
room = { id = "androidx.room", version.ref = "room" }
app/build.gradle.kts
plugins {
// ...
alias(libs.plugins.room)
}
android {
room {
schemaDirectory("$projectDir/schemas")
}
}
---
Method 2 (doesn't work, "_Schema export directory was not provided ..._")
[versions]
room = "2.7.2"
[libraries]
room-plugin = { module = "androidx.room:room-gradle-plugin", version.ref = "room" }
[plugins]
room = { id = "androidx.room" } // no version here
build.gradle.kts (root project)
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath(libs.room.plugin)
}
}
app/build.gradle.kts
(no changes - same as before)
plugins {
// ...
alias(libs.plugins.room)
}
android {
room {
schemaDirectory("$projectDir/schemas")
}
}Andrew Grosner
08/01/2025, 2:57 PMAsehinde Juwon
08/08/2025, 2:09 PM* What went wrong:
Execution failed for task ':app:compileReleaseKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
> Compilation error. See log for more details
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at <https://help.gradle.org>.
BUILD FAILED in 5m 47s
Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.Jean Tuffier
08/22/2025, 1:28 PMDuplicate class com.google.protobuf.DescriptorProtos found in modules protobuf-javalite-4.32.0.jar -> protobuf-javalite-4.32.0 (com.google.protobufprotobuf javalite4.32.0) and protolite-well-known-types-18.0.1.aar -> protolite-well-known-types-18.0.1-runtime (com.google.firebaseprotolite well known types18.0.1)
…I removed the direct dependency to
javalite from my project, I tried what’s recommended here, I ask chatGPT and Claude for help but nothing to avail. Has anyone got those conflict issues and managed to fix them?Colton Idle
09/23/2025, 7:46 PMSaid Shatila
10/01/2025, 3:40 PMjava.lang.AbstractMethodError: Receiver class androidx.room.migration.bundle.FieldBundle$$serializer does not define or inherit an implementation of the resolved method 'abstract kotlinx.serialization.KSerializer[] typeParametersSerializers()' of interface kotlinx.serialization.internal.GeneratedSerializer.
at kotlinx.serialization.internal.PluginGeneratedSerialDescriptor$typeParameterDescriptors$2.invoke(PluginGeneratedSerialDescriptor.kt:40)
at kotlinx.serialization.internal.PluginGeneratedSerialDescriptor$typeParameterDescriptors$2.invoke(PluginGeneratedSerialDescriptor.kt:39)
at kotlin.SafePublicationLazyImpl.getValue(LazyJVM.kt:122)
at kotlinx.serialization.internal.PluginGeneratedSerialDescriptor.getTypeParameterDescriptors$kotlinx_serialization_core(PluginGeneratedSerialDescriptor.kt:39)
at kotlinx.serialization.internal.PluginGeneratedSerialDescriptor$_hashCode$2.invoke(PluginGeneratedSerialDescriptor.kt:44)
at kotlinx.serialization.internal.PluginGeneratedSerialDescriptor$_hashCode$2.invoke(PluginGeneratedSerialDescriptor.kt:44)
at kotlin.SafePublicationLazyImpl.getValue(LazyJVM.kt:122)
at kotlinx.serialization.internal.PluginGeneratedSerialDescriptor.get_hashCode(PluginGeneratedSerialDescriptor.kt:44)
It happened when I added KotlinXSerialization to my Database module.
plugins {
alias(libs.plugins.yinzcam.library)
alias(libs.plugins.yinzcam.hilt)
alias(libs.plugins.yinzcam.room)
alias(libs.plugins.kotlin.serialization)
}
android {
namespace = "yinz.cam.database"
buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"<http://proguard-rules.pro|proguard-rules.pro>"
)
}
}
hilt {
enableAggregatingTask = true
}
}
dependencies {
implementation(libs.kotlinx.serialization.lib)
}Julian Molina
10/24/2025, 2:36 PMMaksym Moroz
10/29/2025, 10:45 PMlanguageSettings { } unavailable inside KotlinAndroidProjectExtension?Colton Idle
10/31/2025, 2:41 PMandroid {
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatbility JavaVersion.VERSION_17
}
kotlin {
jvmToolchain(17)
}
kotlinOptions {
jvmTarget = '17'
}
}
tasks.withType<KotlinCompile>().configureEach {
compilerOptions { jvmTarget.set(JvmTarget.JVM_17) }
}
I can consolidate all of that... right? What's the "right" way?nisikawa yasunori
11/05/2025, 2:13 AMnisikawa yasunori
11/06/2025, 6:48 AMnisikawa yasunori
11/06/2025, 8:02 AMKenny Jimno
11/07/2025, 4:22 AMEmmanuel Anyebe
11/09/2025, 10:02 AMnisikawa yasunori
11/10/2025, 12:17 AMColton Idle
11/20/2025, 2:39 PMenableUnitTestCoverage = true in build.gradle and now I have an additional task in gradle called :app:createDebugUnitTestCoverageReport which generates an html report. this is great.
At a baseline... enabling code cov (via jacoco) wasn't hard.
Customizing it though does seem hard
1. Calling plugins { jacoco } is not necessary?
2. How can I remove classes/packages from being included in the coverage report?
3. enableAndroidTestCoverage = true but I dont get any gradle task generated to create those reportsColton Idle
11/20/2025, 4:53 PMColton Idle
11/21/2025, 6:57 PMHamed Balaira
11/25/2025, 7:47 PM