[TIMOB-11501] org.appcelerator.titanium.util.Log package missing
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2012-10-18T19:31:19.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | Android, module, triage |
Reporter | Shannon Hicks |
Assignee | Federico Casali |
Created | 2012-08-14T15:07:50.000+0000 |
Updated | 2017-03-21T22:29:50.000+0000 |
Description
I'm using a custom C2DM module that calls Log.d() to send some stuff to the debug console. With 2.1.0GA everything works fine. With 2.2CI I see this stack dump:
W/System.err( 5628): java.lang.NoClassDefFoundError: org.appcelerator.titanium.util.Log
W/System.err( 5628): at com.findlaw.c2dm.C2dmModule.registerC2dm(C2dmModule.java:57)
W/System.err( 5628): at org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(Native Method)
W/System.err( 5628): at org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModule(V8Runtime.java:140)
W/System.err( 5628): at org.appcelerator.kroll.KrollRuntime.handleMessage(KrollRuntime.java:284)
W/System.err( 5628): at org.appcelerator.kroll.runtime.v8.V8Runtime.handleMessage(V8Runtime.java:166)
W/System.err( 5628): at android.os.Handler.dispatchMessage(Handler.java:95)
W/System.err( 5628): at android.os.Looper.loop(Looper.java:137)
W/System.err( 5628): at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:108)
Here's the first 57 lines of C2dmModule.java:
/**
* This file was auto-generated by the Titanium Module SDK helper for Android
* Appcelerator Titanium Mobile
* Copyright (c) 2009-2010 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*
*/
package com.findlaw.c2dm;
import org.appcelerator.kroll.KrollInvocation;
import org.appcelerator.kroll.KrollDict;
import org.appcelerator.kroll.KrollModule;
import org.appcelerator.kroll.annotations.Kroll;
import org.appcelerator.titanium.ITiAppInfo;
import org.appcelerator.titanium.TiContext;
import org.appcelerator.titanium.TiApplication;
import org.appcelerator.titanium.util.Log;
import java.util.HashMap;
import org.appcelerator.kroll.KrollFunction;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import com.google.android.c2dm.C2DMessaging;
import android.app.AlertDialog;
import android.content.DialogInterface;
@Kroll.module(name="C2dm", id="com.findlaw.c2dm")
public class C2dmModule extends KrollModule
{
// Standard Debugging variables
private static final String LCAT = "C2dmModule";
private static C2dmModule _THIS;
private KrollFunction successCallback;
private KrollFunction errorCallback;
private KrollFunction messageCallback;
public C2dmModule() {
super();
_THIS = this;
}
// Methods
@Kroll.method
public void registerC2dm(String senderId, HashMap options) {
Log.d(LCAT, "registerC2dm called");
The Google Analtyics module for Android is not loading with a newer 2.2 CI build. I have a feeling that there's a broader issue here with the java interface that modules use. I don't have access to the source for the module, but it is in the marketplace: https://marketplace.appcelerator.com/apps/927
The Google Analytics module still doesn't work in 3.0CI. It does work fine in 2.1.3GA. Here's the error I get: {quote} E/TiExceptionHandler(10202): (main) [531,779] ----- Titanium Javascript Runtime Error ----- E/TiExceptionHandler(10202): (main) [0,779] - In app.js:22,18 E/TiExceptionHandler(10202): (main) [0,779] - Message: Uncaught TypeError: Cannot call method 'startTracker' of undefined E/TiExceptionHandler(10202): (main) [0,779] - Source: GoogleAnalytics.startTracker({ {quote} Here's my code:
Hi Shannon, we're trying to see if we can get the source code for that one. To confirm, you get errors with both your custom module at the top, _and_ the Google analytics module? Does it seem to happen with all modules, or just some modules (say you tried a module provided by Appcelerator)
My custom module (it was a build of the c2dm module) now works. It's the Google analytics module that's causing me pain now. I don't have time today to test out some other Appcelerator modules today... so I'll race you to whomever can get to it sooner!
Just tried an app with the modules "sg.flurry" "ti.urbanairship", and it worked. Looks like a bug with com.thinkorange.google.analytics
ThinkOrange has tested the Google Analytics module with the latest 3.0.0 version, and it works as expected. Please reopen this if the issue is still reproducible.
Closing ticket as the issue cannot be reproduced and due to the above comments.