How to run a Simulink package on android and deploy an external project(aar)
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
How to run a Simulink package on android and deploy an external project(aar)
I'm trying to introduce a model package created in simulink into an android app. With reference to the reference URL, we introduced the simulink model to Android Studio and succeeded in executing the application on the android device. But I had to add another package (AAR file). When I add the path of the dependency AAR package and run it, I get an error (error message). The build succeeds, but then the app crashes. Other settings have not changed. Apparently there is an error in the "System.loadLibrary (libname );" section. Probably the path specification isn't working, but I don't know the solution. Please help me.
Android Gradle plugin Ver 4.0.2
Gradle Ver 6.5
What I did on Android studio
-Loading a project
-Edit configuration
-Adding dependencies
Error code
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "~~”]] couldn't find "~~.so"
(“~~” is file pass or file name)
reference URL
- https://jp.mathworks.com/help/supportpkg/android/ug/import-project-to-google-android-studio.html
- https://jp.mathworks.com/support/search.html/answers/645908-how-can-i-communicate-with-other-web-services-than-thingspeak-from-my-simulink-model-deployed-to-and.html?fq[]=asset_type_name:answer&fq[]=category:matlab/gui-development&page=1
2 Kommentare
Sutanu Maiti
am 9 Sep. 2021
Hi Shota,
May I know a bit details about the steps you had followed?
Have you first created a Simulink model and then Build that model?
After model build, Have you imported that generated code into android studio and then added 3rd party library?
If so, then can you please confirm if src\main\jni folder in your android studio project contains the armeabi-v7a folder and that folder contains a .so file or not?
From your error message it looks like that <model name>.so is missing.
Antworten (0)
Siehe auch
Kategorien
Mehr zu Android Devices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!