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

Geert

12/10/2019, 11:00 PM
I don’t know whats wrong with my project, but since I changed from dev2 to dev3, my
setContent
en
Text
functions wont work/import. I tried to import gradle as using api/implementation, am I missing something? Dependencies:
Copy code
implementation 'androidx.ui:ui-layout:0.1.0-dev03'
implementation 'androidx.ui:ui-material:0.1.0-dev03'
implementation 'androidx.ui:ui-tooling:0.1.0-dev03'
l

Louis Pullen-Freilich [G]

12/10/2019, 11:02 PM
You probably need
ui-framework
dependency
👍 2
s

Simon Schubert

12/11/2019, 10:38 AM
Looking into the Jetnews sample project helped me a lot to migrate from
dev02
to
dev03
https://github.com/android/compose-samples/blob/master/JetNews/app/build.gradle
n

nglauber

12/11/2019, 12:45 PM
@Geert there are more dependencies on
dev-03
g

Geert

12/11/2019, 12:46 PM
Yes, I missed framework indeed. Do you recommand to just import all of the dependencies (Jetnews example) or just the ones you need? Currently it is working with these 3 and ui framework
n

nglauber

12/11/2019, 12:48 PM
I did a presentation last Saturday but I didn’t have a chance to check which ones are required to do an specific work…
I put them all 😅
r

Rodrigo Fonseca

12/11/2019, 7:21 PM
show
r

Roar Gronmo

12/11/2019, 8:19 PM
Copy code
implementation 'androidx.ui:ui-android-text:0.1.0-dev03'
implementation 'androidx.ui:ui-animation:0.1.0-dev03'
implementation 'androidx.ui:ui-animation-core:0.1.0-dev03'
implementation 'androidx.ui:ui-core:0.1.0-dev03'
implementation 'androidx.ui:ui-foundation:0.1.0-dev03'
implementation 'androidx.ui:ui-framework:0.1.0-dev03'
implementation 'androidx.ui:ui-layout:0.1.0-dev03'
implementation 'androidx.ui:ui-material:0.1.0-dev03'
implementation 'androidx.ui:ui-platform:0.1.0-dev03'
implementation 'androidx.ui:ui-test:0.1.0-dev03'
implementation 'androidx.ui:ui-text:0.1.0-dev03'
implementation 'androidx.ui:ui-tooling:0.1.0-dev03'
implementation 'androidx.ui:ui-vector:0.1.0-dev03'
Its overkill of course, and many things have changed, not all are well documented yet.
3 Views