cancel
Showing results for 
Search instead for 
Did you mean: 

MDK Client local build error

DEEP
Explorer
0 Kudos

Hello,

I am getting below error while doing local MDK Build for SAP Asset Manager app.

Could you please suggest.

DEEP
Explorer
0 Kudos

I executed create-client cmd with the right version of dependencies.
But, getting below errors now


Error: Failed to run ns build android

Any help would be appreciated.

View Entire Topic
former_member524685
Participant
0 Kudos

okay, thanks for the good find.

I got the solution, I was running dependency installer of old MDK version.

with the same version SDK as client, dependency installer is failing

Need to make updates.

Thank you

FranciscoSAP
Advisor
Advisor

Sounds accurate deep.agrawal, a few MDK SDK versions ago the required Android SDK and NativeScript versions changed with it as well. It looks like the newer MDK version was trying to invoke the 'ns' command but your (older) installed NativeScript version only recognized the previous 'tns' version of it.

I would suggest you to keep separate folders for different MDK versions to avoid this issue in the future. Although I would only keep a maximum of two, one with your latest stable version and another one with the latest available version.

This obviously wouldn't change anything, you would still need to have the appropriate dependencies installed, it would only save you from checking the wrong Dependencies Installer. It would also give you more control over your SDK versions and a quicker way to rollback to your stable app version if something were to happen with the latest one.