15

Sometimes within the library I need to search a method name or a method that deals with what I am looking for.

In Android Studio, is there a way to search a word within jar, aar, and maven imported libraries?

It doesn't have to be using Android Studio, is there a tool which I can search words within jar, aar, maven imported libraries?

jclova
  • 5,206
  • 16
  • 50
  • 76

4 Answers4

11

On Android Studio, for searching something within the imported libraries, you can try :

Open Edit menu

Select "Find" -> "Find Usage Settings" and select the Scope as "Project and Libraries"

OR

Select "Find" -> "Find in path" and select "Scope" scope specifying this as "Project and Libraries"

Hope this is helpful.

Xan
  • 4,021
  • 4
  • 29
  • 36
Neh
  • 422
  • 4
  • 7
3

Find in Path (Ctrl + Shift + F)

enter image description here

Zeero0
  • 2,302
  • 20
  • 36
1

Search text in .jar .aar

As a variant you can

  1. find an archive with classes (Project View -> Reveal in Finder)
  2. open with Java Decompiler (e.g. JD-GUI)
  3. Save all sources (File -> Save all sources)
  4. Use a text finder

[JAR vs AAR]

yoAlex5
  • 21,739
  • 5
  • 148
  • 151
1

Android Studio has Java Decompiler IntelliJ Plugin (apparently it's JD-GUI in Android Studio)

Chris Sprague
  • 2,592
  • 27
  • 23