cancel
Showing results for 
Search instead for 
Did you mean: 

Problem creating .apk file for SAPUI5 application

Former Member
0 Kudos

Dear All,

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

I have followed the below link for reference

https://blogs.sap.com/2015/01/30/creating-a-ui5-app-and-integrating-with-cordova-plugins-part-1/

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 com.sap.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.

Regards

Reshma

kalpeshsb
Explorer
0 Kudos

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.

Regards,

Kalpesh B.

Former Member
0 Kudos

Hi Kalpesh,

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

"https://sapui5.netweaver.ondemand.com/resources/sap-ui-core.js"

<script

id="sap-ui-bootstrap"

src="https://sapui5.netweaver.ondemand.com/resources/sap-ui-core.js"

data-sap-ui-libs="sap.m"

data-sap-ui-theme="sap_bluecrystal"

data-sap-ui-compatVersion="edge"

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

</script>

Hope this helps you.

Regards

Reshma

Accepted Solutions (0)

Answers (0)