Status Update
Comments
da...@google.com <da...@google.com> #2
For Kotlin 2.0 and KSP 2.0 the Cannot change attributes of configuration ':composeApp:debugFrameworkIosX64' after it has been locked for mutation
really seems like a KSP issue. You should file a bug in their repository with a sample app if possible.
If you downgrade to Kotlin 1.9 then things 'should' work, there are example apps out there with such configuration, like the following one:
da...@google.com <da...@google.com> #3
Will try to use the example provided by you to check if it fixes the issue.
xu...@gmail.com <xu...@gmail.com> #4
Note that this issue happens when applying the Compose, KSP and Room Plugin together in Kotlin 2.0.x, the workaround for now is to not use the Room Gradle Plugin and instead specify the schema location vis KSP arguments:
// In the build.gradle
ksp {
arg("room.schemaLocation", "${projectDir}/schemas")
}
ro...@rockspin.co.uk <ro...@rockspin.co.uk> #5
Hi, I encountered a similar problem and was able to resolve it by updating the dependencies
room = "2.7.0-alpha08"
ksp = "2.0.20-1.0.25"
compose-plugin = "1.6.11"
kotlin = "2.0.20"
ap...@google.com <ap...@google.com> #6
Branch: androidx-main
commit abddddd5b5040e47ae1c28153343fef168036341
Author: Daniel Santiago Rivera <danysantiago@google.com>
Date: Tue Dec 15 09:16:21 2020
Update xerial sqlite-jdbc library.
Updating to 3.34.0 that support Apple's M1 chip arch 'aarch64'.
Bug: 174695268
Test: n/a - I don't have an M1 Mac...
Relnote: Update Room dependencies to support Apple's M1 CPUs.
Change-Id: Ieb6dd72b5443d7ec555a0720bff84bc413fc144c
M buildSrc/src/main/kotlin/androidx/build/dependencies/Dependencies.kt
da...@google.com <da...@google.com>
da...@google.com <da...@google.com>
le...@gmail.com <le...@gmail.com> #7
da...@google.com <da...@google.com> #8
Not yet sorry, we ran into an issue with the JDBC library (
mx...@gmail.com <mx...@gmail.com> #9
For those who are facing this problem, you can simply add this line before the room-compiler
as a workaround now:
+kapt("org.xerial:sqlite-jdbc:3.34.0")
kapt("androidx.room:room-compiler:2.3.0-beta01")
ce...@gmail.com <ce...@gmail.com> #10
If the mentioned workarounds are not working, I recommend using this workaround instead, adding it to the root build.gradle. This will force using the given dependency in the whole project:
allprojects {
configurations.all {
resolutionStrategy {
force 'org.xerial:sqlite-jdbc:3.34.0'
}
}
}
za...@gmail.com <za...@gmail.com> #11
You should use configureEach instead of all, FYI!
ro...@gmail.com <ro...@gmail.com> #12
da...@google.com <da...@google.com>
za...@gmail.com <za...@gmail.com> #13
Just a note for others - fixed *in room 2.4.0-alpha03
zh...@gmail.com <zh...@gmail.com> #14
we need a patch version for 2.3.x
za...@gmail.com <za...@gmail.com> #15
You have a workaround for that
zh...@gmail.com <zh...@gmail.com> #16
why not release room 2.4.0, it's alpha until now!!!!!
za...@gmail.com <za...@gmail.com> #17
On Thu, Sep 2, 2021 at 2:27 AM <buganizer-system@google.com> wrote:
[Deleted User] <[Deleted User]> #18
10-26 14:16:44.108 E/AndroidRuntime(26052): Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/sqlite/db/SupportSQLiteCompat$Api19Impl;
10-26 14:16:44.108 E/AndroidRuntime(26052): at androidx.room.RoomDatabase$JournalMode.isLowRamDevice(RoomDatabase.java:755)
10-26 14:16:44.108 E/AndroidRuntime(26052): at androidx.room.RoomDatabase$JournalMode.resolve(RoomDatabase.java:746)
10-26 14:16:44.108 E/AndroidRuntime(26052): at androidx.room.RoomDatabase$Builder.build(RoomDatabase.java:1446)
10-26 14:16:44.108 E/AndroidRuntime(26052): at androidx.work.impl.WorkDatabase.create(WorkDatabase.java:155)
10-26 14:16:44.108 E/AndroidRuntime(26052): at androidx.work.impl.WorkManagerImpl.<init>(WorkManagerImpl.java:244)
10-26 14:16:44.108 E/AndroidRuntime(26052): at androidx.work.impl.WorkManagerImpl.<init>(WorkManagerImpl.java:219)
10-26 14:16:44.108 E/AndroidRuntime(26052): at androidx.work.impl.WorkManagerImpl.initialize(WorkManagerImpl.java:198)
10-26 14:16:44.108 E/AndroidRuntime(26052): at androidx.work.WorkManager.initialize(WorkManager.java:210)
10-26 14:16:44.108 E/AndroidRuntime(26052): at androidx.work.WorkManagerInitializer.create(WorkManagerInitializer.java:39)
10-26 14:16:44.108 E/AndroidRuntime(26052): at androidx.work.WorkManagerInitializer.create(WorkManagerInitializer.java:30)
10-26 14:16:44.108 E/AndroidRuntime(26052): at androidx.startup.AppInitializer.doInitialize(AppInitializer.java:155)
yb...@google.com <yb...@google.com> #19
#18, you might be hitting multi-dex issues. Do you have multi-dex enabled?
[Deleted User] <[Deleted User]> #20
I created a dedicated issue to track this:
0....@gmail.com <0....@gmail.com> #22
Caused by: java.lang.IllegalArgumentException: @androidx.room.Database does not define an element autoMigrations()
at com.google.auto.common.AnnotationMirrors.getAnnotationElementAndValue(AnnotationMirrors.java:134)
Description
Component used: Room
Version used: 2.2.5
Devices/Android versions reproduced on: Mac mini M1 chip
JDK8-arm64 is downloaded from Zulu Builds of OpenJDK
Gradle stacktrace: