MATLAB: Android API version error while building simulink app in android device

adroid ndkandroid api errorminsdkversionsimulink

Hi,
I am trying to build and deploy my simulink app in my android device with android version 10 (API 29) and I am getting the following error:
Android NDK: WARNING: APP_PLATFORM android-17 is higher than android:minSdkVersion 1
If I select 'Monitor and Tune' from the hardware pane, the app runs perfectly fine in the device. Also, while setting up the device, the Android studio checks if your device is able to run the app by building, installing and running a sample app and that also worked well.
By following the answers to the relative questions on matlab help, I made the following changes in the build.gradle file (these changes can also be made through Android Studio. It just edits the build.gradle file):
compileSdkVersion 29
buildToolsVersion '29.0.3'
and, minSdkVersion 17
targetSdkVersion 29
Also, tried inputting minSdkVersion 1 for trial and error purpose but getting the same error.

Best Answer

Thats a warning not an error. warnings does not stop build process. Error message must be below to that. Can you please copy entire error message from diagonostic viewer to here?