Every time I try to export any apk, I always get ERROR: cmd.exe failed with args /c “D:/…/apache-ant-1.9.4/bin/ant.bat” -quiet debug
O tried quite a couple of different apache-ant versions, but I always get this error, therefore, can’t export any .apk in the current version of UE4 (4.7.4)
Firstly, can you attach your entire failed output log to this thread as a text file to this thread?
Without seeing your whole logs, I have a small suspicion you’re having the same problem as this user who posted on the Android forums. Have a look and see if you have the same error in your logs, and that would be your issue.
Great, thanks very much. Ok, I’m seeing several SDK errors in your log, and I think it’s related to this:
ERROR: Exception in UnrealBuildTool:
ERROR: cmd.exe failed with args /c
“D:/Apps/apache-ant-1.9.4/bin/ant.bat”
-quiet debug
Can you make sure you have the correct version of Apache Ant that we support installed for your SDK? It should be 1.8.2 at this point. Here is a forum post from another user that shows the correct SDK setup in project settings for Android.
I do also have what you call “the correct version”, but It works out just the same way, so I tried multiple other versions, but no success.
Here’s the other log: link text
Thanks for the logs. And you have your project settings like the picture in the forum post? Feel free to attach a screenshot of your settings to this thread for verification. You may need to restart your machine now that you have set it back to 1.8.2 in order for the settings to take effect.
Thanks!
Excellent, thank you. I see that succeeded, but your other build is still failing? I still see what looks like SDK errors, though, do you have any other SDK setup that could be incomplete, like say, Gear VR?
Correct. My personal project still fails to export. Only full SDK that I have is the one that came with unreal itself. Besides that, I have a newest version of apache ant, which, unexpectedly, looks like isn’t compatible with unreal. So I plugged the original one back in. No gear VR in any way.
Well, I’m really sorry, but I’d be glad if you told me how to figure that out… That’s what you get when you make designers be able to be a programmer also.
Binary is the editor version you get from the launcher, and source is the version you get from Github that requires compiling with Visual Studio. From your answer I am assuming binary, yes?
ERROR: Can’t make an APK without the
compiled .so [F:\Unreal
Projects\Vehicle
Game\VehicleGame\Binaries\Android\VehicleGame-armv7-es2.so]
You will be obliged to go into Visual Studio and compile. Chris Babcock mentioned in that thread the settings for that compiling, and here is the documentation that will walk you through compiling your project.
I really appreciate your answer and work looking for it. Basic export works fine now. But there is one problem lol xD… Destribution build doesn’t work link text