Monday, 11 June 2018

how to initialize kony Mobile Fabric Client?



=>  Sample code to initialize Kony Fabric Client

var appkey = <your-app-key>
var appsecret = <your-app-secret>
var serviceURL = <your-service-url>

var client = new kony.sdk();
client.init(appkey, appsecret, serviceURL, function(response) {
 kony.print("Init success");
}, function(error) {
 kony.print("Init Failure");
});

1. Reference Guide Link 

2. http://docs.kony.com/konylibrary/konyfabric/kony_fabric_user_guide/Content/KonyStudio/Installing_KonyJS_SDK.htm

Monday, 4 June 2018

How to add Android dependencies libs using script code in Kony visualizer?




For Kony Visualizer version 7.2 and earlier, add dependencies by adding script code to androidprecompiletask.xml. For example, the following concatenates the Appcompat and Play Services Analytics entries to the build.gradle file:
${line.separator}dependencies.compile 'com.android.support:appcompat-v7:24.0.0'

${line.separator}dependencies.compile 'com.google.android.gms:play-services-analytics:10.0.0'

Error resource android:attr/dialogCornerRadius not found?



 AAPT: error: resource android:attr/dialogCornerRadius not found.


The following error occurred while executing this line:\nE:\\chandru\\WorkspaceLearnKony\\temp\\FirstMVCApp\\build\\luaandroid\\build.xml:2926: exec-shell returned: 1
  • Ant build error=The following error occurred while executing this line:\nE:\\chandru\\WorkspaceLearnKony\\temp\\FirstMVCApp\\build\\luaandroid\\build.xml:2926: exec-shell returned: 1
  • The following error occurred while executing this line:\nE:\\chandru\\WorkspaceLearnKony\\temp\\FirstMVCApp\\build\\luaandroid\\build.xml:2926: exec-shell returned: 1
  • Package Generation failed for platform Android.

  • Error Image

  •                    

A failure occurred while executing com.android.build.gradle.tasks

Error in Kony visualizer V9 service pack 6 and FX11  [2023-01-09 22:23:32.695] [DEBUG] ~~~~ - INFO [exec-shell] Execution failed for task ...