0

One of my customer is Using Kony Platform to build Android and iOS mobile application using Kony Studio.

When working with Kony Studio, they are able to generate the Android .apk files in the bin folder, based on the debug or release mode.

When we try to integrate it with Azure DevOps Server 2019, the build pipeline passes, but when we check the logs we see an error about not able to generate the apk files for Android. The iOS files builds fine, but Android throws build error "with startup code failed".

We are currently using only "Ant" utility task in the pipeline.

So, do we need to add any Kony related services in the Build Pipeline or a regular Ant task should help ?. Also how can we add any Market place or service connections for Kony in the build pipeline to generate apk in DevOps pipeline?.

Thanks In Advance !!!..

Siddharth
  • 436
  • 2
  • 11
  • 29
  • Do you mean you want to use Azure DevOps Server 2019 build pipeline to build a project created in Kony? Could you share your build definition and entire log (set System.debug to True)? Build, test, and deploy Android apps you can refer to this link: https://learn.microsoft.com/en-us/azure/devops/pipelines/ecosystems/android?view=azure-devops – Cece Dong - MSFT Apr 24 '20 at 09:22
  • Yes correct, build a project created using Kony Studio. – Siddharth Apr 27 '20 at 11:30
  • Have you checked the link I provided? Is it working for you? If the issue persists, could you share your build definition and entire log (set System.debug to True)? – Cece Dong - MSFT Apr 28 '20 at 01:17
  • I have the DevOps Build Pipeline logs, how can I share it ? – Siddharth Apr 28 '20 at 10:45
  • You can mask the personal information, edit your post and share the log. Have you checked the link I provided? – Cece Dong - MSFT Apr 29 '20 at 02:07

1 Answers1

0

Before using Azure DevOps Server to build the Android project, you need to make sure the .apk file can be generated locally with Ant utility on build agent machine. DevOps pipeline calls Ant utility to build the .xml file, if the .apk file can be generated locally using Ant, it's supposed to be able to generate during pipeline.

You may try generating a new build.xml file with command android update project -p <PATH TO CHKOUT DIR> and test again.

Refer to this blog:

https://www.technetexperts.com/mobile/generate-android-app-apk-using-apache-ant/

Or you can follow the link below to use Gradle to build your Android project instead of Ant:

https://learn.microsoft.com/en-us/azure/devops/pipelines/ecosystems/android?view=azure-devops

Cece Dong - MSFT
  • 29,631
  • 1
  • 24
  • 39