FAQ

1. Cant get home data?

Check your domain link and secret key in the app code. also test all apis in postman.

2. Sign in with mobile number is available?

No, currently sign in with mobile number is not available.

3. Getting NDK version error while running the app.

Go to project directory -> android -> app -> build.gradle

Add NDk version in build.gradle file with the Versions available locally

  1. ndkVersion '22.0.7026061'

4. How to Enable / Disable screen recording in app?

Go to project directory -> android -> app -> src -> main -> kotlin -> com -> mediacity -> eclass -> MainActivity.kt

comment this line to enable screen recording

5. Getting error while creating jks file 'keytool' is not recognized as an internal or external command.

To solve this error watch the below given video link

6. How to solve gradle version issue?

A Gradle version issue can occur when the version of Gradle that your project is using is incompatible with the version of Gradle that is installed on your system. This can happen if you are using a different version of Gradle than what your project was created with or if you have multiple versions of Gradle installed on your system.

  1. Run the command in the terminal

  • cd android

  • gradlew --version

2. Check your gradle version and replace it in the app code at the path

  • project directory -> android -> gradle-> wrapper-> gradle-wrapper.properties

7. APK size of App is too large, how to reduce apk size?

When you upload the app bundle to play console ,the apk size automatically reduced to 40-50MB

To generate app bundle ,

Go to project's terminal ,run the command

  • flutter clean

  • flutter build appbundle

8. Some Courses not shown in app

Please check course not private from admin side.

9. Zoom & PayHere Use

  1. Zoom Meeting will work only when you will set targetSdkVersion 30 in android/app/build.gradle file. If you will set targetSdkVersion 31 (which is required for Play Store) in android/app/build.gradle file, your App will crash when you will try to join Zoom meeting. This issue will remain untill the developer of flutter_zoom_sdk package will fix it and release a new update.

  2. Right click on pubspec.yaml file, in context menu, go to Open In -> Terminal and then run 'flutter pub run flutter_zoom_sdk:unzip_zoom_sdk' (without quote). See the given images Screenshot-1 & Screenshot-2 for reference.

  3. If you want to use Payhere payment gateway in the App, you will have to remove flutter_zoom_sdk package from pubspec.yaml file and remove all the codes in lib/zoom/zoom_meeting_screen.dart file and codes of method named joinMeeting(BuildContext context) in lib/zoom/join_screen.dart file. Also, you will have to uncomment payhere_mobilesdk_flutter package in pubspec.yaml file and uncomment all the codes in lib/gateways/payhere_payment.dart & of a condition else if (id == 7) in lib/screen/payment_gateway.dart file.

Last updated