titanium-identity
titanium-identity copied to clipboard
Error: No virtual method getSystemService
I am getting the following error when calling Identity.createKeychainItem(). The error occurs on Android 5.1 but not Android 9.0. What is the minimum supported Android version for this module?
[ERROR] TiExceptionHandler: (main) [332,2346] ti.identity/bootstrap.js:39
[ERROR] TiExceptionHandler: return new module"KeychainItem";
[ERROR] TiExceptionHandler: ^
[ERROR] TiExceptionHandler: Error: No virtual method getSystemService(Ljava/lang/Class;)Ljava/lang/Object; in class Landroid/content/Context; or its super classes (declaration of 'android.content.Context' appears in /system/framework/framework.jar)
[ERROR] TiExceptionHandler: at Identity.module.constructor.createKeychainItem (ti.identity/bootstrap.js:39:8)
[ERROR] TiExceptionHandler: at ModuleWrapper.invoker [as createKeychainItem] (ti:/invoker.js:101:19)
[ERROR] TiExceptionHandler: at /serverUtils.js:31:44
[ERROR] TiExceptionHandler: at Module._runScript (ti:/module.js:613:9)
[ERROR] TiExceptionHandler: at Module.load (ti:/module.js:105:7)
[ERROR] TiExceptionHandler: at Module.loadJavascriptText (ti:/module.js:457:9)
[ERROR] TiExceptionHandler: at Module.loadAsFile (ti:/module.js:512:15)
[ERROR] TiExceptionHandler: at Module.loadAsFileOrDirectory (ti:/module.js:429:20)
[ERROR] TiExceptionHandler: at Module.require (ti:/module.js:296:17)
[ERROR] TiExceptionHandler: at require (ti:/module.js:570:15)
[ERROR] TiExceptionHandler:
[ERROR] TiExceptionHandler: ti.identity.KeychainItemProxy.
@Topener can you move this? Seems to be related to this post. I still watch too many appc-repos, need to fix that :).
We've written this up as a bug here... https://jira.appcelerator.org/browse/MOD-2485