Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fully remove an external library in a project?

I would like to fully remove all the links to an external library in my project. How can I do that ?

What I did:

  • Right click on project folder => Properties => Android => remove the library in the right panek
  • Right click on project folder =>Build Paths => Configure build paths =>In the right panel: the folder relative to the library can be expanded; I manage to remove one of the resources in this expanded fodler but not the others (and consequently not the root folder)

The library (.jar) is still visible in my project above the assets folder and I don't manage to remove it. Below how it looks (cannot be remove by right click and delete (gray)):

jar file which cannot be removed

Any help would be appreciated !

like image 488
Regis_AG Avatar asked Oct 28 '11 08:10

Regis_AG


People also ask

How do I delete an external library?

Right click on project folder => Properties => Android => remove the library in the right panek.

How do I remove a library from my project?

Select any Linked Library or BIMcloud Library from the Library Manager. (File > Libraries and Objects > Library Manager). Click the Remove icon to remove the library.

How do I delete an external library in Intellij?

Use F4 and go to Libraries, click the library and note the location of the source jar. The library can be deleted by right-clicking and "delete".

How do I delete a direct dependency library?

Go to File -> Project Structure -> Dependencies -> Select library/module -> click minus(-) -> Confirm selection from alert. If the above solution does not work then try this: firstly remove the library from your build. gradle file and then delete it from the project structure.


1 Answers

Maybe You have to go:

right click on your project:

properties > select "Android"

Under "Library", remove the library you want.

It maybe some libraries include other libraries so you couldn't remove it from where you have tried.

like image 77
Terence Lui Avatar answered Nov 15 '22 18:11

Terence Lui