cancel
Showing results for 
Search instead for 
Did you mean: 

PrePackage Fiori - Sap Mobile Secure : Android Build failed

Former Member
0 Kudos

Hello

I am trying to build a offline mobile app using Creating a Prepackaged Fiori App Using the Packager - Mobilizing Fiori - SAP Library

step 1 : downloadfromfes

(some warning messages appears but it is ok)

==== downloadfromfes OK ====

I do not change anything in the download files and I go to step 2

step 2 : createpackage

Command: createpackage

INFO: Successfully created a Cordova Package on Build Server with ID: f57234792b18bfc04574835193e816e9

==== createpackage OK ====

Step 3 : upload package

Command: uploadpackage

Upload source bundle: Response: 200

{"Status":"OK","status":1,"TotalSize":5000000,"IsPartial":"1"}

Upload source bundle: Response: 200

{"Status":"OK","status":1,"TotalSize":10000000,"IsPartial":"1"}

Upload source bundle: Response: 200

{"Status":"OK","status":1,"TotalSize":15000000,"IsPartial":"1"}

Upload source bundle: Response: 200

{"Status":"OK","status":1,"TotalSize":16528492,"IsPartial":"0"}

==== uploadpackage OK ====

The result in Sap Mobile Secure

Step 4 : startbuild

Command: startbuild

INFO: Build started successfully

==== startbuild OK ====

Step 5 : check status

Command: status

INFO: ANDROID: Failed

INFO: IOS: Not Submitted

==== status OK ====

How can I check the causes of the Failed build ?

I use the default debug.keystore from android SDK. Is it mandatory to use a release keystore ?

Is there any needed settings in SAP Mobile Secure ?

In the appConfig.js file, is there any mandatory field ? Please find attached a copy of my appConfig file

Best regards

Emmanuel

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Emmanuel,

I repeated all steps and the same error appeared for me

regards,

Pavel

Former Member
0 Kudos

Hello

Last Update.

When I try a local build using XCode or Android Studio, I obtain only the running red flower on the simulator.

On the Xcode log, the last line shows the myapp.app/www/index.html is launched.

Any clue ?

In SMP,  my backend endpoint is http://<IP backend Fiori : port>/sap/bc..../FioriLaunchpad.html?sap-client=800&sap-language=EN

In Appconfig, my fioriUrl is -> http://<my.proxy.server:port>

best regards

Emmanuel

0 Kudos

Hello,

Try to debag app using chrome remote debuging tool. I had red flowers too, and it was solved by creating a new application 🙂

I ran local build on my device successfully. I still haven't resolved an issue with cloud built.

Have you any results?

Former Member
0 Kudos

Hello

Sorry for the late answer.

I was busy with an other project.

By creating a new app, what do you mean ?

You do not use my_accounts and my_contacts apps ?

Could you tell me what kind of modification have you done ?

Best regards

Emmanuel

Former Member
0 Kudos

Hello

Finally I will be able to create the package and download it on a android device.

I use now :

Windows 10 pro 64 bits

SMP SDK 3.0.11.2

CRM 7 EHP 3 SP10

I have followed the steps and could create a package on mobile service.

I have downloaded and installed it on a android device.

The app has started but an error appears when trying to provision the local table.

Error:

Failed to start the app: Failed to provision the local store:Unknown network error occured [-10210]

The operation failed due to an error on the server:

An error occured while communicating with the Odata server to retrieve

If anyone has a solution ?

I will investigate and update the thread

Regards

Emmanuel

Former Member
0 Kudos

Hello

Great news. It is done.

The applications run in the launchpad in Offline mode.

The last problem came from the setting of the endpoint in the SMP server.

So I can retrieve and display data from back-end but i can not create a new account in the app.

The dropdown field to select a account returns no value.

Best regards

Emmanuel

0 Kudos

Hi,

That sounds good! I will try to upfate version of SDK.


Kind Regards,

Pavel

Former Member
0 Kudos

Hello

I have forgotten to create at least one corporate account attached to me.

Now everything runs perfectly

Best regards

Emmanuel

Answers (0)