hello, I created a module android to use Google Analytics, and when I call the method of tracking I get anerror.here is my code apps.js
var win = Ti.UI.createWindow({ backgroundColor:'white' }); win.open(); var bt = Ti.UI.createButton({ title : 'Tracke', backgroundColor:'yellow' }); // TODO: write your module tests here var calc = require('calc'); Ti.API.info("module is => " + calc); bt.addEventListener('click',function(e){ bt.backgroundColor = 'red'; alert(calc.trackePage("Button", "Click", "tracke")); }); win.add(bt);and here is the error
Message: Uncaught Error: Java Exception Occurred Source: alert(calc.trackePage ("Button", "Click", "tracke"));and here the error in build.log :
E/TiJSError( 415): (main) [1,263017] - Message: Uncaught Error: Java Exception occurred E/TiJSError( 415): (main) [0,263017] - Source: alert(calc.trackePage("Button", "Click", "tracke")); E/V8Exception( 415): Exception occurred at app.js:28: Uncaught Error: Java Exception occurred E/JNIUtil ( 415): !!! Unable to convert unknown Java object class 'org.appcelerator.kroll.KrollRuntime$1' to Js value !!! E/JNIUtil ( 415): !!! Unable to convert unknown Java object class 'org.appcelerator.kroll.KrollRuntime$1' to Js value !!! E/JNIUtil ( 415): !!! Unable to convert unknown Java object class 'org.appcelerator.kroll.KrollRuntime$1' to Js value !!! E/JNIUtil ( 415): !!! Unable to convert unknown Java object class 'org.appcelerator.kroll.KrollRuntime$1' to Js value !!! E/JNIUtil ( 415): !!! Unable to convert unknown Java object class 'org.appcelerator.kroll.KrollRuntime$1' to Js value !!! E/JNIUtil ( 415): !!! Unable to convert unknown Java object class 'org.appcelerator.kroll.KrollRuntime$1' to Js value !!! E/JNIUtil ( 415): !!! Unable to convert unknown Java object class 'org.appcelerator.kroll.KrollRuntime$1' to Js value !!! E/JNIUtil ( 415): !!! Unable to convert unknown Java object class 'org.appcelerator.kroll.KrollRuntime$1' to Js value !!! E/JNIUtil ( 415): !!! Unable to convert unknown Java object class 'org.appcelerator.kroll.KrollRuntime$1' to Js value !!!
Your Answer
Think you can help? Login to answer this question!