getAndroid​SLSupportP​kgToolPath​s doesnt find GradleHome

Dear colleagues,
The function getAndroidSLSupportPkgToolPaths doesnt find GradleHome and return empty path. Please advice on how to fix the problem.
Best, Ilya

댓글 수: 2

Can you please let us know, why you require that information. Currently we are using Grdale wrapper, so Gradle path is empty.
I built, deployed an app (under Simulink where I converted it into Android) and run it successfully on my Android. Now I want to convert it into Android Studio. The Android Simulink User's Guide says I have to use Gradle Home the function getAndroid... shows me. Unfortunately the function shows me nothing so I have trouble with convertation of my app into Android Studio. Can you please advice what to do?

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

 채택된 답변

Sruthi Yenugula
Sruthi Yenugula 2020년 12월 29일

0 개 추천

Please check the Answer section of https://www.mathworks.com/matlabcentral/answers/645908-how-can-i-communicate-with-other-web-services-than-thingspeak-from-my-simulink-model-deployed-to-and?s_tid=srchtitle (Import the generated project into Android Studio) for importing into Android Studio. Documentation for Import Android Studio will be updated soon. Please feel free to contact, if you face any issues. Thanks for letting us know.

댓글 수: 4

Thanx for your advice. Unfortunately i am still unable to convert it into Android Studio.
When I try to import the bundle Simuling created I get the following message from my Android Studio:
"Error:Unable to find method 'org.gradle.api.tasks.testing.Test.getTestClassesDir()Ljava/io/File;'.
Possible causes for this unexpected error include:<ul><li>Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
<a href="syncProject">Re-download dependencies and sync project (requires network)</a></li><li>The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
<a href="stopGradleDaemons">Stop Gradle build processes (requires restart)</a></li><li>Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.</li></ul>In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes."
So when i click on Edit Configurations, there is nothing to show there.
My Android Studio is 2.3.2
Please advice...
Thank you in advance,
Ilya
Please use Android Studio 4.0.2 ( download it from the archive), Android Studio 2.3.2 is very old. Please provide the output of getAndroidSLSupportPkgToolPaths
Thanx, it looks like it was converted successfully. A few last questions - 1) to send the converted project to a Java-developer, should I send him the whole ..._ert_rtw folder, or only the folder with the name of the project? 2) in order to add some java-code (not the matlab code!!!, ), should a Java-developer use the same Android Studio and the same sdk I used while converting from simulink into Android?
Hi IIya Makarov,
1) to send the converted project to a Java-developer, should I send him the whole ..._ert_rtw folder, or only the folder with the name of the project?
A) Only project folder is required
2) in order to add some java-code (not the matlab code!!!, ), should a Java-developer use the same Android Studio and the same sdk I used while converting from simulink into Android?
A) Better to use the same Android Studio version. But if there is a requirement to use Latest Android Studio, you can use it, but may get some errors which can be resolved by the suggestions provided by the Android Studio.

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

추가 답변 (0개)

커뮤니티

더 많은 답변 보기:  ThingSpeak 커뮤니티

카테고리

도움말 센터File Exchange에서 Setup and Configuration에 대해 자세히 알아보기

제품

질문:

2020년 12월 27일

편집:

2021년 1월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by