eClass App Error Solution

If you are getting any of given errors -

Error -1

Package better_player: 0.0.83 had some issues and we have fixed the issues so that we could use the package in our Flutter Projects. This is why, it is must to follow and apply the given steps -

1. Download zip file from here -https://mega.nz/file/dURVmbbZ#SfzbWlHJ3IOMPFcGWMhuzHenRGPTx4yZ MjSLoQE4nzo

2. Extract zip file named local.zip inside project root directory (eClass), 3. Open pubspec.yaml file, 4. Replace better_player: 0.0.83 with better_player: path: local/better_player-0.0.83 5. Now you may run App Project. Error-2

Execution failed for task ':app:checkDebugDuplicateClasses'. > A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable > Duplicate class com.google.android.exoplayer2.ui.DownloadNotificationHelper found in modules jetified-exoplayer-core-2.18.1-runtime (com.google.android.exoplayer:exoplayer- core:2.18.1) and jetified-exoplayer-ui-2.14.2-runtime (com.google.android.exoplayer:exoplayer- ui:2.14.2)

Error-3

E:\flutter\.pub-cache\hosted\pub.dartlang.org\just_audio- 0.9.10\android\src\main\java\com\ryanheise\just_audio\AudioPlayer.java:1000: warning: [deprecat ion] Long(long) in Long has been deprecated return (o == null || o instanceof Long) ? (Long)o : new Long(((Integer)o).intValue()); ^ error: warnings found and -Werror specified 1 error 1 warning FAILURE: Build failed with an exception. Here is the Solution:

1. Open Flutter\.pub-cache\hosted folder, 2. Delete folder named pub.dartlang.org , 3. Download the zip file from given link, 4. Extract the zip file. You will get a folder named pub.dartlang.org , copy this folder and pasted it inside Flutter\.pub-cache\hosted folder, 5. Now run the App.

Download Link https://mega.nz/file/kEo0FJBL#NdbfVVW_ESNTqz2Qz_RF67o0WWbc6tFXqzn1vYbExVQ Error-4

Could not resolve all files for configuration ':jitsi_meet_wrapper:releaseCompileClasspath'. > Could not resolve org.jitsi.react:jitsi-meet-sdk:5.0.2.Required by: project :jitsi_meet_wrapper > Could not resolve org.jitsi.react:jitsi-meet-sdk:5.0.2. > Could not get resource 'https://maven.cashfree.com/release/org/jitsi/react/jitsi-meet- sdk/5.0.2/jitsi-meet-sdk-5.0.2.pom'. > Could not GET 'https://maven.cashfree.com/release/org/jitsi/react/jitsi-meet- sdk/5.0.2/jitsi-meet-sdk-5.0.2.pom'. Received status code 403 from server: Forbidden > Could not resolve org.jitsi.react:jitsi-meet-sdk:5.0.2. > Could not get resource 'https://github.com/jitsi/jitsi-maven- repository/raw/master/releases/org/jitsi/react/jitsi-meet-sdk/5.0.2/jitsi-meet-sdk-5.0.2.pom'. > Could not GET 'https://raw.githubusercontent.com/jitsi/jitsi-maven- repository/master/releases/org/jitsi/react/jitsi-meet-sdk/5.0.2/jitsi-meet-sdk-5.0.2.pom'. > Connect to raw.githubusercontent.com:443 [raw.githubusercontent.com/49.44.79.236, raw.githubusercontent.com/2405:200:1607:2820:41:0:0:36] failed: Connection timed out: connect > Could not resolve org.jitsi.react:jitsi-meet-sdk:5.0.2. > Could not get resource 'https://www.jitpack.io/org/jitsi/react/jitsi-meet-sdk/5.0.2/jitsi- meet-sdk-5.0.2.pom'. > Could not GET 'https://www.jitpack.io/org/jitsi/react/jitsi-meet-sdk/5.0.2/jitsi-meet-sdk- 5.0.2.pom'. Received status code 401 from server: Unauthorized

Here is the Solution:

It seems the package named jitsi_meet_wrapper: ^0.0.5 has been facing some issues nowadays. 1. Open pubspec.yaml file, comment jitsi_meet_wrapper: ^0.0.5 (use ctrl + / to create comment) and run pub get . 2. Now, open lib/screens/jitsi_meet.dart file, comment all codes related to the jitsi_meet_wrapper package.

Watch given video for reference - https://mega.nz/file/0IZHiJjZ#tZnMTHBJMOGlnP0L4PGs-PHuw79_jtzCEOAvyWLsqOU

Error-5

Solution: in this Directory .pub-cache/hosted/pub.dev ->flutter_secure_storage_windows-3.0.0 remove this folder after every time you run flutter pub get

Last updated