SmartToolFactory / Jetpack-Compose-Tutorials

๐Ÿš€๐Ÿงจ๐Ÿ“ Series of Tutorials to learn about Jetpack Compose with subjects Material Widgets, Layout, SubcomposeLayout, custom layouts, State, custom rememberable, recomposition, LaunchedEffect, side-effects, Gesture, Animation, Navigation, Canvas, UIs like whatsapp and others.
Apache License 2.0
3.01k stars 312 forks source link

How to build this project? #51

Closed Matej-Chmel closed 1 month ago

Matej-Chmel commented 1 month ago

When I try to complete a Gradle Sync in Android Studio, the sync fails with this error:

* Where:
Build file 'Jetpack-Compose-Tutorials\Tutorial1-1Basics\build.gradle.kts' line: 1

* What went wrong:
An exception occurred applying plugin request [id: 'com.android.application', version: '8.5.2']
> Failed to apply plugin 'com.android.internal.version-check'.
   > Minimum supported Gradle version is 8.7. Current version is 8.5. If using the gradle wrapper, try editing the distributionUrl in Jetpack-Compose-Tutorials\gradle\wrapper\gradle-wrapper.properties to gradle-8.7-all.zip

I thought that changing the distributionUrl would fix the issue but there is no folder gradle\wrapper.

I am using the latest Android Studio version:

Android Studio Koala | 2024.1.1 Patch 2
Build #AI-241.18034.62.2411.12169540, built on August 1, 2024
Runtime version: 17.0.11+0--11852314 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.

Please, give me some guidance on how to run the project.

SmartToolFactory commented 1 month ago

You should replace 8.5.2 with 8.7 or newer version of gradle if you get that error.