I can't package for android

until ten days ago i was able to package my project to android without any problem but now i can’t anymore i made few adjustments to the project to make it works with VR Gear (including reinstalling the SDK) and now i can’t package anymore the strange thing is that i can package new projects without any problems but i can’t package my project anymore
i think the problem start to occur at this section of the build.

MainFrameActions: Packaging (Android (ETC2)): ====27.05.2016 17:54:40====UPDATING BUILD CONFIGURATION FILES====================================================

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): UEDeployAndroid.RunCommandLineProgramAndThrowOnError: Updating project.properties, local.properties, and build.xml...

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): Error: Argument 'Vr' is not recognized.

MainFrameActions: Packaging (Android (ETC2)):        Usage:

MainFrameActions: Packaging (Android (ETC2)):        android [global options] update project [action options]

MainFrameActions: Packaging (Android (ETC2)):        Global options:

MainFrameActions: Packaging (Android (ETC2)):   -h --help       : Help on a specific command.

MainFrameActions: Packaging (Android (ETC2)):   -v --verbose    : Verbose mode, shows errors, warnings and all messages.

MainFrameActions: Packaging (Android (ETC2)):      --clear-cache: Clear the SDK Manager repository manifest cache.

MainFrameActions: Packaging (Android (ETC2)):   -s --silent     : Silent mode, shows errors only.

MainFrameActions: Packaging (Android (ETC2)):                          Action "update project":

MainFrameActions: Packaging (Android (ETC2)):   Updates an Android project (must already have an AndroidManifest.xml).

MainFrameActions: Packaging (Android (ETC2)): Options:
MainFrameActions: Packaging (Android (ETC2)):   -l --library    : Directory of an Android library to add, relative to this
MainFrameActions: Packaging (Android (ETC2)):                     project's directory.

MainFrameActions: Packaging (Android (ETC2)):   -p --path       : The project's directory. [required]

MainFrameActions: Packaging (Android (ETC2)):   -n --name       : Project name.

MainFrameActions: Packaging (Android (ETC2)):   -t --target     : Target ID to set for the project.

MainFrameActions: Packaging (Android (ETC2)):   -s --subprojects: Also updates any projects in sub-folders, such as test

MainFrameActions: Packaging (Android (ETC2)):                     projects.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): UEDeployAndroid.RunCommandLineProgramAndThrowOnError: Updating project.properties, local.properties, and build.xml...

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): The system cannot find the path specified.

MainFrameActions: Packaging (Android (ETC2)): Error: Argument 'Vr' is not recognized.

MainFrameActions: Packaging (Android (ETC2)):        Usage:

MainFrameActions: Packaging (Android (ETC2)):        android [global options] update project [action options]

MainFrameActions: Packaging (Android (ETC2)):        Global options:

MainFrameActions: Packaging (Android (ETC2)):   -h --help       : Help on a specific command.

MainFrameActions: Packaging (Android (ETC2)):   -v --verbose    : Verbose mode, shows errors, warnings and all messages.

MainFrameActions: Packaging (Android (ETC2)):      --clear-cache: Clear the SDK Manager repository manifest cache.

MainFrameActions: Packaging (Android (ETC2)):   -s --silent     : Silent mode, shows errors only.

MainFrameActions: Packaging (Android (ETC2)):                          Action "update project":

MainFrameActions: Packaging (Android (ETC2)):   Updates an Android project (must already have an AndroidManifest.xml).

MainFrameActions: Packaging (Android (ETC2)): Options:

MainFrameActions: Packaging (Android (ETC2)):   -l --library    : Directory of an Android library to add, relative to this

MainFrameActions: Packaging (Android (ETC2)):                     project's directory.

MainFrameActions: Packaging (Android (ETC2)):   -p --path       : The project's directory. [required]

MainFrameActions: Packaging (Android (ETC2)):   -n --name       : Project name.

MainFrameActions: Packaging (Android (ETC2)):   -t --target     : Target ID to set for the project.

MainFrameActions: Packaging (Android (ETC2)):   -s --subprojects: Also updates any projects in sub-folders, such as test

MainFrameActions: Packaging (Android (ETC2)):                     projects.

MainFrameActions: Packaging (Android (ETC2)): UEDeployAndroid.UpdateGameActivity: 

MainFrameActions: Packaging (Android (ETC2)): ==== Writing new GameActivity.java file to C:\Users\n.can\Desktop\VR_Test\Flat For Android VR\Intermediate/Android/APK\src\com\epicgames\ue4\GameActivity.java ====

MainFrameActions: Packaging (Android (ETC2)): UEDeployAndroid.MakeApk: 

MainFrameActions: Packaging (Android (ETC2)): Copying .so C:\Program Files\Epic Games\4.10\Engine\Binaries\Android\UE4Game-armv7-es2.so file to jni folder...

MainFrameActions: Packaging (Android (ETC2)): BuildCommand.Execute: ERROR: BUILD FAILED

MainFrameActions: Packaging (Android (ETC2)): Program.Main: ERROR: AutomationTool terminated with exception:

MainFrameActions: Packaging (Android (ETC2)): Program.Main: ERROR: Exception in mscorlib: Could not find a part of the path 'C://android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi-v7a/libgnustl_shared.so'.

MainFrameActions: Packaging (Android (ETC2)): Stacktrace:    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

MainFrameActions: Packaging (Android (ETC2)):    at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)

MainFrameActions: Packaging (Android (ETC2)):    at UnrealBuildTool.Android.UEDeployAndroid.CopySTL(String UE4BuildPath, String UE4Arch, String NDKArch, Boolean bForDistribution)

MainFrameActions: Packaging (Android (ETC2)):    at UnrealBuildTool.Android.UEDeployAndroid.MakeApk(String ProjectName, String ProjectDirectory, String OutputPath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bMakeSeparateApks, Boolean bIncrementalPackage, Boolean bDisallowPackagingDataInApk)

MainFrameActions: Packaging (Android (ETC2)):    at UnrealBuildTool.Android.UEDeployAndroid.PrepForUATPackageOrDeploy(String ProjectName, String ProjectDirectory, String ExecutablePath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bIsDataD

MainFrameActions: Packaging (Android (ETC2)): eploy)

MainFrameActions: Packaging (Android (ETC2)):    at AndroidPlatform.Package(ProjectParams Params, DeploymentContext SC, Int32 WorkingCL)

MainFrameActions: Packaging (Android (ETC2)):    at Project.Package(ProjectParams Params, Int32 WorkingCL)

MainFrameActions: Packaging (Android (ETC2)):    at BuildCookRun.DoBuildCookRun(ProjectParams Params)

MainFrameActions: Packaging (Android (ETC2)):    at BuildCommand.Execute()

MainFrameActions: Packaging (Android (ETC2)):    at AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)

MainFrameActions: Packaging (Android (ETC2)):    at AutomationTool.Automation.Process(String[] CommandLine)

MainFrameActions: Packaging (Android (ETC2)):    at AutomationTool.Program.MainProc(Object Param)

MainFrameActions: Packaging (Android (ETC2)):    at AutomationTool.InternalUtils.RunSingleInstance(Action`1 Main, Object Param)

MainFrameActions: Packaging (Android (ETC2)):    at AutomationTool.Program.Main()

MainFrameActions: Packaging (Android (ETC2)): ProcessManager.KillAll: Trying to kill 0 spawned processes.

MainFrameActions: Packaging (Android (ETC2)): Program.Main: AutomationTool exiting with ExitCode=Error_Unknown

MainFrameActions: Packaging (Android (ETC2)): Domain_ProcessExit

MainFrameActions: Packaging (Android (ETC2)): copying UAT log files...

MainFrameActions: Packaging (Android (ETC2)): RunUAT.bat ERROR: AutomationTool was unable to run successfully.

MainFrameActions: Packaging (Android (ETC2)): BUILD FAILED

PackagingResults:Error: Error Unknown Error

,

It looks like you’re missing a file: MainFrameActions: Packaging (Android (ETC2)): Program.Main: ERROR: Exception in mscorlib: Could not find a part of the path ‘C://android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi-v7a/libgnustl_shared.so’.

If you’re using the GitHub version of the engine, please rebuild for Android. You might also want to run back through the [Android Guide][1] and make sure all files are refreshed if possible.

Could you please upload your full error output logs as a .txt file? I’d also like to see your Android SDK settings. Mine are as follows:

78885-androidsdk.png

Looking forward to hearing back from you, thanks!

Hi
Firstly thanks for the reply…now Regarding the GitHub Question the answer is no i am not using any and i mentioned that its not a global problem in all my projects just this one
i will attach a log.txt for both this project and a blank project with same settings
and about the SDK settings here is print screen for my settings

and here is the full text logs for both projects
link text

[link text][2]

the only difference i can tell from comparing both logs is something related to VR argument arror after the “missing path” lines

Open up your Android SDK Manager and install/update all of the build tool versions. That should resolve the issue you’re running in to now.

Hey ,

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will offer further assistance.

Thank you!

i am terribly sorry for the late reply i was busy last weak i couldn’t make any tests regarding this issue anyway after updating the SDK and checking that everything is installed properly and is up to date i still get the same problem while packaging for android just to reduce our options i will try to package for PC and then see if the problem persist

Has this issue persisted?

When packaging for pc the problem persisted but I copied the project contents to a new and clean project and that solved the problem it seems that the along the project development process many problems ocured within the project and prevented correct packaging I can’t say that I fully understand what happened but at least my problem is solved

Thank you for your concern and you can mark this issue as solved by simply copying the project contents to a new project