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

Zhelyazko Atanasov

08/22/2020, 11:11 AM
Any idea why Compose Preview is not working anymore in Android Studio? Is this a known issue? I'm using AS:
Copy code
Android Studio 4.2 Canary 7
Build #AI-201.7846.76.42.6720134, built on July 30, 2020
Runtime version: 1.8.0_242-release-1644-b3-6222593 x86_64
with Gradle
6.6
, Android build tools
4.2.0-alpha07
, Kotlin
1.4.0
and Compose
0.1.0-dev17
. When I rebuild the project, the Preview doesn't show anything. It's a brand new project created using the "Compose Activity" template in AS and the Preview was working before updating to the latest dependencies (the template in AS was using Compose
0.1.0-dev13
).
👍 1
Imported and tested on
develop
branch of Jetnews sample app, but same thing there
g

gildor

08/22/2020, 12:19 PM
as I know it broken now because of Kotlin 1.4, will be fixed in upcoming AS alphas
👆 1
👍 2
m

Mehdi Haghgoo

08/22/2020, 7:24 PM
Seems like the problem is with the recent versions of Compose rather than Studio itself because preview seems fine with earlier versions of Compose.
f

Facundo Rodriguez Arceri

08/22/2020, 11:07 PM
It's because the dependency on Kotlin 1.4
Canary 8 should fix that
z

Zhelyazko Atanasov

08/23/2020, 5:35 AM
I also read somewhere that it's because of Android studio and Kotlin 1.4. Waiting for Canary 8 then. I guess they'll release it soon
m

Mehdi Haghgoo

08/23/2020, 5:37 AM
Alpha 8 takes a long time to release more than three weeks. Canary builds used to be released faster I guess.
m

Matthieu Coisne

08/26/2020, 5:44 PM
previews are back with
1.0.0-alpha01
and canary 8
🎉 2
m

Mehdi Haghgoo

08/26/2020, 5:47 PM
Wow thanks for the hot news. Been waiting for so long 👌😀
s

Sourabh Rawat

08/27/2020, 4:05 PM
canary 8 update not visible in the jetbrains toolbox yet 😕
🔘 2
z

Zhelyazko Atanasov

08/30/2020, 6:38 AM
Oh yes, I forgot to update the thread here 🙂 I'm using Canary 8 since day 1 of its release and previews are back in the game 😎 @Sourabh Rawat why don't you just download it from the Android dev site?
s

Sourabh Rawat

08/31/2020, 4:51 AM
I got the update in the toolbox. I didnt want to mess up my studio installation by downloading directly from thee dev site. 😅
1
👍 1