Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 407
jclova Avatar asked Aug 24 '16 14:08

jclova


People also ask

What is the difference between AAR and jar?

Unlike JAR files, AAR files offer the following functionality for Android applications: AAR files can contain Android resources and a manifest file, which allows you to bundle in shared resources like layouts and drawables in addition to Java classes and methods.

Where is the AAR file in Android Studio?

Change Project structure from Android to Project. Then paste "aar" in libs folder. Click on File at top left of android studio and click "Sync Project with Gradle Files" as below. That's it.

What is an AAR in Android?

In addition to JAR files, Android uses a binary distribution format called Android Archive(AAR). The . aar bundle is the binary distribution of an Android Library Project. An AAR is similar to a JAR file, but it can contain resources as well as compiled byte-code.


2 Answers

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.

like image 117
Neh Avatar answered Sep 18 '22 01:09

Neh


Find in Path (Ctrl + Shift + F)

enter image description here

like image 30
Zeero0 Avatar answered Sep 19 '22 01:09

Zeero0