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"

Can't compile C++ project for Android.

I am getting these errors when trying to package for Android:

UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: ====6/10/2017 7:38:26 PM====PREPARING TO MAKE APK================================================================= UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: ERROR: System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified

I have set the Android SDK config in the project settings, this is my first effort to try to compile it but not sure what's going on. Any help would be appreciated.

Full log here:

link text

Product Version: UE 4.16
Tags:
errorlog.txt (29.4 kB)
more ▼

asked Jun 10 '17 at 11:50 PM in Packaging & Deployment

avatar image

RumbleMonk
206 11 18 19

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hi RumbleMonk,

UE 4.16 unsupported Visual Studio 2013. If you using 2015 or 2017 can you check c++ toolchain. For this go to Control Panel > Program Add & Remove > Microsoft Visual Studio > Modify.

more ▼

answered Jun 11 '17 at 12:40 AM

avatar image

Sertac Ogan
1.5k 30 11 46

avatar image RumbleMonk Jun 12 '17 at 12:37 AM

Thanks for the reply, what am I looking for here exactly? I'm using 2015, the features that are used in my installation are all 3 options under Visual c++ (common tools, foundation classes, windows xp support).

The options under cross platform mobile development are not checked however, that does sound like something to look into...?

avatar image Sertac Ogan Jun 12 '17 at 09:01 AM

Okey enought only c++ option. Can you install windows 8.1 or 10 sdk. And can you share me android sdk options in ue4 editor.

avatar image RumbleMonk Jun 13 '17 at 01:16 AM

alt text

I have followed the steps at link text, which as far as I know should be enough for a windows 10 SDK?

capture.png (31.3 kB)
avatar image RumbleMonk Jun 13 '17 at 05:35 PM

Oh, so again - I'm new to C++ compiling for UE4, I tried setting 'solution configurations' to shipping then rebuilding my game from VS2015. The rebuild was all fine, when compiling in UE I still get the same error message;

ERROR: System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified

Does it even matter what I do in Visual Studio? I'd imagine packaging in UE4Editor will run everything again anyway... I feel lost.

avatar image Sertac Ogan Jun 13 '17 at 05:38 PM

Can you try empty project with compile ?

avatar image RumbleMonk Jun 14 '17 at 11:41 AM

link text

This is a test from the 'c++ basic code' template with minimal content. Still the same error. All I did was go to project settings - platforms - android then hit 'configure now' for APKPackaging.

I have spaces in my paths (again, using win10) - might that be part of the problem? My projects are inside 'unreal projects' folder and UE4 installations in the default.

compiletest.txt (9.8 kB)
avatar image Sertac Ogan Jun 14 '17 at 11:51 AM

The problem is definitely not the project. But I could not figure out another solution. Sorry.

avatar image RumbleMonk Jun 14 '17 at 12:08 PM

I tried creating a project in C:\UnrealProjects and got the same thing - space in the folder is not the problem, same error.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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