Skip to content

Commit 3bdf041

Browse files
committed
Fix Kotlin DSL build error: import Properties instead of java.util.Properties
Inside the android {} block `java` resolves to AGP's JavaPluginExtension, so `java.util.Properties` parsed as `(java).util` and failed to compile. Import java.util.Properties and reference Properties() directly. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JC7pFNtiABZG7PGhk6xMSM
1 parent 318e8b4 commit 3bdf041

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

app/build.gradle.kts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import java.util.Properties
2+
13
plugins {
24
id("com.android.application")
35
id("org.jetbrains.kotlin.android")
@@ -33,7 +35,7 @@ android {
3335
// Generate a keystore with:
3436
// keytool -genkey -v -keystore flix-release.jks -keyalg RSA -keysize 2048 \
3537
// -validity 10000 -alias flix
36-
val releaseProps = java.util.Properties().apply {
38+
val releaseProps = Properties().apply {
3739
val localProperties = rootProject.file("local.properties")
3840
if (localProperties.exists()) {
3941
localProperties.inputStream().use { load(it) }

0 commit comments

Comments
 (0)