Announcement

Collapse
No announcement yet.

Can not run my FIRST Android App

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

    #16
    I created an answerhub post.

    Comment


      #17
      Had exact the same problem can't deploy and thing on android! I did your steps and now everything working fine with 4.14.3
      Thank you
      Originally posted by natemac00 View Post
      Uninstalled Java (https://www.java.com/en/download/hel...stall_java.xml)
      Uninstalled CodeWorks & Deleted NVIDA and .NVIDIA folder.
      Restarted
      Installed Java Developers Kit 8u121 ONLY (jdk-8u121-macosx-x64.dmg)
      Restarted
      Installed CodeWorks 1R5(not 4u2) from the Extra Folder.
      Restarted
      Set SDK, NDK & ANT Locations
      UE 4.14.3 Deploys Android Apps with no issue

      I did not install Java 6 or 7
      I did do the JAVA_HOME tutorial after the fact, I'm not sure it did anything though. (http://www.sajeconsultants.com/how-t...e-on-mac-os-x/)
      -It did not have a file for emac .profile that it talked about, I did create one though.

      Still am not able to Deploy in 4.15
      Code:
      -pre-compile:
      -compile:
          [javac] Compiling 1 source file to /Volumes/Scratch Disk/Dropbox/Unreal Projects/AndroidProject_4_15/Intermediate/Android/APK/JavaLibs/support-v4-23.0.0/bin/classes
          [javac] javac: invalid target release: 1.7
          [javac] Usage: javac <options> <source files>
          [javac] use -help for a list of possible options
      BUILD FAILED
      /Users/natemcgraw/NVPACK/android-sdk-macosx/tools/ant/build.xml:597: The following error occurred while executing this line:
      /Users/natemcgraw/NVPACK/android-sdk-macosx/tools/ant/build.xml:716: The following error occurred while executing this line:
      /Users/natemcgraw/NVPACK/android-sdk-macosx/tools/ant/build.xml:730: Compile failed; see the compiler error output for details.
      Total time: 1 second
      Program.Main: ERROR: AutomationTool terminated with exception: System.IO.FileNotFoundException: /Volumes/Scratch Disk/Dropbox/Unreal Projects/AndroidProject_4_15/Intermediate/Android/APK/bin/AndroidProject_4_15-debug.apk does not exist
      File name: '/Volumes/Scratch Disk/Dropbox/Unreal Projects/AndroidProject_4_15/Intermediate/Android/APK/bin/AndroidProject_4_15-debug.apk'
        at System.IO.File.Copy (System.String sourceFileName, System.String destFileName, Boolean overwrite) [0x00000] in <filename unknown>:0
        at UnrealBuildTool.UEDeployAndroid.MakeApk (UnrealBuildTool.AndroidToolChain ToolChain, System.String ProjectName, System.String ProjectDirectory, System.String OutputPath, System.String EngineDirectory, Boolean bForDistribution, System.String CookFlavor, Boolean bMakeSeparateApks, Boolean bIncrementalPackage, Boolean bDisallowPackagingDataInApk, Boolean bDisallowExternalFilesDir) [0x00000] in <filename unknown>:0
        at UnrealBuildTool.UEDeployAndroid.PrepForUATPackageOrDeploy (UnrealBuildTool.FileReference ProjectFile, System.String ProjectName, System.String ProjectDirectory, System.String ExecutablePath, System.String EngineDirectory, Boolean bForDistribution, System.String CookFlavor, Boolean bIsDataDeploy) [0x00000] in <filename unknown>:0
        at AndroidPlatform.Deploy (AutomationTool.ProjectParams Params, DeploymentContext SC) [0x00000] in <filename unknown>:0
        at Project.Deploy (AutomationTool.ProjectParams Params) [0x00000] in <filename unknown>:0
        at BuildCookRun.DoBuildCookRun (AutomationTool.ProjectParams Params) [0x00000] in <filename unknown>:0
        at BuildCookRun.ExecuteBuild () [0x00000] in <filename unknown>:0
        at AutomationTool.BuildCommand.Execute () [0x00000] in <filename unknown>:0
        at AutomationTool.Automation.Execute (System.Collections.Generic.List`1 CommandsToExecute, Tools.DotNETCommon.CaselessDictionary.CaselessDictionary`1 Commands) [0x00000] in <filename unknown>:0
        at AutomationTool.Automation.Process (System.String[] Arguments) [0x00000] in <filename unknown>:0
        at AutomationTool.Program.MainProc (System.Object Param) [0x00000] in <filename unknown>:0
        at AutomationTool.InternalUtils.RunSingleInstance (System.Func`2 Main, System.Object Param) [0x00000] in <filename unknown>:0
        at AutomationTool.Program.Main () [0x00000] in <filename unknown>:0
      Program.Main: AutomationTool exiting with ExitCode=1 (Error_Unknown)
      RunUAT ERROR: AutomationTool was unable to run successfully.

      Comment


        #18
        You need jdk 1.8 installed, then edit your .bash_profile and make sure the last "export JAVA_HOME=" points to it; add the line if you don't have it. 4.16 will let you enter it in Android SDK project settings, too, when it is released.

        Comment

        Working...
        X