

# 4.0.0 canary 9 defaults to Prefab 1.0.0-alpha3, which is not the latest.ĭeclaring the dependencies in your adle will cause Gradle to download those dependencies from Maven, but you must still instruct CMake or ndk-build how those dependencies should be used. Note: With AGP 4.0 this is still experimental, so to enable this functionality you must set the following properties in your project's gradle.properties file: Here’s how you’d use curl and jsoncpp for example (and automatically pull in the implicit OpenSSL dependency that curl has): With version 4.0 of the Android Gradle Plugin, we’ve addressed these issues by adding support for distributing and exposing native libraries through the same mechanism that you do for Java libraries: Android Archives (AARs).


Library authors need to maintain support for both ndk-build and CMake (and hope that their users are using one of those two options and not something else).One thing that NDK users struggle with is managing native dependencies:
