Skip to Content

Problem creating .apk file for SAPUI5 application

Oct 05, 2017 at 06:04 AM


avatar image

Dear All,

I am facing issues while creating .apk file for my SAPUI5 application.

I have followed the below link for reference

I am successful upto the point where the output is "Apache Cordova Device is Ready". However after I add the contents of my SAPUI5 Webapp folder into the "www" folder and re-run the application I face the issue of only getting a blank screen.

I am unsure where exactly I have been missing anything.

The following are the softwares and their corresponding versions installed.

1) npm - 5.4.2

2) cordova - 7.0.1

3) java - 1.8.0-144 (jdk and jre)

4) Android Studio - 2.3

5) Android SDK Tools : 26.1.1

6) Android Platform Version : API 26: Android 8.0 (O) revision 2

I have questions regarding running the application

1) I use the cordova command in the below order

- cordova create helloworld HelloWorld

- cordova platform add android

- cordova prepare

- cordova compile

- cordova build

- cordova run

2) I am not using any cordova plugins

3) I make a reference of cordova.js in the index.html file after copying the contents of webapp folder into the www folder

4) I run the following commands

- cordova build

- cordova run

and then I get blank screen

Requesting all your expertise in helping me solve this issue.



10 |10000 characters needed characters left characters exceeded

Hi Reshma,

Did you get any solution for this? I am too working on this for past few weeks, but I am stuck at "cordova compile". It sure creates apk, but when I install it in my device, I get this error "Unfortunately app stopped" and I don't see any screen. I have also tried adding the SAPUI5 "resources" folder to the android->assets->www folder, but no use. Please suggest.


Kalpesh B.


Hi Kalpesh,

The issue is resolved for me. I added the following url in the index.html file in the below section








data-sap-ui-resourceroots='{"xyz": ""}'>


Hope this helps you.



* Please Login or Register to Answer, Follow or Comment.

0 Answers