Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I use leakcanary on eclipse? #44

Closed
moubenmao opened this issue May 11, 2015 · 4 comments
Closed

How can I use leakcanary on eclipse? #44

moubenmao opened this issue May 11, 2015 · 4 comments

Comments

@moubenmao
Copy link

I try to use eclipse replace gradle. It doesn't work. There are some problem block me.
05-11 17:36:01.631: D/AndroidHeapDumper(15195): Could not dump heap, previous analysis still is in progress.
05-11 17:45:33.151: W/dalvikvm(16376): Exception Ljava/lang/NullPointerException; thrown while initializing Lorg/eclipse/mat/util/MessageUtil;

@swankjesse
Copy link
Member

Got the full stack trace for the NullPointerException ?

@pyricau
Copy link
Member

pyricau commented May 11, 2015

Here's the MessageUtil constructor in HAHA:

        try {
            InputStream inputStream = MessageUtil.class.getClassLoader().getResourceAsStream("messages.properties");
            props.load(inputStream);
        } catch (IOException e) {
            e.printStackTrace();
            throw new RuntimeException("MessageUtil initialization failed.", e);
        }

Pretty sure getResourceAsStream("messages.properties") returns null, which means messages.properties is not in the classpath. Not sure why, probably some project config problem.

Sorry @moubenmao but we do not support Eclipse. The Android tools team stopped supporting Eclipse a while ago, and Android Studio is the new hotness.

@pyricau pyricau closed this as completed May 11, 2015
@pyricau
Copy link
Member

pyricau commented May 11, 2015

Same as #46

@moubenmao
Copy link
Author

OK~ Thank you very much. I use Android-library structure as leakcanary project. It's works. The problem has been solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants