SAPUI5 Android Application - Resources Not Loading

I have a problem with my SAPUI5 application. I export my application with Eclipse and telephony, and if I use the following resources for sap-ui-core.js, the exported application does not start on my tablet. The screen stops when loading a blue screen. I loaded sapui5 runtime

<script id="sap-ui-bootstrap" src="resources/sap-ui-core.js" type="text/javascript" data-sap-ui-libs="sap.m, sap.ui.commons, sap.ui.ux3, sap.ui.table, sap.ui.core, sap.viz, sap.suite.ui.commons, sap.uxap, sap.ui.layout" data-sap-ui-theme="sap_bluecrystal"> </script> 

Now, if I change my src path to the sap-ui-core.js file on the sapui5 server, everything works fine and the application works. The path above is correct because my other files, such as the css file, load correctly (same root)

 <script id="sap-ui-bootstrap" src="https://sapui5.netweaver.ondemand.com/resources/sap-ui-core.js" type="text/javascript" data-sap-ui-libs="sap.m, sap.ui.commons, sap.ui.ux3, sap.ui.table, sap.ui.core, sap.viz, sap.suite.ui.commons, sap.uxap, sap.ui.layout" data-sap-ui-theme="sap_bluecrystal"> </script> 
+5
source share
1 answer

I believe that you are using the UI5 โ€‹โ€‹Runtime Mobile library. As stated in this link , to use the development of Runtime Mobile for mobile devices. The libraries that you included at boot time, as shown below.

 <script id="sap-ui-bootstrap" src="resources/sap-ui-core.js" type="text/javascript" data-sap-ui-libs="sap.m, sap.ui.commons, sap.ui.ux3, sap.ui.table, sap.ui.core, sap.viz, sap.suite.ui.commons, sap.uxap, sap.ui.layout" data-sap-ui-theme="sap_bluecrystal"> </script> 

UI5 Runtime Mobile: does not support all of the libraries above. The file contains management libraries, such as: sap.m, sap.ui.core,sap.ui.layout,sap.ui.suite,sap.ui.unified. Refer to this documentation on developing hybrid mobile apps for a better understanding.

+2
source

Source: https://habr.com/ru/post/1238509/


All Articles