Yofou
02/16/2021, 5:47 PMYan Pujante
02/16/2021, 6:48 PMCause: cannot assign instance of java.util.Collections$EmptyList to field java.lang.StackTraceElement.moduleVersion of type java.lang.String in instance of java.lang.StackTraceElement
Any idea? I am using java15 / kotlin 1.4.30 / compose 0.3.0-build154. Is this combination the problem?Yan Pujante
02/16/2021, 7:15 PMeygraber
02/17/2021, 7:50 AMYan Pujante
02/17/2021, 2:24 PMgbaldeck
02/17/2021, 2:32 PMrsktash
02/17/2021, 6:00 PMandroidx.activity:activity-compose:1.3.0-alpha02
It’s a multi-platform project with common UI for both android and desktopDirk Hoffmann
02/17/2021, 9:02 PMClickableText
?theapache64
02/18/2021, 3:05 PMTheOnlyTails
02/19/2021, 10:09 AMWindow(String = ..., IntSize = ..., IntOffset = ..., Boolean = ..., BufferedImage? = ..., MenuBar? = ..., Boolean = ..., Boolean = ..., WindowEvents = ..., (() -> Unit)? = ..., () -> Unit = ...): Unit' is only available since Kotlin 1.4.30 and cannot be used in Kotlin 1.4
This is my build.gradle.kts:
import org.jetbrains.compose.compose
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
plugins {
kotlin("jvm") version "1.4.30"
id("org.jetbrains.compose") version "0.3.0-build153"
}
val mavenGroup = "com.theonlytails.jetpackcompose"
group = mavenGroup
repositories {
jcenter()
maven("<https://maven.pkg.jetbrains.space/public/p/compose/dev>")
}
dependencies {
implementation(compose.desktop.currentOs)
}
compose.desktop {
application {
mainClass = "$mavenGroup.MainKt"
nativeDistributions {
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
packageName = mavenGroup
}
}
}
I have no idea what's wrong, or how to solve it. Looking at the list of dependencies, I can see kotlin 1.4.30 is there.TheMrCodes
02/19/2021, 11:02 PMAdam Brown
02/20/2021, 6:05 PMTextFieldValue
(as in I wasn't able to alt+enter to automatically add the import) but if I manually add the import, than it's fine.Adam Brown
02/20/2021, 6:07 PMAdam Brown
02/21/2021, 3:02 AMDuplicate class androidx.compose.animation.AlignmentBasedSizeAnimation$animateTo$1 found in modules animation-1.0.0-alpha12-runtime.jar (androidx.compose.animation:animation:1.0.0-alpha12) and animation-debug-runtime.jar (org.jetbrains.compose.animation:animation-android-debug:0.3.0-build152)
Duplicate class androidx.compose.animation.AlignmentBasedSizeAnimation$offset$1 found in modules animation-1.0.0-alpha12-runtime.jar (androidx.compose.animation:animation:1.0.0-alpha12) and animation-debug-runtime.jar (org.jetbrains.compose.animation:animation-android-debug:0.3.0-build152)
Duplicate class androidx.compose.animation.AnimStates found in modules animation-1.0.0-alpha12-runtime.jar (androidx.compose.animation:animation:1.0.0-alpha12) and animation-debug-runtime.jar (org.jetbrains.compose.animation:animation-android-debug:0.3.0-build152)
Duplicate class androidx.compose.animation.AnimatedVisibilityKt found in modules animation-1.0.0-alpha12-runtime.jar (androidx.compose.animation:animation:1.0.0-alpha12) and animation-debug-runtime.jar (org.jetbrains.compose.animation:animation-android-debug:0.3.0-build152)
Duplicate class androidx.compose.animation.AnimatedVisibilityKt$AnimatedVisibility$1 found in modules animation-1.0.0-alpha12-runtime.jar (androidx.compose.animation:animation:1.0.0-alpha12) and animation-debug-runtime.jar (org.jetbrains.compose.animation:animation-android-debug:0.3.0-build152)
Duplicate class androidx.compose.animation.AnimatedVisibilityKt$AnimatedVisibility$2 found in modules animation-1.0.0-alpha12-runtime.jar (androidx.compose.animation:animation:1.0.0-alpha12) and animation-debug-runtime.jar (org.jetbrains.compose.animation:animation-android-debug:0.3.0-build152)
Duplicate class androidx.compose.animation.AnimatedVisibilityKt$AnimatedVisibility$3 found in modules animation-1.0.0-alpha12-runtime.jar (androidx.compose.animation:animation:1.0.0-alpha12) and animation-debug-runtime.jar (org.jetbrains.compose.animation:animation-android-debug:0.3.0-build152)
Duplicate class androidx.compose.animation.AnimatedVisibilityKt$AnimatedVisibilityImpl$1 found in modules animation-1.0.0-alpha12-runtime.jar (androidx.compose.animation:animation:1.0.0-alpha12) and animation-debug-runtime.jar (org.jetbrains.compose.animation:animation-android-debug:0.3.0-build152)
Duplicate class androidx.compose.animation.AnimatedVisibilityKt$AnimatedVisibilityImpl$2 found in modules animation-1.0.0-alpha12-runtime.jar (androidx.compose.animation:animation:1.0.0-alpha12) and animation-debug-runtime.jar (org.jetbrains.compose.animation:animation-android-debug:0.3.0-build152)
Duplicate class androidx.compose.animation.AnimatedVisibilityKt$AnimatedVisibilityImpl$2$1 found in modules animation-1.0.0-alpha12-runtime.jar (androidx.compose.animation:animation:1.0.0-alpha12) and animation-debug-runtime.jar (org.jetbrains.compose.animation:animation-android-debug:0.3.0-build152)
Duplicate class androidx.compose.animation.AnimatedVisibilityKt$AnimatedVisibilityImpl$3 found in modules animation-1.0.0-alpha12-runtime.jar (androidx.compose.animation:animation:1.0.0-alpha12) and animation-debug-runtime.jar (org.jetbrains.compose.animation:animation-android-debug:0.3.0-build152)
Duplicate class androidx.compose.animation.AnimatedVisibilityKt$AnimatedVisibilityImpl$animations$1$1 found in modules animation-1.0.0-alpha12-runtime.jar (androidx.compose.animation:animation:1.0.0-alpha12) and animation-debug-runtime.jar (org.jetbrains.compose.animation:animation-android-debug:0.3.0-build152)
olonho
02/21/2021, 10:34 AM0.3.0-rc1
build and give your feedback. https://github.com/JetBrains/compose-jb/blob/master/CHANGELOG.md#m3 contains list of changes in this build.Yan Pujante
02/21/2021, 2:14 PM@Composable
fun TestLayout() {
Column(horizontalAlignment = Alignment.CenterHorizontally, modifier = Modifier.fillMaxWidth()) {
Text("line1")
Divider()
Box(modifier = Modifier.border(width = 1.dp, color = Color.Blue), contentAlignment = Alignment.Center) {
Text("0", style = MaterialTheme.typography.h1)
CircularProgressIndicator(
progress = 1.0F,
strokeWidth = 10.dp,
modifier = Modifier.size(100.dp, 100.dp)
)
}
Divider()
Text("line3")
}
}
This generates the following rendering:
1. why is the circle sticking out of the box?
2. why is the 0 not centered (which is what I am trying to do)?orangy
02/21/2021, 5:13 PMPopup
to some UI. Luckily it happens if there are 2 Popup
elements in the composition hierarchy, but not sure.orangy
02/21/2021, 5:25 PMPopup
, but after adding it to composition hierarchy onDismissRequest
never gets called and mouse never registers clicks anywhere else (but the application is running and UI keeps updating).Shabinder Singh
02/21/2021, 8:41 PMorangy
02/22/2021, 12:13 PMFont
from JVM resources? Can’t find anything…rsktash
02/22/2021, 3:59 PMdarkmoon_uk
02/23/2021, 2:19 AMLazard
02/23/2021, 11:52 AMSKIKO_RENDER_API
to SOFTWARE
it works just fine so it's definitely an OpenGL problem.
Anyone has the same problem ? I'm on Ubuntu 18.04.5 LTSYan Pujante
02/23/2021, 5:07 PMImage(
painter = svgResource("images/logo.svg"),
contentDescription = "Logo",
modifier = Modifier.fillMaxSize(),
)
Exception in thread "AWT-EventQueue-0" java.lang.IllegalStateException: Size is unspecified
at androidx.compose.ui.geometry.Size.getWidth-impl(Size.kt:48)
at androidx.compose.ui.geometry.Size.times-7Ah8Wj8(Size.kt:111)
at androidx.compose.ui.res.SVGPainter.getIntrinsicSize-NH-jbRc(DesktopSvgResources.desktop.kt:80)
at androidx.compose.ui.draw.PainterModifier.getUseIntrinsicSize(PainterModifier.kt:104)
at androidx.compose.ui.draw.PainterModifier.modifyConstraints-ZezNO4M(PainterModifier.kt:202)
Marcin Wisniowski
02/23/2021, 6:00 PMsamuel
02/24/2021, 6:19 PMresources
folder when developing an intellij plugin? I’ve tried imageResource
and makeFromEncoded
but each of these methods fails to find the image resourceeygraber
02/24/2021, 10:39 PMabbic
02/25/2021, 11:10 AMTheMrCodes
02/25/2021, 2:14 PMrsktash
02/25/2021, 2:17 PMrsktash
02/25/2021, 2:17 PMDominaezzz
02/25/2021, 2:38 PMrsktash
02/25/2021, 2:40 PMDominaezzz
02/25/2021, 2:52 PMrsktash
02/25/2021, 2:54 PMDominaezzz
02/25/2021, 2:55 PMrsktash
02/25/2021, 3:23 PMDominaezzz
02/25/2021, 4:13 PMrsktash
02/25/2021, 4:36 PM