# 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**&#x20;

1. ```
   ndkVersion '22.0.7026061'
   ```

![](https://2292229091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MiVlRcUd13Q0E7gPMHh%2Fuploads%2Fbqwb076HINUwLQOHcAOt%2Fimage.png?alt=media\&token=7cc807b3-9b5f-4d15-bf33-51c1bd39f61c)

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

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

&#x20;comment this line to enable screen recording

![](https://2292229091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MiVlRcUd13Q0E7gPMHh%2Fuploads%2FB6S8gjtf5MpmYeqk09SP%2Fimage%20\(10\).png?alt=media\&token=33343551-0a11-4390-bb61-16f12f46fde0)

### &#x20;**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&#x20;

{% embed url="https://www.youtube.com/watch?v=jOyUU_RvgRE" %}

### &#x20;**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**

![](https://2292229091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MiVlRcUd13Q0E7gPMHh%2Fuploads%2FrVnyCIHZ3vLDXafk4HkE%2Fimage.png?alt=media\&token=7e7c1aad-916a-40ad-89b8-a98a09950cae)

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

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

![](https://2292229091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MiVlRcUd13Q0E7gPMHh%2Fuploads%2FlRuFuvo30ZJujpReze3i%2Fimage.png?alt=media\&token=5730f98b-47e8-49e8-805f-b7894b44d704)

### &#x20;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<mark style="color:red;">.</mark>
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.

![](https://2292229091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MiVlRcUd13Q0E7gPMHh%2Fuploads%2F2uUvvs9H6ZGJ6K9AjAKs%2FScreenshot-1.png?alt=media\&token=bf29808b-cb18-4628-94f4-d44dcdad0dac)

![](https://2292229091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MiVlRcUd13Q0E7gPMHh%2Fuploads%2FRVv5l5jaY6HpPif4Ep2K%2FScreenshot-2.png?alt=media\&token=e02fbf24-3741-4487-b570-6354909ed7dd)
