Cordova browser widget doesn't run

This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.

I have a question in (Designer - Getting Started: Creating and Publishing an App Prototype (version 8)) in Lesson 6 (Integrating an Existing Cordova App).

http://training.kony.com/store/249772-designer-getting-started-creating-and-publishing-an-app-prototype-version-8

I followed the steps as the instructor made exactly and the Cordova browser widget couldn’t show the images it is supposed to display.

I keep getting this error message when I try to run it on my android device not through previewer ( through previewer the app also can’t show the images).

• The following error occurred while executing this line:\nC:\\Users\\kayeds\\KonyVizEWS\\temp\\KonyTravel\\build\\luaandroid\\build-jssource.xml:309: The following error occurred while executing this line:\nC:\\Users\\kayeds\\KonyVizEWS\\temp\\KonyTravel\\build\\luaandroid\\build-cordova.xml:35: exec-shell returned: 1

• Ant build error=The following error occurred while executing this line:\nC:\\Users\\kayeds\\KonyVizEWS\\temp\\KonyTravel\\build\\luaandroid\\build-jssource.xml:309: The following error occurred while executing this line:\nC:\\Users\\kayeds\\KonyVizEWS\\temp\\KonyTravel\\build\\luaandroid\\build-cordova.xml:35: exec-shell returned: 1

• The following error occurred while executing this line:\nC:\\Users\\kayeds\\KonyVizEWS\\temp\\KonyTravel\\build\\luaandroid\\build-jssource.xml:309: The following error occurred while executing this line:\nC:\\Users\\kayeds\\KonyVizEWS\\temp\\KonyTravel\\build\\luaandroid\\build-cordova.xml:35: exec-shell returned: 1

I tried uninstalling and reinstalling Cordova and still the problem doesn’t get fixed. Is there any suggestions for a fix for this error.

Adding @Jonvthvn Duncvn​, @Velmv Mcleod​ to this thread. Please take a look, Thanks!

Hello

I have used Visualizer Version 8 Service Pack 3 Fix Pack 7 and able to build Cordova browser widget sample successfully and was able to deploy on Android Device as well.

There are Few points which are important while developing the Cordova application . Based on Cordova version you need to select the android target SDK and minimum SDK . I have used Cordova version 6.5.0 and selected target SDK as 7.0 and min as 8.0

Please go through the below documentation link

http://docs.kony.com/konylibrary/visualizer/visualizer_user_guide/Content/CreateCordovaApplications.htm

Hello

I have updated Visualizer to Fix Pack 9 and the Cordova browser widget didn't work on Android and I still couldn't deploy it as it produces the same error.

I tried using iPhone and it worked perfectly.

I am using Cordova version 7.1.0 and selected target SDK as 7.0 and minimum as 7.0 too.

I attached a screenshot from my device that shows how it looks like through Previewer.

My device is a Lenovo P2 with android version 7.0

@Elizvxeth Poole​ @Pvolo Fields​ FYI

I have figured out how to run the Cordova widget on the app previewer on android but still I can't deploy the app on my android device.

It still keeps producing the same error I put above.

To let the Cordova widget work on the app previewer I have to clear the index.html and run then put the code in index.html and run again.

I know this is a temporary solution but that is what I have in the mean time.