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 ':packageDebug'.
INFO
[2023-01-09 22:23:32.696] [DEBUG] ~~~~ - INFO [exec-shell] > A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
INFO
[2023-01-09 22:23:32.697] [DEBUG] ~~~~ - INFO [exec-shell] > com.android.ide.common.signing.KeytoolException: Failed to read key AndroidDebugKey from store "C:\Users\username\.android\debug.keystore": Invalid keystore format
INFO
[2023-01-09 22:23:32.698] [DEBUG] ~~~~ - INFO [exec-shell]
INFO
Solutions :
After Long time analized.
from the C://users/username/.android/debug.keystore deleted and try again the clean-build the android Native application is working fine for me
INFO [exec-shell] Execution failed for task ':processDebugGoogleServices'.
[exec-shell] > File google-services.json is missing. The Google Services Plugin cannot function without it.
[exec-shell] Searched Location:
INFO [exec-shell] A:\Push\src\debug\google-services.json
[exec-shell] A:\Push\google-services.json
[exec-shell]
INFO [exec-shell] * Try:
[exec-shell] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
INFO [exec-shell]
[exec-shell] * Get more help at https://help.gradle.org
[exec-shell]
[exec-shell] BUILD FAILED in 28s
V9
ask :preBuild UP-TO-DATE
[exec-shell] > Task :preDebugBuild UP-TO-DATE
INFO [exec-shell] > Task :generateDebugBuildConfig UP-TO-DATE
INFO
INFO [exec-shell] > Task :javaPreCompileDebug UP-TO-DATE
INFO [exec-shell] > Task :compileDebugRenderscript UP-TO-DATE
INFO [exec-shell] > Task :compileDebugAidl NO-SOURCE
INFO [exec-shell] > Task :generateDebugResValues UP-TO-DATE
Error while generating object model : Generation of Object models failed. Error : Command failed: "D:\Software\Visualizer\jre\bin\java.exe" -DKONY_MFCLI_PROPERTIES_FILE="D:\WorkspacePBank\konyfabriccli.properties" -jar "D:\Software\Visualizer\lib\mf\mfcli.jar" object-services-meta --token "eyAidHlwIjogImp3dCIsIC" -a "TestApplication" -v "1.0" -e "" -clurl "https://manage.kony.com" >
ERROR: Unable to fetch the publish information of the fabric app against the environment specified. Reason- Unable to fetch App key, App Secret, Service URL and Service Document as app is not published to the specified environment
Soulution is : publish your mobile fabric application
By default, there are two build types available for every Android app: one for debugging your app—the debugbuild—and one for releasing your app to users—the release build. The resulting output from each build must be signed with a certificate before you can deploy your app to a device. The debug build is automatically signed with a debug key provided by the SDK tools (it's insecure and you cannot publish with it to the Google Play Store), and the release build must be signed with your own private key.
Build a debug APK
For immediate app testing and debugging, you can build a debug APK. The debug APK is signed with a debug key provided by the SDK tools and allows debugging through adb.
To build a debug APK, open a command line and navigate to the root of your project directory. To initiate a debug build, invoke the assembleDebug task:
gradlew assembleDebug
This creates an APK named Project Name-debug.apk in project_name/module_name/build/outputs/apk/. The file is already signed with the debug key and aligned with zipalign, so you can immediately install it on a device.
You can simplify and speed up development of mobile applications by using existing components. You can download a variety of components from Kony Marketplace and import them into your projects, or import reusable components that you have created yourself. For information on creating a component.
kony project could not able to generating build. If you get below like that error pls follow the steps
Could not open cp_settings remapped class cache for 58m3icgml5mvwq3x44rfzqryy (C:\\Users\\user\\.gradle\\caches\\4.4\\scripts-remapped\\settings_ezedqcymecp5smsvknnr2xi4i\\58m3icgml5mvwq3x44rfzqryy\\cp_settings638c4bcc3be846fd35262b91d5a74869).
Solution:
Go to the C:\Users\YOUR_USERNAME\.gradle\caches and locate the subfolder that is being complained about in your error message (e.g., 4.4).
Rename that folder (e.g., to 4.4_OLD).
Back in Android Studio, do Clean Project then Rebuild Project.
This will then generate a new subfolder (e.g., 4.4) in your caches directory and the build should complete successfully.
Note : if you can't change the folder name pls End-Task
function fileReadOptions(){
try{
var destFilePath = kony.io.FileSystem.getDataDirectoryPath()+"/getdetails.json";
var myFile = new kony.io.File(destFilePath).createFile();
alert("Path is "+destFilePath);
var fileObj = null;
try{
var file = new kony.io.File(destFilePath);
//copyBundledRawFileTo API overrides the destination file with new one.
//Hence check before copying
if(!file.exists()){
fileObj = kony.io.FileSystem.copyBundledRawFileTo ("getdetails.json", destFilePath);
}else{
// fileObj = file;
fileObj = kony.io.FileSystem.copyBundledRawFileTo ("getdetails.json", destFilePath);
var reading = new kony.io.File(destFilePath).read();
alert(JSON.stringify(reading));
alert("readAsText() "+reading.readAsText());
}
}catch(e) {
kony.print("Exception "+e);
}
}catch(err){
alert("Error : "+JSON.stringify(err));
}
}
Dynamic TextBox widget adding into the flex container var countID = 0; function addDynamicTextBoxEvent(){ try{ var txtBasic = {id:"textBox"+countID,placeholder:"enter text",maxTextLength:100,left:"10dp",top:"10dp",skin:"skintxtBoxroundGray120",focusskin:"skinTextBoxFocusGray120",isVisible:true}; var txtLayout = {padding:[5,0,0,0], margin:[5,5,5,5], containerWeight:100, hExpand:true, widgetAlignment:constants.WIDGET_ALIGN_TOP_LEFT}; var txtPSP ={placeholderSkin:"skintxtPlaceholderGray120"}; var textBox1 = new kony.ui.TextBox2(txtBasic,txtLayout,txtPSP); frmDynamicTxtBox.flexHari.add(textBox1); countID++; alert(countID); }catch(err){ alert("Exception while occuring..."+err); } }
1. File Logging: This is used to log the information in a file (.log format) stored in the user’s system. This is supported in both Windows and Linux environments.
Log Location
For Tomcat and JBoss single node, logs are created in < Kony Fabric Install Dir>/logs folder.
For JBoss cluster/multinode and WebLogic, logs are created in /konymflogs folder.
For WebSphere, logsare created in /AppServer/logs/konymflogs folder.
We create separate log file for each service as mentioned below:
2. Sys logging: This is used to log the information in system log using UDP protocol. This is supported only for the Linux environment. This is the best way to store all the information in a single place.
3. Database logging: This is used to store the log in the database of each service. This is mainly useful in a clustered/multinode environment when services are running in more than one box and logs need to store at a centralized location. Kony Fabric supports MySQL, MS SQL Server, Oracle and DB2 database server for database logging in both Windows and Linux environment.
For logging, use log4j statements instead of System.out.println() statements Logging Detailed Location : KonyFabricInstaller folder\logs\admin.log Wrap the debug statements with the log.isDebugEnabled() method. For example.