Any idea why Compose Preview is not working anymor...
# compose
z
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
as I know it broken now because of Kotlin 1.4, will be fixed in upcoming AS alphas
πŸ‘† 1
πŸ‘ 2
m
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
It's because the dependency on Kotlin 1.4
Canary 8 should fix that
z
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
Alpha 8 takes a long time to release more than three weeks. Canary builds used to be released faster I guess.
m
previews are back with
1.0.0-alpha01
and canary 8
πŸŽ‰ 2
m
Wow thanks for the hot news. Been waiting for so long πŸ‘ŒπŸ˜€
s
canary 8 update not visible in the jetbrains toolbox yet πŸ˜•
πŸ”˜ 2
z
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
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