16

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?

yoAlex5
  • 29,217
  • 8
  • 193
  • 205
jclova
  • 5,466
  • 16
  • 52
  • 78

5 Answers5

12

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.

Alessandro Scarozza
  • 4,273
  • 6
  • 31
  • 39
Neh
  • 442
  • 4
  • 7
4

Find in Path (Ctrl + Shift + F)

enter image description here

Zeero0
  • 2,602
  • 1
  • 21
  • 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
  • 29,217
  • 8
  • 193
  • 205
1

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

Chris Sprague
  • 3,158
  • 33
  • 24
0

Save yourself the headache and install the JadX plugin on Android Studio.

Restart your IDE then hit "Tools" -> "Jadx GUI" -> navigate to the directory where your .aar or .jar is and hit enter.

M.Ed
  • 969
  • 10
  • 12