Description: I'm trying to build the M3 catalog app by using Android Studio Ladybug Feature Drop | 2024.2.2 Beta 1 and the latest available M3 repository as of today. However, I'm getting various errors:
Invalid Gradle JDK configuration found
Undefined java.home on the project gradle/config.properties file when using the gradleJvm #GRADLE_LOCAL_JAVA_HOME macro. To mitigate the issue, this was changed to use the Embedded JDK (JetBrains Runtime 21.0.4).
Your build is currently configured to use incompatible Java 21.0.4 and Gradle 7.6.2. Cannot sync the project.
We recommend upgrading to Gradle version 8.9.
The minimum compatible Gradle version is 8.5.
The maximum compatible Gradle JVM version is 19.
Possible solutions:
- Upgrade to Gradle 8.9 and re-sync
- Upgrade to Gradle 8.5 and re-sync
I clicked on Upgrade to Gradle 8.5 and re-sync and it successfuly synced the project. But during the build process, I've got another compilation error:
\lib\java\com\google\android\material\loadingindicator\LoadingIndicatorDrawingDelegate.java:33: Error: Symbol not found
import androidx.graphics.shapes.Shapes_androidKt;
In addition, I get...
Android Gradle plugin version 7.4.2 has an upgrade available. Start the AGP Upgrade Assistant to update this project's AGP version.
But that doesn't work either as I get...
This step is blocked. The upgrade assistant is unable to upgrade this project.
Expected behavior: Compiling the source is successful without errors. How can I build the catalog app without errors?
Description: I'm trying to build the M3 catalog app by using Android Studio Ladybug Feature Drop | 2024.2.2 Beta 1 and the latest available M3 repository as of today. However, I'm getting various errors:
I clicked on
Upgrade to Gradle 8.5 and re-sync
and it successfuly synced the project. But during the build process, I've got another compilation error:In addition, I get...
Android Gradle plugin version 7.4.2 has an upgrade available. Start the AGP Upgrade Assistant to update this project's AGP version.
But that doesn't work either as I get...This step is blocked. The upgrade assistant is unable to upgrade this project.
Expected behavior: Compiling the source is successful without errors. How can I build the catalog app without errors?
Minimal sample app repro: Download the current M3 project code on https://github.com/material-components/material-components-android ("master" branch).