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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Packaging with for Distribution Fails

Hello everybody,

my problem is, when i package my android project, with "for distribution" selected, it will fail. without there is no problem. But to upload my apk to the playstore it must be "for distribution".

My Log: link text

What i already tried: https://answers.unrealengine.com/questions/93833/android-packaging-for-distribution-failed.html

https://forums.unrealengine.com/unreal-engine/feedback-for-epic/36544-packaging-for-android-in-shipping-mode-fails?65516-Packaging-for-Android-in-Shipping-mode-fails=&viewfull=1

I have set my keystore correctly and i already tried to reinstall the android sdk and unreal engine itself.

but nothing worked for me.

Please help! Thanks

Product Version: UE 4.18
Tags:
more ▼

asked Nov 02 '17 at 08:06 PM in Packaging & Deployment

avatar image

Valey14
31 7 12 14

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

4 answers: sort voted first

With Gradle you need to have the Android Support Repository and Android Support Library

I was having problems with packaging too, but I realized that I was missing a repository. After having a look at the logs your issue seems the same.

This solved my issue with failed packaging - >

Go to - NVPACK\android-sdk-windows\tools\android.bat

Downloaded/Update Android Support Repository and Android Support Library

It should be at the bottom

Other things to try in case above fails(which it should not)

If you are packaging with a C++ or nativization enabled project. Make sure you have Visual Studio Community 2017 well set up

If not try packaging a blank blueprint project and see if it successfully packages. If yes, then it is some project specific issue.

According to this line

 UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): FAILURE: Build failed with an exception.
 UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): * What went wrong:
 UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): A problem occurred configuring project ':app'.
 UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): > Could not resolve all dependencies for configuration ':app:_debugApk'.
 UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)):    > A problem occurred configuring project ':permission_library'.
 UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)):       > You have not accepted the license agreements of the following SDK components:
 UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): [Android Support Repository].
 UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
 UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html
 UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): * Try:
 UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

I think it will solve your issue

more ▼

answered Nov 04 '17 at 03:47 PM

avatar image

SHOBBIT
650 13 13 27

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

answered Nov 03 '17 at 11:22 AM

avatar image

SHOBBIT
650 13 13 27

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

Hi,

thanks for your answer. I tried it like you did, but it still wont work.

Is there any other way to fix this?

more ▼

answered Nov 04 '17 at 03:14 PM

avatar image

Valey14
31 7 12 14

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

I Love you man, now it works.

THANK YOU

more ▼

answered Nov 04 '17 at 06:13 PM

avatar image

Valey14
31 7 12 14

(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