Android API version error while building simulink app in android device

1 visualizzazione (ultimi 30 giorni)
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.

Risposta accettata

Sutanu Maiti
Sutanu Maiti il 22 Mag 2020
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?
  6 Commenti
Nicolas Bedoya
Nicolas Bedoya il 31 Mar 2021
What should I change the folder path to? I only ask as I have just changed the path to 'C:\Users\nick\OneDrive\Desktop\TEMPFOLDER\' and am still receiving the same error as the post
Sutanu Maiti
Sutanu Maiti il 31 Mar 2021
The path should not have any folder with spaces or any special charecters in it. Also, android ndk build does not work well with network drives. Better to have any folder on local disk with small and simple path location.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Android Devices in Help Center e File Exchange

Prodotti


Release

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by