Android API version error while building simulink app in android device

조회 수: 1 (최근 30일)
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.

채택된 답변

Sutanu Maiti
Sutanu Maiti 2020년 5월 22일
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
Nicolas Bedoya
Nicolas Bedoya 2021년 3월 31일
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 2021년 3월 31일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Android Devices에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by