Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set the library build order in gradle?

I have a custom android.jar which overrides the default android classes and needs to be build before the default android.jar .In eclipse I can set the order in the tab of 'Order and Export'。But now I'm using gradle in android studio,what should i do?

Any ideas? Any clarification needed? Thanks in advance!

enter image description here

like image 304
Seth Avatar asked Nov 27 '22 06:11

Seth


1 Answers

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:23.0.0'
    compile 'com.android.support:design:23.0.0'
}

Like this you can build jar files

like image 146
BornToCode Avatar answered Dec 06 '22 00:12

BornToCode