Download

Trying to build LITE versio (Cloned from FULL Version)

So I have FULL version game and I wanted to make LITE version. So I Cloned the project. Made some little changes to game (Only deleted some array data) and then I changed project settings.
In Project Settings I changed App Icons and Keystore details. I also generated new .keystore.

Now I get BUILD FAILED error code:

“UATHelper: Packaging (Android (All)): Running AutomationTool…
UATHelper: Packaging (Android (All)): Program.Main: ERROR: AutomationTool terminated with exception: System.ArgumentException: Saman avaimen sisältävä kohde on jo lisätty.
UATHelper: Packaging (Android (All)): kohteessa System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
UATHelper: Packaging (Android (All)): kohteessa System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add) UATHelper: Packaging (Android (All)): kohteessa System.Collections.Generic.Dictionary2.Add(TKey key, TValue value)
UATHelper: Packaging (Android (All)): kohteessa AutomationTool.ProjectUtils.CompileAndLoadTargetsAssembly(ProjectProperties Properties, FileReference TargetsDllFilename, Boolean DoNotCompile, List1 TargetScripts) UATHelper: Packaging (Android (All)): kohteessa AutomationTool.ProjectUtils.DetectTargetsForProject(ProjectProperties Properties, List1 ExtraSearchPaths)
UATHelper: Packaging (Android (All)): kohteessa AutomationTool.ProjectUtils.DetectProjectProperties(FileReference RawProjectPath, List1 ClientTargetPlatforms, Boolean AssetNativizationRequested) UATHelper: Packaging (Android (All)): kohteessa AutomationTool.ProjectUtils.GetProjectProperties(FileReference RawProjectPath, List1 ClientTargetPlatforms, Boolean AssetNativizationRequested)
UATHelper: Packaging (Android (All)): kohteessa AutomationTool.ProjectParams.AutodetectSettings(Boolean bReset)
UATHelper: Packaging (Android (All)): kohteessa AutomationTool.ProjectParams…ctor(FileReference RawProjectPath, BuildCommand Command, String Device, String MapToRun, String AdditionalServerMapParams, ParamList1 Port, String RunCommandline, String StageCommandline, String BundleName, String StageDirectoryParam, String UE4Exe, String SignPak, List1 Clien
tConfigsToBuild, List1 ServerConfigsToBuild, ParamList1 MapsToCook, ParamList1 MapIniSectionsToCook, ParamList1 DirectoriesToCook, String InternationalizationPreset, ParamList1 CulturesToCook, ParamList1 ClientCookedTargets, ParamList1 EditorTargets, ParamList1 ServerCookedTargets, List1 ClientTargetPlatforms, Dictionary2 ClientDependentPlatformMap
, List1 ServerTargetPlatforms, Dictionary2 ServerDependentPlatformMap, Nullable1 Build, Nullable1 Cook, Nullable1 Run, Nullable1 SkipServer, Nullable1 Clean, Nullable1 Compressed, Nullable1 UseDebugParamForEditorExe, Nullable1 IterativeCooking, Nullable1 IterateSharedCookedBuild, Nullable1 CookAll, Nullable1 CookPartialGC, Nullable1 CookInEdito
r, String CookOutputDir, Nullable1 CookMapsOnly, Nullable1 CookOnTheFly, Nullable1 CookOnTheFlyStreaming, Nullable1 UnversionedCookedContent, Nullable1 EncryptIniFiles, Nullable1 EncryptPakIndex, Nullable1 EncryptEverything, Nullable1 SkipCookingEditorContent, Nullable1 NumCookersToSpawn, String AdditionalCookerOptions, String BasedOnReleaseVersion, String CreateReleaseVersion, String CreateReleaseVersionBasePath, String BasedOnReleaseVersionBasePath, Nullable1 GeneratePatch, String DLCName, String DiffCookedContentPath, Nullable1 DLCIncludeEngineContent, Nullable1 CrashReporter, Nullable1 DedicatedServer, Nullable1 Client, Nullable1 Deploy, String DeployFolder, Nullable1 FileServer, Nullable1 Foreign, Nullable1 ForeignCode, Nullable1 LogWindow, Nullable1 NoCleanStage, Nullable1 NoClient, Nullable1 NoDebugInfo, Nullable1 NoXGE, Nullable1 Package, Nullable1 Pak, Nullable1 Prereqs, String AppLocalDirectory, Nullable1 NoBootstrapExe, Nullable1 SignedPak, Nullable1 NullRHI, Nullable1 FakeClient, Nullable1 EditorTest, Nullable1 RunAutoma
tionTests, String RunAutomationTest, Nullable1 CrashIndex, Nullable1 SkipCook, Nullable1 SkipCookOnTheFly, Nullable1 SkipPak, Nullable1 SkipStage, Nullable1 Stage, Nullable1 Manifests, Nullable1 CreateChunkInstall, Nullable1 Unattended, Nullable1 NumClients, Nullable1 Archive, String ArchiveDirectoryParam, Nullable1 ArchiveMetaData, Nullable1 Cr eateAppBundle, ParamList1 ProgramTargets, Nullable1 Distribution, Nullable1 Prebuilt, Nullable1 RunTimeoutSeconds, String SpecifiedArchitecture, Nullable1 IterativeDeploy, Nullable1 FastCook, Nullable1 IgnoreCookErrors, Nullable1 RunAssetNativization, Nullable1 CodeSign, Nullable1 TreatNonShippingBinariesAsDebugFiles, String Provision, String Certi ficate, String Team, Boolean AutomaticSigning, ParamList1 InMapsToRebuildLightMaps, ParamList1 TitleID) UATHelper: Packaging (Android (All)): kohteessa BuildCookRun.SetupParams() UATHelper: Packaging (Android (All)): kohteessa BuildCookRun.ExecuteBuild() UATHelper: Packaging (Android (All)): kohteessa AutomationTool.BuildCommand.Execute() UATHelper: Packaging (Android (All)): kohteessa AutomationTool.Automation.Execute(List1 CommandsToExecute, CaselessDictionary1 Commands) UATHelper: Packaging (Android (All)): kohteessa AutomationTool.Automation.Process(String] Arguments) UATHelper: Packaging (Android (All)): kohteessa AutomationTool.Program.MainProc(Object Param) UATHelper: Packaging (Android (All)): kohteessa AutomationTool.InternalUtils.RunSingleInstance(Func2 Main, Object Param)
UATHelper: Packaging (Android (All)): kohteessa AutomationTool.Program.Main()
UATHelper: Packaging (Android (All)): Program.Main: AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Packaging (Android (All)): BUILD FAILED”

Saman avaimen sisältävä kohde on jo lisätty. = Same key has already added.

Pufff… what to do? .Keystore file is new and generated just 1 minutes ago. This new .keystore file I already added to right folder and I have set it also in project settings.

Something I dont get it?

If you copied the project you might need to clean out the Intermediate/Android/APK before packaging. Also, check and see if Build/Android/src has files for your old package name.