Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Android Contacts API - Contacts.createPerson() - not able to create Person - NoSuchMethodException: PersonProxy

I am using the latest CI Build 1.4.3 (as on 22.11.2010) with Android SDK 2.1 (also tested with 2.2).
I am trying to rebuild only the Contacts part KitchenSink demo.

When I click the add contact button, then i get the following error.
(I think somehow Titanium could not create a new person with this code var contact = Titanium.Contacts.createPerson())

Complete Stack Trace is here (http://pastie.org/1318539)

[TRACE] D/TiCommonContactsApi( 237): 
(kroll$5) [73,259158] Using newer contacts api. Android SDK level: 7
[TRACE] E/TiModule( 237): 
(kroll$5) [89,259247] 
Error creating proxy 
ti.modules.titanium.contacts.PersonProxy: PersonProxy(TiContext,Object[])
[TRACE] E/TiModule( 237): 
java.lang.NoSuchMethodException: PersonProxy(TiContext,Object[])
[TRACE] E/TiModule( 237): at java.lang.Class.getMatchingConstructor(Class.java:674)
[TRACE] E/TiModule( 237): at java.lang.Class.getConstructor(Class.java:486)
[TRACE] E/TiModule( 237): at org.appcelerator.titanium.TiModule.createProxy(TiModule.java:100)

Any help is much appreciated.

Thanks in advance.

— asked November 22nd 2010 by Prem Dev
  • android
  • api
  • contacts

1 Answer

The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.