Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio - How to remove SDK APIs From External Libraries?

I have adding some SDK APIs to my project, now i need to remove them from External Libraries. So How can i do that ?

enter image description here

like image 813
Cool Avatar asked Feb 12 '23 13:02

Cool


1 Answers

You can edit app.iml file and comment the entry orderEntry to remove the external libraries you don't need in your Android studio project. In my case, I want to remove all the android libraries (including Android SDK), and take that project as a pure Java project. Then I comment or remove all the following entries

<orderEntry type="jdk" jdkName="Android API 21 Platform" jdkType="Android SDK" />
<orderEntry type="library" exported="" name="appcompat-v7-21.0.3" level="project" />
<orderEntry type="library" exported="" name="support-annotations-21.0.3" level="project" />
<orderEntry type="library" exported="" name="support-v4-21.0.3" level="project" />

The detailed information of your project might not be the same as above, but it's similar like that to remove external libraries.

like image 114
alijandro Avatar answered Feb 15 '23 11:02

alijandro