Skip to content

Instantly share code, notes, and snippets.

@nolanlawson
Last active January 17, 2024 16:04
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save nolanlawson/fe5bfab1867d71000c81 to your computer and use it in GitHub Desktop.
Save nolanlawson/fe5bfab1867d71000c81 to your computer and use it in GitHub Desktop.
How to link an Android app to a local library project
@nolanlawson
Copy link
Author

Sometimes while trying this with third-party library, I got plugin with id 'com.android.library' not found.

This fixed it (add to the app project root build.gradle):

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.1.0'
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

@nomadster
Copy link

Change compile with implementation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment