Announcement

Collapse
No announcement yet.

Disabling any plugins causes launch to fail

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

    Disabling any plugins causes launch to fail

    Hi,

    So I'm working on an Android project in 4.20.1 and I'm hitting a weird problem. I've been trying to reduce the APK size as per the document here: https://docs.unrealengine.com/en-us/...educingAPKSize

    Everything was going well until I started disabling plugins. It seems that disabling any plugins causes the game to fail to run when I "launch" it on my device from the menu. For example, disabling "IOS Device Profile Selector" causes the following errors in the output log:

    Code:
    LogPlayLevel: :app:compileDebugJavaWithJavacZ:\app\src\main\java\com\epicgames\ue4\GameActivity.java:100: error: package com.google.vr.sdk.samples.permission does not exist
    LogPlayLevel: import com.google.vr.sdk.samples.permission.PermissionHelper;
    LogPlayLevel:                                            ^
    LogPlayLevel: Z:\app\src\main\java\com\epicgames\ue4\GameActivity.java:526: error: cannot find symbol
    LogPlayLevel:             PermissionHelper.acquirePermissions(new String[] {"android.permission.WRITE_EXTERNAL_STORAGE"}, this);
    LogPlayLevel:             ^
    LogPlayLevel:   symbol:   variable PermissionHelper
    LogPlayLevel:   location: class GameActivity
    LogPlayLevel: Z:\app\src\main\java\com\epicgames\ue4\GameActivity.java:2031: error: cannot find symbol
    LogPlayLevel:             if (PermissionHelper.checkPermission("android.permission.GET_ACCOUNTS"))
    LogPlayLevel:                 ^
    LogPlayLevel:   symbol:   variable PermissionHelper
    LogPlayLevel:   location: class GameActivity
    LogPlayLevel: Note: Some input files use or override a deprecated API.
    LogPlayLevel: Note: Recompile with -Xlint:deprecation for details.
    LogPlayLevel: 3 errors
    LogPlayLevel:  FAILED
    LogPlayLevel: FAILURE: Build failed with an exception.
    LogPlayLevel: * What went wrong:
    LogPlayLevel: Execution failed for task ':app:compileDebugJavaWithJavac'.
    LogPlayLevel: > Compilation failed; see the compiler error output for details.
    LogPlayLevel: * Try:
    LogPlayLevel: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    LogPlayLevel: * Get more help at https://help.gradle.org
    LogPlayLevel: BUILD FAILED in 13s
    LogPlayLevel: 37 actionable tasks: 37 executed
    LogPlayLevel: ERROR: cmd.exe failed with args /c "D:\Work\Games\Loat\Intermediate/Android/APK\gradle\rungradle.bat" :app:assembleDebug
    LogPlayLevel:        (see C:\Users\****\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.20\Log.txt for full exception trace)
    LogPlayLevel: AutomationTool exiting with ExitCode=1 (Error_Unknown)
    LogPlayLevel: Completed Launch On Stage: Deploy Task, Time: 42.375099
    LogPlayLevel: BUILD FAILED
    PackagingResults: Error: Launch failed! Unknown Error
    and from the log.txt:
    Code:
    UEDeployAndroid.MakeApk: ====8/31/2018 9:36:45 AM====PERFORMING FINAL APK PACKAGE OPERATION================================================
    UEDeployAndroid.CreateRunGradle:
    UEDeployAndroid.CreateRunGradle: Creating rungradle.bat to work around commandline length limit (using unused drive letter Z:)
    UEDeployAndroid.RunCommandLineProgramWithException: Making .apk with Gradle...
    <>c.<PrintExceptionInfo>b__4_1: ==============================================================================
    <>c.<PrintExceptionInfo>b__4_0: ERROR: cmd.exe failed with args /c "D:\Work\Games\Loat\Intermediate/Android/APK\gradle\rungradle.bat" :app:assembleDebug
    <>c.<PrintExceptionInfo>b__4_0:        (see C:\Users\*****\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.20\Log.txt for full exception trace)
    <>c.<PrintExceptionInfo>b__4_1:
    <>c.<PrintExceptionInfo>b__4_1: BuildException: cmd.exe failed with args /c "D:\Work\Games\Loat\Intermediate/Android/APK\gradle\rungradle.bat" :app:assembleDebug
    <>c.<PrintExceptionInfo>b__4_1:    at UnrealBuildTool.UEDeployAndroid.RunCommandLineProgramWithException(String WorkingDirectory, String Command, String Params, String OverrideDesc, Boolean bUseShellExecute) in D:\Build\++UE4\Sync\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Platform\Android\UEDeployAndroid.cs:line 1406
    <>c.<PrintExceptionInfo>b__4_1:    at UnrealBuildTool.UEDeployAndroid.MakeApk(AndroidToolChain ToolChain, String ProjectName, TargetType InTargetType, String ProjectDirectory, String OutputPath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bMakeSeparateApks, Boolean bIncrementalPackage, Boolean bDisallowPackagingDataInApk, Boolean bDisallowExternalFilesDir) in D:\Build\++UE4\Sync\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Platform\Android\UEDeployAndroid.cs:line 3838
    <>c.<PrintExceptionInfo>b__4_1:    at UnrealBuildTool.UEDeployAndroid.PrepForUATPackageOrDeploy(FileReference ProjectFile, String ProjectName, DirectoryReference ProjectDirectory, String ExecutablePath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bIsDataDeploy) in D:\Build\++UE4\Sync\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Platform\Android\UEDeployAndroid.cs:line 3990
    <>c.<PrintExceptionInfo>b__4_1:    at AndroidPlatform.Deploy(ProjectParams Params, DeploymentContext SC) in D:\Build\++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\Android\AndroidPlatform.Automation.cs:line 1012
    <>c.<PrintExceptionInfo>b__4_1:    at Project.Deploy(ProjectParams Params) in D:\Build\++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\DeployCommand.Automation.cs:line 56
    <>c.<PrintExceptionInfo>b__4_1:    at BuildCookRun.DoBuildCookRun(ProjectParams Params) in D:\Build\++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 222
    <>c.<PrintExceptionInfo>b__4_1:    at BuildCookRun.ExecuteBuild() in D:\Build\++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 41
    <>c.<PrintExceptionInfo>b__4_1:    at AutomationTool.BuildCommand.Execute() in D:\Build\++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\BuildCommand.cs:line 112
    <>c.<PrintExceptionInfo>b__4_1:    at AutomationTool.Automation.Execute(List`1 CommandsToExecute, Dictionary`2 Commands) in D:\Build\++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 562
    <>c.<PrintExceptionInfo>b__4_1:    at AutomationTool.Automation.Process(String[] Arguments, StartupTraceListener StartupListener) in D:\Build\++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 532
    <>c.<PrintExceptionInfo>b__4_1:    at AutomationTool.Program.MainProc(String[] Arguments, StartupTraceListener StartupListener) in D:\Build\++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\Program.cs:line 174
    <>c.<PrintExceptionInfo>b__4_1:    at AutomationTool.Program.<>c__DisplayClass1_0.<Main>b__0() in D:\Build\++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\Program.cs:line 100
    <>c.<PrintExceptionInfo>b__4_1:    at AutomationTool.InternalUtils.RunSingleInstance(Func`1 Main) in D:\Build\++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\Utils.cs:line 725
    <>c.<PrintExceptionInfo>b__4_1:    at AutomationTool.Program.Main() in D:\Build\++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\Program.cs:line 100
    <>c.<PrintExceptionInfo>b__4_1: ==============================================================================
    Program.Main: AutomationTool exiting with ExitCode=1 (Error_Unknown)
    That first line is strange, since it seems to be referring to VR samples, which are not relevant to my project or the plugin I disabled. I'm probably doing something dumb But is there a config step I could have missed somewhere?



    #2
    As an update, I tried creating a new blank project. As soon as I disable any plugins it fails to launch still, although it seems to be the same error as described here.

    Comment


      #3
      This bug was fixed in 4.21

      Comment


        #4
        I get this same error in 4.22. My report is here https://answers.unrealengine.com/que...-a-plugin.html

        Comment


          #5
          here is the list of plugins I made after some experimenting with packaging for Android:

          Click image for larger version

Name:	S906102124511.jpg
Views:	78
Size:	206.3 KB
ID:	1629698
          Rocketeer

          my portfolio
          my youtube

          Camera Volumes System
          Procedurally Instanced Meshes
          Simple Portals
          Water Flow For UDK
          Setup Swarm

          Comment

          Working...
          X