https://kotlinlang.org logo
Title
m

Mao

11/05/2020, 2:44 PM
Successfully running my dark toggle button demo both on the Android and Desktop! 🤩 Code: https://github.com/lcdsmao/Dark-Toggle-Button-Sample-Jetpack-Compose
🔥 37
👍 7
:kotlin-intensifies: 13
a

alorma

11/05/2020, 2:46 PM
How do you change between light & dark?
b

Big Chungus

11/05/2020, 3:10 PM
The future is here
a

alorma

11/05/2020, 3:22 PM
uuu_Uuu so awesome!
g

Geert

11/08/2020, 1:53 PM
WOW! You made an awesome example! I tried to open this project, but can’t get it working because some error with the resources.
:thank-you: 1
👍 1
I finally managed to solve it myself and then I saw you already updated the dependencies 😉
How do you start the desktop application? Still getting an error:
A problem occurred configuring project ':desktop'.
> Could not create task ':desktop:run'.
   > at index 0
When I press run on Main.kt I get:
Error: Could not find or load main class com.github.lcdsmao.darktoggle.MainKt
m

Mao

11/08/2020, 3:03 PM
I also got this error when using Gradle 6.7. If you update the gradle or android plugin version, maybe restore to the older version can solve this problem.
👍 1