Library of useful Android classes
-
Android Studio uses Gradle to build apps. A way to use the androidBits library with your app is to edit the global
gradle.propertiesfile on your local computer. Create this file in the Gradle user home directory, typically found on Windows 7+ atC:\Users\[user name]\.gradleand on Linux or Mac OS X at~/.gradle. -
Edit the new
gradle.propertiesfile to contain the following variables. Note the lack of quotes and the full paths below, so paths with spaces may have unknown behavior:
For Linux / OS X:
lib_androidBits=/path/to/androidBits/lib_androidBits
For Windows OS (yes, the extra backslashes are required):
lib_androidBits=C\:\\path\\to\\androidBits\\lib_androidBits
- In your project's
settings.gradlefile, include the lines:
include 'androidBits'
project(':androidBits').projectDir = new File(lib_androidBits)
- In your project's
build.gradlefile, include the dependency:
dependencies {
compile project(':androidBits')
}