Hi there, I have updated compose v1.6.2 started s...
# multiplatform
s
Hi there, I have updated compose v1.6.2 started seeing the below issue can someone help to check..
Could not find "org.jetbrains.compose.collection-internal:collection" in ../.konan/klib, ../.konan/kotlin-native-prebuilt-macos-aarch64-1.9.22/klib/common, ..konan/kotlin-native-prebuilt-macos-aarch64-1.9.22/klib/platform/ios_simulator_arm64]
p
Did you update kotlin to 1.9.22? I think the changelog was mentioned one has to. If you did, then close / open the IDE clear caches, ensure you have internet. The basics
s
Yes
Let me try cache clearing works
p
Give it a try.
s
still same
p
Actually I think 1.6.2 is the Google compose version. Can you try jetbrains which is 1.6.0
s
hi @Pablichjenkov now im started getting this errors post updating to kotlin compose.1.6.0
import org.jetbrains.compose.resources.resource
not found
and
Could not find "org.jetbrains.compose.annotation-internal:annotation" in
p
At least you get something. Just as usual, restart the IDE, build cleanup, invalidate caches, kill/restart Gradle deamon. Delete .idea and .gradle folders, what else 🤔 ensure plugins are updated too
s
okay deleting as you suggested .. let me c
It works while running build, but showing above errors while assembling the builds?, Actually I wanted to generate .aar file for android project and framework for iOS
this is how im trying to generated .aar and framework from shared module of project..
this is the
settings.kts
file plugins
Copy code
plugins {
    val firebaseCrashlyticsVersion = extra["firebase.crashlytics.version"] as String
    val googleServicesVersion = extra["google.services.version"] as String

    id("org.jetbrains.compose").version("1.6.0")
    kotlin("jvm").version("1.9.20")
    kotlin("multiplatform").version("1.9.20")
    kotlin("android").version("1.9.20")
    id("com.android.application").version("8.0.2")
    id("com.android.library").version("8.0.2")
    id("com.google.gms.google-services").version(googleServicesVersion).apply(false)
    id("com.google.firebase.crashlytics").version(firebaseCrashlyticsVersion).apply(false)
}
post doing as you suggested still same issue
Pablichenko [10:32 AM]
At least you get something. Just as usual, restart the IDE, build cleanup, invalidate caches, kill/restart Gradle deamon. Delete .idea and .gradle folders, what else 🤔 ensure plugins are updated too
Screenshot 2024-02-29 at 11.05.10 AM.png
p
I see, not familiar with that annotation - internal Library. Is that Library KMP? Anyway, wait if someone from JB answers here otherwise open a ticket in GitHub then
s
p
👍 well, look for that dependency then
s
I have update all the dependencies causing this, But Now started seeing new issue
error: Compilation failed: /default/linkdata/package_kmmpwpitara
* Source files:
* Compiler version: 1.9.22
* Output kind: FRAMEWORK
error: java.nio.file.NotDirectoryException: /default/linkdata/package_kmmpwpitara
at jdk.zipfs/jdk.nio.zipfs.ZipDirectoryStream.<init>(ZipDirectoryStream.java:58)
at jdk.zipfs/jdk.nio.zipfs.ZipPath.newDirectoryStream(ZipPath.java:755)
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.newDirectoryStream(ZipFileSystemProvider.java:262)
at java.base/java.nio.file.Files.newDirectoryStream(Files.java:482)
at org.jetbrains.kotlin.konan.file.File.getListFiles(File.kt:54)
at org.jetbrains.kotlin.library.impl.MetadataLibraryImpl$packageMetadataParts$1.invoke(KotlinLibraryImpl.kt:76)
at org.jetbrains.kotlin.library.impl.MetadataLibraryImpl$packageMetadataParts$1.invoke(KotlinLibraryImpl.kt:73)
at org.jetbrains.kotlin.library.impl.BaseLibraryAccess$inPlace$1.invoke(KotlinLibraryLayoutImpl.kt:68)
at org.jetbrains.kotlin.library.impl.BaseLibraryAccess$inPlace$1.invoke(KotlinLibraryLayoutImpl.kt:67)
at org.jetbrains.kotlin.konan.file.ZipUtilKt.withZipFileSystem(ZipUtil.kt:134)
at org.jetbrains.kotlin.konan.file.ZipUtilKt.withZipFileSystem(ZipUtil.kt:82)
at org.jetbrains.kotlin.konan.file.ZipFileSystemInPlaceAccessor.withZipFileSystem(ZipFileSystemAccessor.kt:16)
at org.jetbrains.kotlin.library.impl.BaseLibraryAccess.inPlace(KotlinLibraryLayoutImpl.kt:67)
at org.jetbrains.kotlin.library.impl.MetadataLibraryImpl.packageMetadataParts(KotlinLibraryImpl.kt:73)
at org.jetbrains.kotlin.konan.library.impl.KonanLibraryImpl.packageMetadataParts(KonanLibraryImpl.kt)
p
Humm 🤔 I haven't experienced that one. Is complaining about something expected to be a directory not being it. Check what could cause this error, perhaps a disk permission, just guessing.