Announcement

Collapse
No announcement yet.

UE4 can't find the path (project / intermediate \ android \ bin \ release apk)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    UE4 can't find the path (project / intermediate \ android \ bin \ release apk)

    Hello,

    I don't understand why I can't package my game, there is the log for gradle:

    UATHelper: Packaging (Android (ASTC)): ERROR: No suitable Java found. In order to properly use the Android Developer
    UATHelper: Packaging (Android (ASTC)): Tools, you need a suitable version of Java JDK installed on your system.
    UATHelper: Packaging (Android (ASTC)): We recommend that you install the JDK version of JavaSE, available here:
    UATHelper: Packaging (Android (ASTC)): http://www.oracle.com/technetwork/java/javase/downloads
    UATHelper: Packaging (Android (ASTC)): If you already have Java installed, you can define the JAVA_HOME environment
    UATHelper: Packaging (Android (ASTC)): variable in Control Panel / System / Avanced System Settings to point to the
    UATHelper: Packaging (Android (ASTC)): JDK folder.
    UATHelper: Packaging (Android (ASTC)): You can find the complete Android SDK requirements here:
    UATHelper: Packaging (Android (ASTC)): http://developer.android.com/sdk/requirements.html
    PackagingResults: Error: No suitable Java found. In order to properly use the Android Developer
    PackagingResults: Error: No suitable Java found. In order to properly use the Android Developer
    PackagingResults: Error: No suitable Java found. In order to properly use the Android Developer
    PackagingResults: Error: No suitable Java found. In order to properly use the Android Developer
    UATHelper: Packaging (Android (ASTC)): ERROR: System.IO.FileNotFoundException: Le fichier 'C:\Documents\UnrealProject\Free_Money\Intermediate\Android\APK\build.xml' est introuvable.
    UATHelper: Packaging (Android (ASTC)): Nom de fichier : 'C:\Documents\UnrealProject\Free_Money\Intermediate\Android\APK\build.xml'
    UATHelper: Packaging (Android (ASTC)): à System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    UATHelper: Packaging (Android (ASTC)): à System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
    UATHelper: Packaging (Android (ASTC)): à System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
    UATHelper: Packaging (Android (ASTC)): à System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)
    UATHelper: Packaging (Android (ASTC)): à System.IO.StreamReader..ctor(String path, Encoding encoding)
    UATHelper: Packaging (Android (ASTC)): à System.IO.File.InternalReadAllLines(String path, Encoding encoding)
    UATHelper: Packaging (Android (ASTC)): à UnrealBuildTool.UEDeployAndroid.UpdateBuildXML(String UE4Arch, String NDKArch, String EngineDir, String UE4BuildPath) dans D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Platform\Android\UEDeployAndroid.cs:ligne 4111
    UATHelper: Packaging (Android (ASTC)): à UnrealBuildTool.UEDeployAndroid.MakeApk(AndroidToolChain ToolChain, String ProjectName, TargetType InTargetType, String ProjectDirectory, String OutputPath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bMakeSeparateApks, Boolean bIncrementalPackage, Boolean bDisallowPackagingD
    ataInApk, Boolean bDisallowExternalFilesDir) dans D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Platform\Android\UEDeployAndroid.cs:ligne 3455
    UATHelper: Packaging (Android (ASTC)): à UnrealBuildTool.UEDeployAndroid.PrepForUATPackageOrDeploy(FileReference ProjectFile, String ProjectName, DirectoryReference ProjectDirectory, String ExecutablePath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bIsDataDeploy) dans D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine
    \Source\Programs\UnrealBuildTool\Platform\Android\UEDeployAndroid.cs:ligne 4095
    UATHelper: Packaging (Android (ASTC)): à AndroidPlatform.Package(ProjectParams Params, DeploymentContext SC, Int32 WorkingCL) dans D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Android\AndroidPlatform.Automation.cs:ligne 401
    UATHelper: Packaging (Android (ASTC)): à Project.Package(ProjectParams Params, Int32 WorkingCL) dans D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\PackageCommand.Automation.cs:ligne 37
    UATHelper: Packaging (Android (ASTC)): à BuildCookRun.DoBuildCookRun(ProjectParams Params) dans D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:ligne 220
    UATHelper: Packaging (Android (ASTC)): à BuildCookRun.ExecuteBuild() dans D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:ligne 41
    UATHelper: Packaging (Android (ASTC)): à AutomationTool.BuildCommand.Execute() dans D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\BuildCommand.cs:ligne 242
    UATHelper: Packaging (Android (ASTC)): à AutomationTool.Automation.Execute(List`1 CommandsToExecute, Dictionary`2 Commands) dans D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:ligne 545
    UATHelper: Packaging (Android (ASTC)): à AutomationTool.Automation.Process(String[] Arguments, StartupTraceListener StartupListener) dans D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:ligne 515
    UATHelper: Packaging (Android (ASTC)): à AutomationTool.Program.MainProc(String[] Arguments, StartupTraceListener StartupListener) dans D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Program.cs:ligne 162
    UATHelper: Packaging (Android (ASTC)): à AutomationTool.Program.<>c__DisplayClass1_0.<Main>b__2() dans D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Program.cs:ligne 88
    UATHelper: Packaging (Android (ASTC)): à AutomationTool.InternalUtils.RunSingleInstance(Func`1 Main) dans D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\Utils.cs:ligne 725
    UATHelper: Packaging (Android (ASTC)): à AutomationTool.Program.Main(String[] Arguments) dans D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Program.cs:ligne 88
    UATHelper: Packaging (Android (ASTC)): (see C:\Users\lemme\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.22\Log.txt for full exception trace)
    UATHelper: Packaging (Android (ASTC)): AutomationTool exiting with ExitCode=1 (Error_Unknown)
    UATHelper: Packaging (Android (ASTC)): BUILD FAILED
    PackagingResults: Error: System.IO.FileNotFoundException: Le fichier 'C:\Documents\UnrealProject\Free_Money\Intermediate\Android\APK\build.xml' est introuvable.
    PackagingResults: Error: Unknown Error
    LogSlate: Window 'Output Log' being destroyed
    LogSlate: Window 'Output Log' being destroyed
    LogEditorViewport: Clicking Background
    LogSlate: FSceneViewport::OnFocusLost() reason 2
    LogEditorViewport: Clicking Background
    LogSlate: FSceneViewport::OnFocusLost() reason 2
    LogConsoleManager: Warning: Console object named 'ActorComponents.Enable' already exists but is being registered again, but we weren't expected it to be! (FConsoleManager::AddConsoleObject)
    Last edited by liam.vd; 03-15-2020, 08:37 AM.

    #2
    Okay,

    I move on ! Now, the issues with Java is solved ! But I still stuck because unreal can't find the good path :

    PackagingResults: Error: System.IO.DirectoryNotFoundException: Impossible de trouver une partie du chemin d'accès 'C:\Documents\UnrealProject\Free_Money\Intermediate/Android/APK/bin/Free_Money-release.apk'.
    PackagingResults: Error: Unknown Error

    Comment

    Working...
    X