https://kotlinlang.org logo
#compose
Title
# compose
f

Fudge

05/17/2019, 9:16 AM
Is there a way to try compose on a windows pc?
m

mbonnin

05/17/2019, 9:20 AM
Looking at https://android.googlesource.com/platform/frameworks/support/+/refs/heads/androidx-master-dev/ui/studiow#165, it doesn't look like it is supported. You can always install a linux VM I guess ?
f

Fudge

05/17/2019, 9:20 AM
That's what I did at first, but it's so slow 😞
m

matiaslev

05/17/2019, 12:37 PM
I can see compose on windows with https://github.com/Mishkun/try-compose
f

Fudge

05/17/2019, 12:49 PM
I can't run anything though, this repo is intended for linux as can see by the
./studiow
m

matiaslev

05/17/2019, 1:07 PM
I am running it on windows and seeing the source code of compose. What I did was clone the repo, copy paste the zip that you can download from the readme. without using studiow.
f

Fudge

05/17/2019, 1:08 PM
but do you have the compose plugin?
Is completion working as expected?
m

matiaslev

05/17/2019, 1:10 PM
I can see the Hello World example
f

Fudge

05/17/2019, 1:10 PM
On an android device?
m

matiaslev

05/17/2019, 1:12 PM
yes
f

Fudge

05/17/2019, 1:12 PM
what folder did you open in android studio?
m

matiaslev

05/17/2019, 1:14 PM
as a normal project, and the inside the root I paste the androidx_prebuilts folder downloaded from the readme of that repo. Just works for me after that When I launch it.
f

Fudge

05/17/2019, 1:22 PM
Where is the hello world example? Does it just appear in the root directory for you?
OK I found the example but I can't quite figure out how to launch it
I did it! thanks @matiaslev
and code completion is working as well!
m

matiaslev

05/17/2019, 1:48 PM
great @Fudge glade to hear that.
d

dewildte

05/17/2019, 2:09 PM
Can we run Studio from the WSL? Maybe I can do it using Pengwin.
f

Fudge

05/17/2019, 2:14 PM
@dewildte I don't recommend trying to do it, WSL has no graphical interface. Just use the windows method we talked about here.
2 Views