-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Home
Gerry edited this page Oct 12, 2016
·
11 revisions
- Android Studio: use "Import project (Eclipse ADT, Gradle, etc)", or "File" > "Import Project", local.properties file will be created. Double check sdk and ndk directories are setting correctly in that file.
- Command Line: set up two environment variables ANDROID_HOME (for sdk dir) and ANDROID_NDK_HOME(for ndk dir), then "gradlew assembleDebug"
- In app/build.gradle, add compile dependency for debug and release builds with:
debugCompile project(path: ':layerlib', configuration: 'debug')
releaseCompile project(path: ':layerlib', configuration: 'release') - in lib(s)/build.gradle, enable the default publishNonDefault:
android {
publishNonDefault true
}