Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Android NDK hardcoded to use version 12b in UE4.21

I'm trying to build an installed build of a custom version of UE4.21, and it requires Android support. When building the android binaries, UEBuildAndroid.cs seems to override the system environment variables with whatever is set in the configs at /Script/AndroidPlatformEditor.AndroidSDKSettings (Line 560 of UEBuildAndroid.cs):

             string path;
             foreach (KeyValuePair<string, string> kvp in EnvVarNames)
                 if (GetPath(configCacheIni, "/Script/AndroidPlatformEditor.AndroidSDKSettings", kvp.Value, out path) && !string.IsNullOrEmpty(path))
                     AndroidEnv.Add(kvp.Key, path);
                     string envValue = Environment.GetEnvironmentVariable(kvp.Key);
                     if (!String.IsNullOrEmpty(envValue))
                         AndroidEnv.Add(kvp.Key, envValue);

I've found that in the generated Engine.ini in Engine\Programs\UnrealHeaderTool\Intermediate\Config\CoalescedSourceConfigs this is set:


I've tried changing Engine\Config\BaseEngine.ini -> [/Script/AndroidPlatformEditor.AndroidSDKSettings] to match what I would like to use:


However, cleaning the intermediate folders, then doing a rebuild results in the Engine.ini being regenerated, but seems to disregard BaseEngine.ini.

I have so far been unable to find where /Script/AndroidPlatformEditor.AndroidSDKSettings is generated at build-time - does anyone know how I can override these settings for a build of the engine?

Product Version: UE 4.21
more ▼

asked Dec 28 '18 at 07:40 PM in Packaging & Deployment

avatar image


(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question