--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/fa2b8d4e-ba6d-45b4-8ce3-a718aa2bbc19%40googlegroups.com.
What version of the Gradle plugin are you using? I think that was added in 3.5, but it may have been 3.4. if you're using an older version and don't want to deal with upgrading the Gradle plugin right this moment, you can set ndk.dir (in your local.properties) to point to the NDK you want to use, in the SDK directory or otherwise.
To unsubscribe from this group and stop receiving emails from it, send an email to andro...@googlegroups.com.
I maintain a list of instructions for setting up a new machine so it would be great if everything could just work in the .gradle file out of the box without needing to input system-configuration-specific like the version of NDK installed
Does you local.properties file contain a definition for "ndk.dir" which points at a valid NDK directory? In Android Studio, File->Project Structure->Android NDK Location menu sets this value.
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/276ca813-b5d8-43c8-8fc2-283acdd8dc1c%40googlegroups.com.
+jomof in case I got any of the facts wrong here.I maintain a list of instructions for setting up a new machine so it would be great if everything could just work in the .gradle file out of the box without needing to input system-configuration-specific like the version of NDK installedYour best bet would be to upgrade to 3.6 or higher (3.6 is the latest stable atm but once 4.0 is out that'll also work), of the gradle plugin. The behavior of which NDK gets used has improved over the recent releases.Pre 3.5: ndk-bundle would be used. It was up to users to make sure they had the right version for the project they were building.3.5: android.ndkVersion is used, otherwise the newest installed NDK would be used3.6: android.ndkVersion is used, otherwise each version of the gradle plugin has a default version of the NDK, so you don't need to specify anything in your build.gradle unless you have a reason to use something other than the default.Caveat for all (current) versions: ndk.dir or ANDROID_NDK_HOME will override the behaviors above. For 3.5+, if the android.ndkVersion does not match it is an error (or perhaps just a warning), but of nothing is explicitly specified for android.ndkVersion then ndk.dir or ANDROID_NDK_HOME will be used. These are probably going away in the future to improve predictability here.3.6+ is going to give you the best chance of having a reproducible build on any given machine. AIUI currently gradle won't automatically download the NDK unless there's an explicit android.ndkVersion specified, but I think there's a pop up in AS that starts the download if they don't already have it. Without AS, users will need to use the SDK manager to get the correct NDK themselves. (I'm not really a fan of this behavior, and am trying to get it changed to just always do the download if needed by the project, but that won't happen until after 4.0.)
On Thu, Jan 23, 2020 at 10:29 AM Andrew Esh <andr...@qterics.com> wrote:
Does you local.properties file contain a definition for "ndk.dir" which points at a valid NDK directory? In Android Studio, File->Project Structure->Android NDK Location menu sets this value.--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to andro...@googlegroups.com.
Is this com.android.tools.build:gradle the "the gradle plugin" which you and Dan Albert mention? What is its proper name? "The Android Gradle plugin"?
Is there some way for me to get a list of which versions of this plugin I have installed on a given machine (so I can delete old versions if needed)?
Okay, this is *very* helpful. However now I am confused because you say "3.6 is the latest stable", but looking at this page:
https://developer.android.com/studio/releases/gradle-plugin
The newest version it lists is 3.5.2. Is this a documentation fault or are we talking about something other than "the Android Gradle plugin"?
Is there a place which canonically lists the versions/newest stable version of the Android Gradle plugin?
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/c8c1574f-1a42-46d7-bf6a-bcf0658617f1%40googlegroups.com.
Is there some way for me to get a list of which versions of this plugin I have installed on a given machine (so I can delete old versions if needed)?
Can you share your build.gradle files? It sounds like you've done it correctly, but the behavior you're describing doesn't match what I'd expect.Is this com.android.tools.build:gradle the "the gradle plugin" which you and Dan Albert mention? What is its proper name? "The Android Gradle plugin"?Yes and yes. I just can never remember the full artifact name. "Android Gradle Plugin" or just "AGP" is mostly what you'll hear.Is there some way for me to get a list of which versions of this plugin I have installed on a given machine (so I can delete old versions if needed)?Okay, this is *very* helpful. However now I am confused because you say "3.6 is the latest stable", but looking at this page:https://developer.android.com/studio/releases/gradle-plugin
The newest version it lists is 3.5.2. Is this a documentation fault or are we talking about something other than "the Android Gradle plugin"?That's my mistake. I thought 3.6 was stable since to me it feels like 4.0 is getting close, but 3.6 is still in RC.Is there a place which canonically lists the versions/newest stable version of the Android Gradle plugin?https://maven.google.com/web/index.html. Search for gradle and expand the com.android.tools.build -> gradle section and you'll get a list of published versions. Stable versions are just the ones that aren't explicitly labeled as alpha/beta/rc or something like that.I'm guessing this thread is probably the best documentation for any of the above currently. It's kind of discussed at https://developer.android.com/studio/projects/install-ndk, but doesn't contain most of those details. I'll try to find some time to get this info into our actual docs.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/c8c1574f-1a42-46d7-bf6a-bcf0658617f1%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/30bf2c4f-8438-4927-a798-0db6e257c704%40googlegroups.com.
Looks right to me. I would add that, in AS 3.5+, you will get a deprecation warning if ANDROID_NDK_HOME is set. Support for this environment variable will be removed in a future release.
On Thu, Jan 23, 2020 at 12:38 PM Dan Albert <dana...@google.com> wrote:
+jomof in case I got any of the facts wrong here.I maintain a list of instructions for setting up a new machine so it would be great if everything could just work in the .gradle file out of the box without needing to input system-configuration-specific like the version of NDK installedYour best bet would be to upgrade to 3.6 or higher (3.6 is the latest stable atm but once 4.0 is out that'll also work), of the gradle plugin. The behavior of which NDK gets used has improved over the recent releases.Pre 3.5: ndk-bundle would be used. It was up to users to make sure they had the right version for the project they were building.3.5: android.ndkVersion is used, otherwise the newest installed NDK would be used3.6: android.ndkVersion is used, otherwise each version of the gradle plugin has a default version of the NDK, so you don't need to specify anything in your build.gradle unless you have a reason to use something other than the default.Caveat for all (current) versions: ndk.dir or ANDROID_NDK_HOME will override the behaviors above. For 3.5+, if the android.ndkVersion does not match it is an error (or perhaps just a warning), but of nothing is explicitly specified for android.ndkVersion then ndk.dir or ANDROID_NDK_HOME will be used. These are probably going away in the future to improve predictability here.3.6+ is going to give you the best chance of having a reproducible build on any given machine. AIUI currently gradle won't automatically download the NDK unless there's an explicit android.ndkVersion specified, but I think there's a pop up in AS that starts the download if they don't already have it. Without AS, users will need to use the SDK manager to get the correct NDK themselves. (I'm not really a fan of this behavior, and am trying to get it changed to just always do the download if needed by the project, but that won't happen until after 4.0.)
On Thu, Jan 23, 2020 at 10:29 AM Andrew Esh <andr...@qterics.com> wrote:
Does you local.properties file contain a definition for "ndk.dir" which points at a valid NDK directory? In Android Studio, File->Project Structure->Android NDK Location menu sets this value.--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to andro...@googlegroups.com.
ANDROID_NDK_HOME is easier to describe to my project's users than describing to them how to create a local.properties file.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/45684a40-655a-4d3e-9dbf-c5fab2e4aaa4%40googlegroups.com.