Android building failing within a few seconds

[link text][2]

Hey ,

Here is a [forum post][1] where you can find out how to resolve this issue. The error that you’re running into is: Fatal Error: UTF-16. If you aren’t able to resolve the issue after reviewing that forum post, please let me know and I will assist you further.

Thank you! :slight_smile:

Error durring packaging (clang++) - Mobile - Epic Developer Community Forums

Sorry I don’t know how to convert to utf 8. I tried an online converter but the engine still says it is utf 16, shouldnt this have been done automatically by the engine though how did this even happen ?

But anyway how does one convert utf 16 to 8 ?

MainFrameActions: Packaging (Android (All)): UnrealBuildTool: E:\Program Files\Epic Games\4.9\Engine\Intermediate\Build\Android\UE4\Shipping\HangMan\HangMan.h(4,10) : fatal error: UTF-16

So change this file (“C:\Users\Documents\Unreal Projects\HangMan\Source\HangMan\HangMan.h”) from UTF-16 to UTF-8. By default, these files are generated with UTF-16. So simply open the .h file in Notepad++ and change the encoding type.

Let me know if you have any further questions, thanks!

I did that and overwrite the current file, it still says it is 16

Can you please provide me updated and your Hangman.h file so I can look at it more closely?

Thank you.

link text

[link text][1]

65561-hangman.rar (239 Bytes)

Can you provide us with the proper HangMan.h file? The one you provided us is the auto-generated one. If you’re not sure which one you’re suppose to provide and you’ve found a couple of them, just include them both.

Thank you. :slight_smile:

I changed both and it now has come to a new error

“MainFrameActions: Packaging (Android (All)): UnrealBuildTool: fatal error: UTF-16 (LE) byte order mark detected in ‘C:/Users//Documents/Unreal Projects/HangMan/Source/HangMan/EmptyClass.cpp’, but encoding is not supported
MainFrameActions: Packaging (Android (All)): UnrealBuildTool: fatal error: UTF-16 (LE) byte order mark detected in ‘C:/Users//Documents/Unreal Projects/HangMan/Source/HangMan/MyClass.cpp’, but encoding is not supported”

Should these be UTF 8 too ?

I need to see your proper Hangman.h file, not the one that you sent me previously. Since you have gotten the same fatal error of UTF-16, that should be fixed by the same UTF-8 resolution.

Let me know what happens and whether or not I can see that .h file. Thanks!

It is now building but when I install it (using the batch file) to my phone it crashes on start-up, it “stopped”.

[link text][1]

66157-hangman.rar (1.38 KB)

( launching to my phone does work )

If the phone is crashing on start up of the application, we will need the from the phone. Please go to: C:\android-sdk-windows\tools and open up Monitor.bat. Using this program, you’ll be able to capture the from the device when the application crashes. Save the whole file and provide it to us to look over the cause of the crash.

Thanks!

[link text][1]

66405-log+(hangman±+monitor).txt (5.29 KB)

I hope this is what you wanted, thanks :slight_smile:

Without the “hangman” as filter the log was HUGE, if you want all that too just say

Please provide me the full log. Thank you so much! :slight_smile:

Here you go

[link text][1]

66406-log+(all).txt (594 KB)

The only difference was case, I matched it everywhere perfectly but still the same problem, does it matter which android i build to etc 1 2 3 etc ? what do they mean ?

So I made a new project and brought my files in and packaged for etc1 again but got a build error:

[link text][1]

Here are my android settings:

http://i.imgur.com/JjZ1hba.png

http://i.imgur.com/14NwQBT.png

http://i.imgur.com/PbDpPvQ.png

Do you have a / in the middle of your application title anywhere, the bundle display name, anything like that? If so, could you remove it and see if the issue goes away?

Please make sure that your packaged name matches the name of your project as well, in case you changed that any.

If that does not work for you, please create a new project and import your project files into the new project. Once you’ve done that, package the game and let me know if you run into the same issue.

Looking forward to hearing back from you, thanks!

Looking over the log you provided, it looks like one of your targets are missing. Looks like you have targets for all except Hangman1 which it’s asking for.

You should be able to check for these within the Project\Source directory.

MainFrameActions: Packaging (Android (ETC1)): UnrealBuildTool: UnrealBuildTool Exception: ERROR: Couldn't find target rules file for target 'Hangman1' in rules assembly 'Hangman1ModuleRules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
MainFrameActions: Packaging (Android (ETC1)): UnrealBuildTool: Location: C:\Users\\Documents\Unreal Projects\Hangman1\Intermediate\Build\BuildRules\Hangman1ModuleRules.dll
MainFrameActions: Packaging (Android (ETC1)): UnrealBuildTool: Target rules found:
MainFrameActions: Packaging (Android (ETC1)): UnrealBuildTool:    UE4Editor - E:\Program Files\Epic Games\4.9\Engine\Source\UE4Editor.Target.cs
MainFrameActions: Packaging (Android (ETC1)): UnrealBuildTool:    UE4Game - E:\Program Files\Epic Games\4.9\Engine\Source\UE4Game.Target.cs
MainFrameActions: Packaging (Android (ETC1)): UnrealBuildTool:    HangMan - C:\Users\\Documents\Unreal Projects\Hangman1\Source\HangMan.Target.cs
MainFrameActions: Packaging (Android (ETC1)): UnrealBuildTool:    HangManEditor - C:\Users\\Documents\Unreal Projects\Hangman1\Source\HangManEditor.Target.cs
MainFrameActions: Packaging (Android (ETC1)): UnrealBuildTool: 
MainFrameActions: Packaging (Android (ETC1)): CommandUtils.Run: Run: Took 0.5683738s to run UnrealBuildTool.exe, ExitCode=5
MainFrameActions: Packaging (Android (ETC1)): BuildCommand.Execute: ERROR: BUILD FAILED

I’m sorry I don’t understand, what must I do ?

The UnrealBuildTool couldn’t find the target rules file for target ‘Hangman1’ in the rules assembly ‘Hangman1ModuleRules’.

You should be able to look at these files and make sure they’re correct from your ProjectFolder/Source directory.

Target rules are found here:

  • UE4Editor - E:\Program Files\Epic Games\4.9\Engine\Source\UE4Editor.Target.cs
  • UE4Game - E:\Program Files\Epic Games\4.9\Engine\Source\UE4Game.Target.cs
  • HangMan - C:\Users\Documents\Unreal Projects\Hangman1\Source\HangMan.Target.cs
    HangManEditor
  • C:\Users\Documents\Unreal Projects\Hangman1\Source\HangManEditor.Target.cs