Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compile GitHub Project to be used in Android Studio

How can I take a github project, that I have forked and edited, and the compile it so that is can be used like this

dependencies {
    compile 'com.github.name:project:1.0'

How can I turn a fork into something that can be used like this?

Thanks

like image 266
iqueqiorio Avatar asked Jun 11 '26 01:06

iqueqiorio


1 Answers

To install some lib locally, you need to declare the project in gradle:

In settings.gradle file, change the configuration to:

include ':app', ':your-lib'
project(':your-lib').projectDir = new File('Path/To/The/Lib/library')

After this include in your build.gradle the dependency:

dependencies {
    compile project(":your-lib")
}

This will import in you IDE the module of the library, and compiles to your APK.

like image 133
Deividi Cavarzan Avatar answered Jun 13 '26 15:06

Deividi Cavarzan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!