RivaanRanawat / flutter-zoom-clone

111 stars 79 forks source link

Cannot build. #3

Open macasas opened 1 week ago

macasas commented 1 week ago

I was thinking to buy the Udemy course and cloned the repo to run the app first, as the zoom clone was of the most interest to me.

As cloned the project fails with

You are applying Flutter's app_plugin_loader Gradle plugin imperatively using the apply script method, which is deprecated and will be removed in a future release. Migrate to applying Gradle plugins with the declarative plugins block: https://flutter.dev/go/flutter-gradle-plugin-apply

I followed this https://stackoverflow.com/questions/78032396/applying-flutters-app-plugin-loader-gradle-plugin-imperatively-using-the-apply-s by removing the android folder and running flutter create . as suggested

Then I get

FAILURE: Build failed with an exception.

* What went wrong:
The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher.
The following dependencies do not satisfy the required version:
project ':jitsi_meet' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 3m 21s
Error: Gradle task assembleDebug failed with exit code 1

Is it possible that jitsi_meet is the problem?

  jitsi_meet: ^4.0.0
  jitsi_meet_fix: ^4.0.5

Here is my version.

flutter --version
Flutter 3.22.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision a14f74ff3a (3 weeks ago) • 2024-05-22 11:08:21 -0500
Engine • revision 55eae6864b
Tools • Dart 3.4.1 • DevTools 2.34.3

Is there a way to fix this? Does the Udemy course build the same project and would fail in this same way?

Thanks

macasas commented 1 week ago

It turns out that jitsi_meet: is deprecated and the vscode message when running pub get is to replace it with jitsi_meet_wrapper: ^0.2.0+1 , but jitsi_meet_wrapper is not by jitsi, its by saibotma, and was built specifically for a German music app called Appella.

jitsi_meet_wrapper also has some android setup requirements noted here https://github.com/saibotma/jitsi_meet_wrapper/tree/main/jitsi_meet_wrapper

So should jitsi_meet be replaced by jitsi_meet_flutter_sdk instead, an official package? There are so many jitsi named packages its hard to know what they all do, or how they differ.

Which jitsi package changes will this course be updated to to make sure it continues working?