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

Fix tracing when running Android Studio #911

Open
ben-clayton opened this issue Aug 15, 2017 · 5 comments
Open

Fix tracing when running Android Studio #911

ben-clayton opened this issue Aug 15, 2017 · 5 comments
Assignees

Comments

@ben-clayton
Copy link
Member

@ben-clayton ben-clayton commented Aug 15, 2017

If Android Studio is open when attempting to take a trace, the trace will likely fail.

This is because Android Studio actively attempts to connect to any Android program awaiting a JDWP connection. GAPID uses JDWP to inject the call interceptor.

We should work with the Android Studio folks to fix this problem.

@dsrbecky
Copy link
Contributor

@dsrbecky dsrbecky commented Aug 15, 2017

To start with, we should just detect that Android Studio is running and tell user to close it

@gapid-user
Copy link

@gapid-user gapid-user commented Aug 29, 2017

Actually, you don't have to close android studio necessarily. You can also disable adb integration in android studio with the switch Tools -> Android -> Enable ADB integration. Then tracing in GAPID will work fine.

@ben-clayton ben-clayton added this to the V0.9 (Beta) milestone Aug 30, 2017
@ben-clayton
Copy link
Member Author

@ben-clayton ben-clayton commented Sep 5, 2017

I've spoken with the Android Studio TL regarding this issue. I'll try to push for a fix, but this will take time to get sorted. For the time being we'll likely have to do what @dsrbecky suggests.

@ben-clayton
Copy link
Member Author

@ben-clayton ben-clayton commented Sep 6, 2017

Internal bug number: b/65362573

@ben-clayton ben-clayton removed this from the V0.9 (Beta) milestone Sep 6, 2017
@ben-clayton ben-clayton added this to the V1.0 milestone Sep 6, 2017
@ben-clayton ben-clayton added this to the V1.0 milestone Sep 6, 2017
@ben-clayton ben-clayton removed this from the V0.9 (Beta) milestone Sep 6, 2017
ben-clayton added a commit to ben-clayton/gapid that referenced this issue Oct 4, 2017
@ben-clayton ben-clayton self-assigned this Oct 4, 2017
ben-clayton added a commit that referenced this issue Oct 4, 2017
@ben-clayton ben-clayton removed this from the V1.0 milestone Oct 4, 2017
@AWoloszyn AWoloszyn added triaged and removed triaged labels Oct 30, 2018
@pemgithub
Copy link

@pemgithub pemgithub commented Jun 12, 2019

I get this error and I don't have Android Studio installed... what else causes this problem?

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

Successfully merging a pull request may close this issue.

None yet
5 participants