Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First Android app: Android Basics with Compose #935

Open
essexgit opened this issue Dec 4, 2024 · 0 comments
Open

First Android app: Android Basics with Compose #935

essexgit opened this issue Dec 4, 2024 · 0 comments

Comments

@essexgit
Copy link

essexgit commented Dec 4, 2024

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-compose-first-app?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-1-pathway-2%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-first-app#3

In which task and step of the codelab can this issue be found?
Create your first Android App - 4. Update the text

Describe the problem
Template has changed
instead of:
GreetingCardTheme { // A surface container using the 'background' color from the theme Surface( modifier = Modifier.fillMaxSize(), color = MaterialTheme.colorScheme.background ) { Greeting("Android") } }
the 'Empty' template produces:
GreetingCardTheme { Scaffold(modifier = Modifier.fillMaxSize()) { innerPadding -> Greeting( name = "Ralph", modifier = Modifier.padding(innerPadding) ) } }

Scaffold instead of Surface - I've copy pasted as a workaround, but this is a beginner tutorial and it makes it hard to follow

Steps to reproduce?

  1. Go to...
  2. Click on...
  3. See error...

Versions
Android Studio version: Android Studio Ladybug | 2024.2.1 Patch 2
Build #AI-242.23339.11.2421.12550806, built on October 24, 2024
Runtime version: 21.0.3+-12282718-b509.11 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.awt.windows.WToolkit
Windows 10.0
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 4096M
Cores: 8
Registry:
ide.experimental.ui=true
i18n.locale=
Non-Bundled Plugins:
com.intellij.marketplace (242.24335)
hunspell (242.22855.133)
Dart (242.22855.32)
com.intellij.plugins.vscodekeymap (242.20224.385)
tanvd.grazi (242.21829.38)
izhangzhihao.rainbow.brackets.lite (1.2.0)
io.flutter (82.1.3)

API version of the emulator: BA

Additional information
Include screenshots if they would be useful in clarifying the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant