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!

Is there any error message?

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####

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?

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”

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”.

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:)

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

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

No worries!

Here is what I got from ant release

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)

If it gets super desperate I’ll take you up on that offer! :smiley:

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

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

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.

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