Why does Build fail during Hardware Setup for Simulink Android Support Package for R2018a and R2018b
14 次查看(过去 30 天)
显示 更早的评论
Build fails during the Hardware Setup with the following failure
Build App A problem occurred configuring root project 'TestApp'. > No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android *
5 个评论
采纳的回答
Sruthi Yenugula
2018-9-26
11 个评论
Ryan Mendiola
2018-10-22
编辑:Ryan Mendiola
2018-10-22
Hi Sruthi Yenugula,
Thanks for this info. I was trying also to setup for device Galaxy S5.I follow the above solution but still encountering the Test connection error. When typing in MATLAB the command:
[s,r] = codertarget.android.internal.runAdb(sdkPath,[' shell dumpsys window | grep mCurrentFocus'])
MATLAB command window displays:
s =
255
r =
''grep' is not recognized as an internal or external command,
operable program or batch file.
'
更多回答(6 个)
Sruthi Yenugula
2018-10-22
编辑:Sruthi Yenugula
2018-12-10
2 个评论
Ryan Mendiola
2018-10-22
编辑:Ryan Mendiola
2018-10-22
Hi Sruthi Yenugula,
The patch worked for me. Thank you!
Emilio Maranci
2018-10-28
Hi Sruthi Yenugula, I had the same problem described before, in particular the error "No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android *". I've fixed it using Androidfix_18b.zip, but now I've a new issue. During hwsetup I've encountered problem with the connection test. The error is: "Could not find device configuration file created by TestApp.". How can I solve it?
2 个评论
Emilio Maranci
2018-10-29
Thank you, Sruthi. Probably there was some issues with my smartphone, but I fix it. I've changed device and now it works.
Alessio Conte
2018-11-19
编辑:Alessio Conte
2018-11-19
- When I try to build an app on my device i get the error:
Cannot write to file androidObjectDetection\\src\\main\\res\\layout\\fragment_app.xml.
- This is my situation:
>> codertarget.android.AppBuilder(1)
ans =
AppBuilder with properties:
GradlePath: 'C:\Android\gradle\gradle-4.6'
JavaPath: 'C:\Android\jre'
NDKPath: 'C:\Users\User\AppData\Local\Android\sdk\ndk-bundle'
OpenCVPath: 'C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\androidopencv.instrset\opencv-android-sdk'
SDKPath: 'C:\Users\User\AppData\Local\Android\sdk'
AppName: []
ApkFilePath: []
PackageName: []
ProjectPath: []
ActivityName: []
DefDevice: []
Devices: []
NDKBuildType: 'release'
SkipDeviceCheck: 1
AndroidPluginVersion: '3.1.0'
AppCompactVersion: '26.0.0-alpha1'
DesignVersion: '26.0.0-alpha1'
CompileSdkVersion: '28'
BuildToolsversion: '28.0.3'
defOpts: [1×1 struct]
- I tried solution Androidfix_18b.zip you metioned above but i still have same problem
What can I do?
yubao cao
2018-11-23
Dear Sruthi Yenugula.
I have R2018a version of MATLAB. When I run the app,it shows "com.mathworks.test not install."
I have installed the package for a week.
4 个评论
Yongbo Wei
2019-11-26
I have encountered the same problem as you. Have you solved this problem? How can I solve it? I have been bothered for 15 days. If there is a new solution, please tell me, thank you very much. A good man has a safe life.
omar sheishaa
2018-12-9
kingly note that i run pluginfix.m file and its output is "Could not copy .p files : No matching files were found." then i tried to verify the configuration of Android Device and got the same error at the step of testing connection like before "Could not detect TestApp on the device screen. The screen may be locked or turned off. Ensure that your device screen is unlocked throughout the verification process."
5 个评论
omar sheishaa
2019-1-5
Hi Sruthi
yes 'EnsembleModel.mat' was created and i have the above mentioned toolboxs but the issue is the same, meanwhile i'm trying to run slexHARAndroidExample on Simulink itself without deploying it on android device to test it and enter the readings manually but i got the below errors
Index exceeds array dimensions. Index value 0 exceeds valid range [1-2049] of array f.
Error in 'slexHARAndroidExample/extractFeatures' (line 133)
ofpk = f(olocs);
Error in 'slexHARAndroidExample/extractFeatures' (line 62)
Error in 'slexHARAndroidExample/extractFeatures' (line 16)
kindly assist
Aditya Rastogi
2019-4-21
Hi Shruti,
I am getting the error of " Test connection Could not detect TestApp on the device screen. The screen may be locked or turned off. Ensure that your device screen is unlocked throughout the verification process. " I am using MATLAB 2018b. How can I sort it out?
10 个评论
Ribhu Vajpeyi
2019-9-26
Hi Sruthi,
I tried it without the hardware setup as you suggested for couple of Apps. It's working great! Thanks a lot!
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!