Successfully running my dark toggle button demo bo...
# compose-desktop
m
Successfully running my dark toggle button demo both on the Android and Desktop! 🤩 Code: https://github.com/lcdsmao/Dark-Toggle-Button-Sample-Jetpack-Compose
K 13
👍 7
🔥 37
a
How do you change between light & dark?
b
The future is here
a
uuu_Uuu so awesome!
g
WOW! You made an awesome example! I tried to open this project, but can’t get it working because some error with the resources.
🙏 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:
Copy code
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
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