Skip to Content

Not able to run MDK app on Android emulator using MDKClient and VS Code both

Hello,

I am trying to run my MDK app in Android Emulator on my machine by following the steps in https://developers.sap.com/tutorials/cp-mobile-dev-kit-build-client.html. Also tried in VS code, by importing the app there and then setting path Mdk: Debug App Root-pointing to the folder created in C:\MDKWorkspace\MDKCLNT01P_4-80005072\MDKClient_SDK folder after running the create-client.cmd. Both ways i get the same error in the end:

Webpack compilation complete. Watching for file changes. Webpack build done! Gradle clean... File change detected. Starting incremental webpack compilation... Downloading https://services.gradle.org/distributions/gradle-5.4.1-all.zip Webpack compilation complete. Watching for file changes. Webpack build done! Exception in thread "main" java.net.ConnectException: Connection timed out: connect at java.net.DualStackPlainSocketImpl.connect0(Native Method) at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:668) at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:173) at sun.net.NetworkClient.doConnect(NetworkClient.java:180) at sun.net.www.http.HttpClient.openServer(HttpClient.java:432) at sun.net.www.http.HttpClient.openServer(HttpClient.java:527) at sun.net.www.protocol.https.HttpsClient. (HttpsClient.java:264) at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191) at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1105) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:999) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177) at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1513) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254) at org.gradle.wrapper.Download.downloadInternal(Download.java:58) at org.gradle.wrapper.Download.download(Download.java:44) at org.gradle.wrapper.Install$1.call(Install.java:61) at org.gradle.wrapper.Install$1.call(Install.java:48) at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65) at org.gradle.wrapper.Install.createDist(Install.java:48) at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128) at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61) Command gradlew.bat failed with exit code 1

not able to attach the complete cmd run.

Thanks in advance for quick help!

Aanchal

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Jun 22 at 06:31 AM

    Aanchal Kajaria

    I would propose that you first install the required Android SDK version as per the dependency installer and then try again. Hope this solves the problem.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 07 at 09:37 PM

    Can you add the following param to the tns run command in the command line:

    --logtrace> tns_log.txt 2>&1

    e.g.

    tns run android --emulator --logtrace> tns_log.txt 2>&1

    The resulting verbose log will be in the tns_log.txt, it might give more details on the error.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.