Martin Erlic
Martin Erlic

Reputation: 5665

How can I edit the source of a gradle library and use the changes in my project?

Let's use Yalantis Phoenix Library as an example. I don't want to import the project via gradle, but I want to edit and use the source code of the library since the author provides no way to edit some of the files programatically.

The way I've done, it is the following:

  1. Unzip folder

  2. File > New > Import Module (select Phoenix-master folder)

  3. Now, my gradle file has:

    dependencies {  
        //...  
        compile project(':library')  
    }
    

But the library doesn't compile. What step am I missing?

I get the following error:

Error:Could not find method isReleaseBuild() for arguments [] on project ':library' of type org.gradle.api.Project.

Upvotes: 2

Views: 722

Answers (2)

random40154443
random40154443

Reputation: 1140

Please read the usage guidelines already given in the link here Usage . Include the library as local library project.

compile 'com.yalantis:phoenix:1.2.3'

Upvotes: 1

piotrek1543
piotrek1543

Reputation: 19351

Change these lines:

dependencies {
//...
    compile project(':library')
}

into

dependencies {
//...
 compile 'com.yalantis:phoenix:1.2.3'
}

Upvotes: 2

Related Questions