Skip to content
Gerry edited this page Oct 12, 2016 · 11 revisions

Generic Build Instructions

  • 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"

Q and A

How to trace code in native lib?

  • 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
}
Clone this wiki locally