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

Seems it cannot work on Android Java project. #3

Open
rovinyu opened this issue Jul 18, 2023 · 1 comment
Open

Seems it cannot work on Android Java project. #3

rovinyu opened this issue Jul 18, 2023 · 1 comment

Comments

@rovinyu
Copy link

rovinyu commented Jul 18, 2023

The sample App is Kotlin application. It can work as expected:
07-18 14:52:03.600 6523 6523 W PandaPearls: --------------------------
07-18 14:52:03.600 6523 6523 W PandaPearls: | ⚠️ Main Thread Warning
07-18 14:52:03.600 6523 6523 W PandaPearls: --------------------------
07-18 14:52:03.600 6523 6523 W PandaPearls: | Method: MainActivity.onCreate
07-18 14:52:03.600 6523 6523 W PandaPearls: | Took: 350 ms
07-18 14:52:03.600 6523 6523 W PandaPearls: --------------------------
07-18 14:52:03.671 6523 6523 W PandaPearls: --------------------------
07-18 14:52:03.671 6523 6523 W PandaPearls: | ⚠️ Main Thread Warning
07-18 14:52:03.671 6523 6523 W PandaPearls: --------------------------
07-18 14:52:03.671 6523 6523 W PandaPearls: | Method: MainActivity.onStart
07-18 14:52:03.671 6523 6523 W PandaPearls: | Took: 3 ms
07-18 14:52:03.671 6523 6523 W PandaPearls: --------------------------
07-18 14:52:12.084 6586 6586 W PandaPearls: --------------------------
07-18 14:52:12.084 6586 6586 W PandaPearls: | ⚠️ Main Thread Warning
07-18 14:52:12.084 6586 6586 W PandaPearls: --------------------------
07-18 14:52:12.084 6586 6586 W PandaPearls: | Method: MainActivity.onCreate
07-18 14:52:12.084 6586 6586 W PandaPearls: | Took: 391 ms
07-18 14:52:12.084 6586 6586 W PandaPearls: --------------------------
07-18 14:52:12.151 6586 6586 W PandaPearls: --------------------------
07-18 14:52:12.151 6586 6586 W PandaPearls: | ⚠️ Main Thread Warning
07-18 14:52:12.151 6586 6586 W PandaPearls: --------------------------
07-18 14:52:12.151 6586 6586 W PandaPearls: | Method: MainActivity.onStart
07-18 14:52:12.151 6586 6586 W PandaPearls: | Took: 3 ms
07-18 14:52:12.151 6586 6586 W PandaPearls: --------------------------

However, when I try to use it on one Android Java application, there is no any log for PandaPearls or PandaSpector. Could it work for Android Java applications? Thanks.

@farimarwat
Copy link
Owner

I have not tested on java android project but there are two things that should be checked if you are not getting logs:

  1. Do not minify while using this plugin.
  2. Check the package names list which you put in gradle while configuring this plugin.

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

2 participants