Calendar-PhoneGap-Plugin icon indicating copy to clipboard operation
Calendar-PhoneGap-Plugin copied to clipboard

Class not found error on Android Device

Open PrashantMangale opened this issue 8 years ago • 5 comments

Hello , I am new to phonegap. I want to open calendar for selecting date of birthday. I follow all the steps mentioned in this article. also added code on calendar click icon. But i am getting error as "Class not found" on Phonegap devloper app for android. And If i trying to open default calender with todays date then it not opening. Even i checked other blogs for this issue but no one is giving proper way to solve it. I have added screenshot of error which is taken on android device. Also i have added snippet where i want to open calendar. Please help to solve this issue.

Following is my code: 1)This code not opening calendar $("#datepicker").on('click', function(e){ // alert("clicked"); // - open it at 'today' if(window.plugins.calendar) { // alert("loaded"); window.plugins.calendar.openCalendar(); } else alert("not loaded"); });

  1. This code giving error "Class not found" $("#datepicker").on('click', function(e){ // alert("clicked"); // - open it at 'today' if(window.plugins.calendar) { // alert("loaded"); var startDate = new Date(2014,4,31,18,30,0,0,0); // beware: month 0 = january, 11 = december var endDate = new Date(2014,4,31,19,30,0,0,0); var title = "Skype meeting With Lead"; //var location = "myleads.html"; var notes = "Need to do a skype meeting with the lead."; var success = function(message) { alert("Success: " + JSON.stringify(message)); }; var error = function(message) { alert("Error: " + message); }; window.plugins.calendar.createCalendar(title,success,error); } else alert("not loaded"); });

screenshot_2016-08-04-18-20-24_com adobe phonegap app

PrashantMangale avatar Aug 04 '16 13:08 PrashantMangale

Can confirm, seeing the same issue on a new project.

jecxjo avatar Oct 11 '16 20:10 jecxjo

getting same issue......

vipulism avatar Dec 11 '17 12:12 vipulism

any updates on this issue?

sankari123 avatar Jan 03 '18 14:01 sankari123

Any updates on this? Seeing the same error and can't get it to work.

sourabhbajaj avatar Mar 22 '18 19:03 sourabhbajaj

Im getting this issue as well

esmic avatar Apr 11 '19 12:04 esmic