Andres Sandoval

Tutorial shows how to add “top bar” title app name to an Android Compose activity. Create function topBar() copy snippet below, change string “My Important Dates”.

@Composable
fun topBar() {
TopAppBar(title = {
Text(
text = "My Important Dates",
style = MaterialTheme.typography.h6,
textAlign = TextAlign.Center
)
})
}

Call…

--

--

Error message “Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8”

Android Studio error

Fix: (Mac)

  1. Click Android studio -> Preferences -> Build, Execution, Deployment -> Build Tools -> Gradle -> Gradle JDK-> Select version 11
  2. Clean and build project

--

--

Haven’t watched all the videos, but my favorite topics this year was Android Compose and all the Security improvement changes coming soon.

Cool Android permissions changes for Android 12 Sdk 31, no more asking user permissions to access pictures, cool new Photo Picker API

Compose session:

What’s new…

--

--