x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Build fails on Android Device Launch

When playing the game normally in editor, it runs just fine. Also when I create a plain puzzle template game without doing anything to it, it launches on the android device just fine. However, after finally finishing my game, it doesn't launch on the device anymore and the output log displays a lot of errors most notably:

![alt text

LogPlayLevel: UnrealBuildTool: ../../../../../Users/UserName/Documents/Unreal Projects/TileBreaker/Source/TileBreaker/StaticPuzzleVectors.h(12,1) : error: 'static' is not permitted on a declaration of a type [-Werror,-Wmissing-declarations]


LogPlayLevel: UnrealBuildTool: ERROR: UBT ERROR: Failed to produce item: C:\Users\UserName\Documents\Unreal Projects\TileBreaker\Binaries\Android\TileBreaker-armv7-es2.so


LogPlayLevel: Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.CommandUtils+CommandFailedException: Command failed (Result:5): C:\Program Files\Epic Games\4.14\Engine\Binaries\DotNET\UnrealBuildTool.exe TileBreaker Android Development -Project="C:\Users\UserName\Documents\Unreal Projects\TileBreaker\TileBreaker.uproject" "C:\Users\UserName\Documents\Unreal Projects\TileBreaker\TileBreaker.uproject" -remoteini="C:\Users\UserName\Documents\Unreal Projects\TileBreaker" -noxge -NoHotReload -ignorejunk. See logfile for details: 'UnrealBuildTool-2017.01.09-19.05.24.txt'


PackagingResults:Error: Error Launch failed! Unknown Error

I already tried deleting the Binaries/Intermediate/Saved folders and relaunching, GenerateVisualStudioFiles via UEProjectFile, installed all Android SDK, NDK Kit, Nvidia Tegra, CodeWorks, etc.. Nothing worked! I badly need someone's help.

Here's the full log file link text

Product Version: UE 4.14
Tags:
outputlog.txt (273.5 kB)
more ▼

asked Jan 09 '17 at 01:05 PM in Packaging & Deployment

avatar image

Loqz
6 1 5

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Loqz,

Remove the 'static' declaration from the files in the errors listed below. The error also states to update your API because it's outdated. Are you able to package for Android using a blank template?

 LogPlayLevel: UnrealBuildTool: ../../../../../Users/Jimson/Documents/Unreal Projects/TileBreaker/Source/TileBreaker/StaticPuzzleVectors.h(12,1) :  error: 'static' is not permitted on a declaration of a type [-Werror,-Wmissing-declarations]
 LogPlayLevel: UnrealBuildTool: static class TILEBREAKER_API StaticPuzzleVectors
 LogPlayLevel: UnrealBuildTool: ^
 LogPlayLevel: UnrealBuildTool: C:/Users/Jimson/Documents/Unreal Projects/TileBreaker/Source/TileBreaker/Grid.cpp(62,85) :  warning: 'AudioComponent' is deprecated: AudioComponent should not be accessed directly, please use GetAudioComponent() function instead. AudioComponent will soon be private and your code will not compile. Please update your code to the 
 new API before upgrading to the next release, otherwise your project will no longer compile. [-Wdeprecated-declarations]
 LogPlayLevel: UnrealBuildTool:         (Cast<AMainPawn>(UGameplayStatics::GetPlayerPawn(GetWorld(), 0)))->AudioLevelPass->AudioComponent->Stop();
 LogPlayLevel: UnrealBuildTool:                                                                                            ^
 LogPlayLevel: UnrealBuildTool: C:\Program Files\Epic Games\4.14\Engine\Source\Runtime\Engine\Classes\Sound\AmbientSound.h(16,25) :  note: 'AudioComponent' has been explicitly marked deprecated here
 LogPlayLevel: UnrealBuildTool:         class UAudioComponent* AudioComponent;
 LogPlayLevel: UnrealBuildTool:                                ^
 LogPlayLevel: UnrealBuildTool: In file included from C:/Users/Jimson/Documents/Unreal Projects/TileBreaker/Source/TileBreaker/StaticPuzzleVectors.cpp:4:
 LogPlayLevel: UnrealBuildTool: ../../../../../Users/Jimson/Documents/Unreal Projects/TileBreaker/Source/TileBreaker/StaticPuzzleVectors.h(12,1) :  error: 'static' is not permitted on a declaration of a type [-Werror,-Wmissing-declarations]
 LogPlayLevel: UnrealBuildTool: static class TILEBREAKER_API StaticPuzzleVectors
 LogPlayLevel: UnrealBuildTool: ^
more ▼

answered Jan 09 '17 at 07:35 PM

avatar image Loqz Jan 10 '17 at 03:03 AM

Thank you so much! Removing the 'static' keyword solved my problem. Now I know that you shouldn't use static classes in android.

avatar image Loqz Jan 10 '17 at 03:57 AM

Btw, are the LogCook Warnings on Unparsable ini's ok? Can I just leave them be? Because now that my game is finally launching in my android device, it doesn't run similar to that in the computer. Some levels take forever to load, some audios do not play at all. Any ideas about this?

avatar image Samantha Sutton ♦♦ STAFF Jan 11 '17 at 08:12 PM

I'm glad removing 'static' resolved your issue for you. :D

It's ideal to have a clean output log however, warnings typically will not cause errors but if you do notice a problem with your game, try cleaning up what warnings you can in your project.

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question