eygraber
11/06/2020, 2:53 AMrun
task, Gradle throws an Exception:
A problem occurred configuring project ':desktopApp'.
> Could not create task ':desktopApp:run'.
> at index 0
Here are my gradle files:
root
buildscript {
repositories {
jcenter()
maven("<https://maven.pkg.jetbrains.space/public/p/compose/dev>")
}
dependencies {
classpath("org.jetbrains.compose:compose-gradle-plugin:0.1.0-m1-build62")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.10")
}
}
allprojects {
repositories {
jcenter()
maven("<https://maven.pkg.jetbrains.space/public/p/compose/dev>")
}
}
shared
import org.jetbrains.compose.compose
plugins {
kotlin("multiplatform")
id("org.jetbrains.compose")
}
kotlin {
jvm()
sourceSets {
val commonMain by getting {
dependencies {
api(compose.runtime)
api(compose.foundation)
api(compose.material)
api(compose.materialIconsExtended)
}
}
val jvmMain by getting {
dependsOn(commonMain)
dependencies {
api(compose.desktop.common)
}
}
}
}
desktop
import org.jetbrains.compose.compose
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
plugins {
kotlin("multiplatform")
id("org.jetbrains.compose")
}
kotlin {
jvm {
withJava()
}
sourceSets {
val commonMain by getting {
dependencies {
implementation(project(":shared"))
}
}
val jvmMain by getting {
dependsOn(commonMain)
dependencies {
implementation(compose.desktop.currentOs)
}
}
}
}
compose.desktop {
application {
mainClass = "com.compose.desktop.DesktopAppKt"
nativeDistributions {
targetFormats(TargetFormat.Deb)
packageName = "ComposeHelloWorldDesktop"
}
}
}
eygraber
11/06/2020, 5:30 AMGrigorii Yurkov
11/06/2020, 6:08 AMKarthick
11/06/2020, 7:58 AMgoogle.compose
instead of androidx.compose
to support multi-platformAnimesh Sahu
11/06/2020, 10:20 AMClass 'androidx.compose.desktop.AppWindowKt' is compiled by a new Kotlin compiler backend and cannot be loaded by the old compiler
when using Kotlin 1.4.10?Karthick
11/06/2020, 11:27 AMdelblanco
11/06/2020, 11:35 AM> Task :desktop:run
Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedClassVersionError: org/jetbrains/skiko/Library has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
Luc Girardin
11/06/2020, 12:43 PMGrigorii Yurkov
11/06/2020, 1:16 PMCanvas
? drawPoints
doesn't workYan Pujante
11/06/2020, 1:22 PMGlen
11/06/2020, 1:42 PMAnimesh Sahu
11/06/2020, 3:20 PMZach Klippenstein (he/him) [MOD]
11/06/2020, 6:30 PMspierce7
11/06/2020, 6:56 PMspierce7
11/06/2020, 7:07 PMDraget
11/06/2020, 7:12 PMDraget
11/06/2020, 8:07 PMMisterixis
11/06/2020, 8:55 PMDumitru Preguza
11/06/2020, 9:29 PMspierce7
11/06/2020, 10:08 PMMarcin Wisniowski
11/06/2020, 10:51 PMBen Woodworth
11/07/2020, 2:23 AMspierce7
11/07/2020, 8:16 PMJohn O'Reilly
11/07/2020, 8:24 PMjFrame.contentPane.add(mapViewer)
isn't working
val current = AppManager.getCurrentFocusedWindow()
val jFrame = current.window
ubu
11/07/2020, 11:38 PMdyld: lazy symbol binding failed: Symbol not found: _objc_opt_new
Referenced from: /Users/eugene/.skiko/b9408918342fa3c0511232e1869d6b3885a57b45a57800586f357a2461785a4e/libskiko.dylib (which was built for Mac OS X 10.15)
Expected in: /usr/lib/libobjc.A.dylib
dyld: Symbol not found: _objc_opt_new
Referenced from: /Users/eugene/.skiko/b9408918342fa3c0511232e1869d6b3885a57b45a57800586f357a2461785a4e/libskiko.dylib (which was built for Mac OS X 10.15)
Expected in: /usr/lib/libobjc.A.dylib
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':run'.
> Process 'command '/Users/eugene/Library/Java/JavaVirtualMachines/openjdk-15.0.1/Contents/Home/bin/java'' finished with non-zero exit value 134
* 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 16s
Couldn’t fix it (spent a while trying different JDK).
Suggestions from https://kotlinlang.slack.com/archives/C01D6HTPATV/p1604662532185700 didn’t work for me.Igor Brishkoski
11/08/2020, 2:50 PM------
> [1/19] FROM <http://mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsservercore-ltsc2019@sha256:2506aed9fa9adec7118a1058d117b5ff579fa0c74f9a47bece4008593a057e5d|mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsservercore-ltsc2019@sha256:2506aed9fa9adec7118a1058d117b5ff579fa0c74f9a47bece4008593a057e5d>:
------
failed to solve with frontend dockerfile.v0: failed to build LLB: failed to register layer: Error processing tar file(exit status 1): link /Files/Program Files/common files/Microsoft Shared/Ink/en-US/micaut.dll.mui /Files/Program Files (x86)/common files/Microsoft Shared/ink/en-US/micaut.dll.mui: no such file or directory
SrSouza
11/08/2020, 4:05 PMSrSouza
11/08/2020, 4:55 PMTimo Drick
11/09/2020, 12:37 AMImage.makeFromEncoded(compressedImage.byteArray).asImageAsset()
It looks like the memory allocation for the image is not freed automatically when i remove all references to the ImageAsset. What do i have to do to cleanup the memory when i do not need the image anymore?
In android i do have to call Bitmap.recycle but for Image i only found Image.reset which do not free the memory.Zimri Leisher
11/09/2020, 4:44 AMZimri Leisher
11/09/2020, 4:44 AMAnimesh Sahu
11/09/2020, 5:08 AM