streetsofboston
10/24/2019, 5:41 AM@Model
class?Luca Nicoletti
10/24/2019, 8:07 AMCould not find method compose() for arguments [true] on BuildType container of type org.gradle.api.internal.FactoryNamedDomainObjectContainer.
Icaro Temponi
10/24/2019, 12:15 PMorg.gradle.api.artifacts.UnknownConfigurationException: Configuration with name 'kotlinPlugin' not found
With AGP 4.0.0-alpha01 and Kotlin gradle plugin 1.3.60-eap-25, what else do I need to add to gradle to enable this? (as shown in the compose tutorial: https://developer.android.com/jetpack/compose/setup#compose-compiler)
PS: Also not working with Kotlin plugin version 1.3.60-eap-76
.Icaro Temponi
10/24/2019, 1:19 PMCaused by: java.lang.AssertionError: IR backend shouldn't call KotlinTypeMapper.mapType: AppMain
Well that's sad, just when I was trying to add Compose to an existing app to be the first to use it at production, I get this with 3 different versions of Kotlin, looks like Play Store will be compose free for some more time :troll:.
PS: Fixed by commenting the following lines:
buildFeatures {
compose = true
}
Tristan Caron
10/24/2019, 1:50 PMwaqas
10/24/2019, 1:55 PMAndroid Studio 4.0 Canary 1 Build #AI-192.6817.14.36.5959023, built on October 23, 2019
but I don’t see any import from sample option. I wanted to import JetNews
and play around with it. Anybody else facing similar issue?
Basically this first step:
If you're in the Welcome to Android Studio window, select Import an Android code sample. If you already have an Android Studio project open, select File > New > Import Sample from the menu bar.
Icaro Temponi
10/24/2019, 2:35 PMwasyl
10/24/2019, 3:30 PMLayout
function calls LayoutNode
with some paramerters and passes children. However I can’t seem to find LayoutNode
function anywhere, and the class has no constructor, so where is it coming from? Does Compose plugin handle Node subclasses somehow and generate functions for them?jim
10/24/2019, 4:28 PMNeal Sanche
10/24/2019, 4:37 PM@Preview
@Composable
fun MainScreen() {
MaterialTheme {
Row(mainAxisSize = LayoutSize.Expand) {
Greeting("Android")
}
}
}
@Composable
fun Greeting(name: String) {
Card(shape = RoundedCornerShape(4.dp), elevation = 10.dp) {
Text(text = "Yo $name!", style = +themeTextStyle { button })
}
}
and my preview looks like:Icaro Temponi
10/24/2019, 5:56 PMjim
10/24/2019, 6:25 PMkotlin-reflection
in the tutorial? Can I get a link?kioba
10/24/2019, 9:50 PM+imageResource(R.drawable.ic_face_primary_24dp)
?
The method fails to generate the bitmap and throws IllegalArgumentException("Problem decoding into existing bitmap")
I am not sure if I mess up or we can only decode Bitmaps atmandrew
10/25/2019, 12:09 AMcolorResource
for decoding color references?kioba
10/25/2019, 12:47 AMColumn { Text() }
the text is wrapped to the next line but
with `Row { Column{ Text() } } a long text is cropped. Is there any way to limit the width of the Text to the size of its container?itnoles
10/25/2019, 2:15 AMmzgreen
10/25/2019, 4:54 AMRafal
10/25/2019, 11:18 AMwidth=4dp
and height=match_parent
in compose?Jakub Valigura
10/25/2019, 12:54 PMmzgreen
10/25/2019, 1:02 PM@GenerateView
to consume Compose UI like normal views. But remember that Compose is not production ready yet.tieskedh
10/25/2019, 1:16 PMBruno_
10/25/2019, 5:32 PMMaterialTheme
ModalDrawerLayout(
bodyContent = { AppContent { onDrawerStateChange(DrawerState.Opened) } }
)
}
i placed inside Material theme AppContent()
directlydavid.vavra
10/25/2019, 6:23 PM+vectorResource(R.drawable.ic_face_primary_24dp)
. When it should be used and when not? Couldn't find it in the tutorial or ADS talks.Sergey B
10/25/2019, 7:54 PMSrSouza
10/25/2019, 8:26 PMandrew
10/25/2019, 9:22 PMandrew
10/25/2019, 9:22 PMandrew
10/25/2019, 9:23 PMandrew
10/25/2019, 9:43 PMBlundell
10/26/2019, 6:02 AMBlundell
10/26/2019, 6:02 AMLuca Nicoletti
10/26/2019, 6:51 AMwasyl
10/26/2019, 10:42 AMAndrey Kulikov
10/26/2019, 1:06 PM