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"

My APK won't build in Distribution

Hey everyone, I'm currently building an APK to put in the Alpha section on Google Play Developer Console.

My issue is that my app will happily build in Shipping/Development but when it comes to actual distribution builds it fails.

I've been reading several posts on here to attempt to resolve the problem but with no luck. Everything seems to be installed properly, the deletion of saved and intermediate doesn't help either!

I'm not sure how to go about resolving this. Any help and advice would be much appreciated!

Product Version: UE 4.16
more ▼

asked Sep 19 '17 at 11:14 AM in Packaging & Deployment

avatar image

173 37 33 44

avatar image feiwu Sep 19 '17 at 11:59 AM

Is there any error message?

avatar image Kagamusha Sep 19 '17 at 12:40 PM

This is the error that appears


EDIT: Just saw this warning as well LogStats:Warning: MetaData mismatch. Did you assign a stat to two groups? New //STATGROUP_Threads//FTcpMessageTransportConnection///Thread_d84_0///####STATCAT_Advanced#### old //STATGROUP_Threads//FTcpMessageTransportConnection///Thread_3384_0///####STATCAT_Advanced####

avatar image feiwu Sep 19 '17 at 02:41 PM

Build for distribution error often with problem of proguard. from the error message, does this exist?

D:\Programs\NVPACK\android-sdk-windows\tools\ant\build.xml:1147: Z:\HollyblueHolistics (The system cannot find the file specified)

By the way, can you go to the [YourProjectRoot]/Intermediate/Android/APK/

and run "ant release" to see the detail?

avatar image Kagamusha Sep 23 '17 at 06:23 PM

Here is the text from inside my proguard-project file if that helps?


Also here is build.xml


I can't seem to find "ant release"

avatar image feiwu Sep 24 '17 at 06:28 AM

Hi, sorry for late reply, from this two file I can't see any problem. here is the way I process similar problem.

1、ant is the command in your android setting, you can add the ant bin directory to "path". alt text

2、the engine at last use "ant release" to make distribution apk. use this command under [YourProjectRoot]/Intermediate/Android/APK/ you will see the real problem.

after run this command, you can check the error detail message, if you still can't fix it, you can google or post here:)

androidsetting.png (21.7 kB)
avatar image Kagamusha Sep 24 '17 at 09:51 AM

No worries!

Here is what I got from ant release

alt text

antrelease.png (105.5 kB)
avatar image feiwu Sep 24 '17 at 10:00 AM

can you try first "cd apkfolder", and then ant release?

avatar image Kagamusha Sep 25 '17 at 09:21 AM

I still have nothing, this is super frustrating, no idea what to do. Not sure why is looking for a Z:\ directory and the whole proguard":

"[proguard] Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [classes.jar:META-INF/MANIFEST.MF])

Is baffling me as well.

(Thank you for being so patient with me)

avatar image Kagamusha Sep 25 '17 at 09:31 AM

I just noticed that a Z:\ drive that I can't access seems to be created during the building of the development APK, which is really strange. It assembles fine for development (it loads up but crashes on device which is a whole other issue in development mode) and fails to build altogether in distribution saying it can't find the Z:\ drive which disappears AFTER the development build has finished and succeeded!

My brain hurts xD

avatar image feiwu Sep 24 '17 at 10:01 AM

or you can send me your teamviwer info to my email:feixuwu@outlook.com, maybe I can help

avatar image Kagamusha Sep 25 '17 at 09:22 AM

If it gets super desperate I'll take you up on that offer! :D

avatar image feiwu Sep 25 '17 at 09:29 AM

OK :), I'll online next half hour, if you need, I can help to check the problem.

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

1 answer: sort voted first

After teamviewer session, at last the problem fixed, the reason is missing the keystore file,

when build distribution for android, need a keystore file under ProjectFolder/Build/Android/

and fill the keystore file name and alias name and password on android setting.

more ▼

answered Sep 25 '17 at 11:20 AM

avatar image

301 2 6 21

avatar image Kagamusha Sep 25 '17 at 11:21 AM

Thank you so much! This has fixed it for me!

(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