I can’t package empty Android project for Shipping.
- SDK is isntalled in default directory (1R6u1).
- I create empty bluprint project.
- I unckeck “Use Gradle instead of Ant”
- I set up project for Shipping
- I copy key android file in Build/Android directory.
- I successfully package project in Development mode. No errors.
- I switch build configuration to “Shipping” and packaging fails. Here’s my log:
UATHelper: Packaging (Android (ETC2)): [proguard] Initializing…
UATHelper: Packaging (Android (ETC2)): [proguard] Note: the configuration refers to the unknown class ‘com.google.vending.licensing.ILicensingService’
UATHelper: Packaging (Android (ETC2)): [proguard] Maybe you meant the fully qualified name ‘com.android.vending.licensing.ILicensingService’?
UATHelper: Packaging (Android (ETC2)): [proguard] Note: the configuration refers to the unknown class ‘com.epicgames.ue4.GameActivity$JavaAchievement’
UATHelper: Packaging (Android (ETC2)): [proguard] Note: the configuration refers to the unknown class ‘Object’
UATHelper: Packaging (Android (ETC2)): [proguard] Maybe you meant the fully qualified name ‘java.lang.Object’?
UATHelper: Packaging (Android (ETC2)): [proguard] Note: the configuration refers to the unknown class ‘com.google.android.gms.games.NativeSdkCallbacks’
UATHelper: Packaging (Android (ETC2)): [proguard] Note: android.support.v4.app.NotificationCompatJellybean calls ‘Field.getType’
UATHelper: Packaging (Android (ETC2)): [proguard] Note: com.google.android.gms.internal.adq calls ‘Field.getType’
UATHelper: Packaging (Android (ETC2)): [proguard] Warning: com.google.protobuf.zze: can’t find referenced class sun.misc.Unsafe
UATHelper: Packaging (Android (ETC2)): [proguard] Warning: com.google.protobuf.zze: can’t find referenced class sun.misc.Unsafe
UATHelper: Packaging (Android (ETC2)): [proguard] Warning: com.google.protobuf.zze: can’t find referenced class sun.misc.Unsafe
UATHelper: Packaging (Android (ETC2)): [proguard] Warning: com.google.protobuf.zze: can’t find referenced class sun.misc.Unsafe
UATHelper: Packaging (Android (ETC2)): [proguard] Warning: com.google.protobuf.zze: can’t find referenced class sun.misc.Unsafe
UATHelper: Packaging (Android (ETC2)): [proguard] Warning: com.google.protobuf.zze$zza: can’t find referenced class sun.misc.Unsafe
UATHelper: Packaging (Android (ETC2)): [proguard] Warning: com.google.protobuf.zze$zzb: can’t find referenced class sun.misc.Unsafe
UATHelper: Packaging (Android (ETC2)): [proguard] Warning: com.google.protobuf.zze$zzc: can’t find referenced class sun.misc.Unsafe
UATHelper: Packaging (Android (ETC2)): [proguard] Warning: com.google.protobuf.zze$zzd: can’t find referenced class sun.misc.Unsafe
UATHelper: Packaging (Android (ETC2)): [proguard] Warning: com.google.protobuf.zze$zzd: can’t find referenced class sun.misc.Unsafe
UATHelper: Packaging (Android (ETC2)): [proguard] Warning: com.google.protobuf.zzf: can’t find referenced class sun.misc.Unsafe
UATHelper: Packaging (Android (ETC2)): [proguard] Warning: com.google.protobuf.zzf: can’t find referenced class sun.misc.Unsafe
UATHelper: Packaging (Android (ETC2)): [proguard] Note: android.support.v4.media.ParceledListSliceAdapterApi21: can’t find dynamically referenced class android.content.pm.ParceledListSlice
UATHelper: Packaging (Android (ETC2)): [proguard] Note: android.support.v4.text.ICUCompatApi23: can’t find dynamically referenced class libcore.icu.ICU
UATHelper: Packaging (Android (ETC2)): [proguard] Note: android.support.v4.text.ICUCompatIcs: can’t find dynamically referenced class libcore.icu.ICU
UATHelper: Packaging (Android (ETC2)): [proguard] Note: com.google.protobuf.zzc: can’t find dynamically referenced class com.google.protobuf.ExtensionRegistry
UATHelper: Packaging (Android (ETC2)): [proguard] Note: com.google.protobuf.zzd: can’t find dynamically referenced class com.google.protobuf.Extension
UATHelper: Packaging (Android (ETC2)): [proguard] Note: com.google.protobuf.zze: can’t find dynamically referenced class libcore.io.Memory
UATHelper: Packaging (Android (ETC2)): [proguard] Note: com.google.protobuf.zze: can’t find dynamically referenced class org.robolectric.Robolectric
UATHelper: Packaging (Android (ETC2)): [proguard] Note: com.google.vr.sdk.samples.permission.PermissionHelper: can’t find dynamically referenced class com.google.vr.sdk.samples.transition.GVRTransition2DActivity
…
UATHelper: Packaging (Android (ETC2)): [proguard] Note: there were 4 references to unknown classes.
UATHelper: Packaging (Android (ETC2)): [proguard] You should check your configuration for typos.
UATHelper: Packaging (Android (ETC2)): [proguard] (ProGuard Manual: Troubleshooting | Guardsquare)
UATHelper: Packaging (Android (ETC2)): [proguard] Note: there were 2 classes trying to access generic signatures using reflection.
UATHelper: Packaging (Android (ETC2)): [proguard] You should consider keeping the signature attributes
UATHelper: Packaging (Android (ETC2)): [proguard] (using ‘-keepattributes Signature’).
UATHelper: Packaging (Android (ETC2)): [proguard] (ProGuard Manual: Troubleshooting | Guardsquare)
UATHelper: Packaging (Android (ETC2)): [proguard] Note: there were 41 unkept descriptor classes in kept class members.
UATHelper: Packaging (Android (ETC2)): [proguard] You should consider explicitly keeping the mentioned classes
UATHelper: Packaging (Android (ETC2)): [proguard] (using ‘-keep’).
UATHelper: Packaging (Android (ETC2)): [proguard] (ProGuard Manual: Troubleshooting | Guardsquare)
UATHelper: Packaging (Android (ETC2)): [proguard] Note: there were 68 library classes explicitly being kept.
UATHelper: Packaging (Android (ETC2)): [proguard] You don’t need to keep library classes; they are already left unchanged.
UATHelper: Packaging (Android (ETC2)): [proguard] (ProGuard Manual: Troubleshooting | Guardsquare)
UATHelper: Packaging (Android (ETC2)): [proguard] Note: there were 8 unresolved dynamic references to classes or interfaces.
UATHelper: Packaging (Android (ETC2)): [proguard] You should check if you need to specify additional program jars.
UATHelper: Packaging (Android (ETC2)): [proguard] (ProGuard Manual: Troubleshooting | Guardsquare)
UATHelper: Packaging (Android (ETC2)): [proguard] Note: there were 7 accesses to class members by means of introspection.
UATHelper: Packaging (Android (ETC2)): [proguard] You should consider explicitly keeping the mentioned class members
UATHelper: Packaging (Android (ETC2)): [proguard] (using ‘-keep’ or ‘-keepclassmembers’).
UATHelper: Packaging (Android (ETC2)): [proguard] (ProGuard Manual: Troubleshooting | Guardsquare)
UATHelper: Packaging (Android (ETC2)): [proguard] Warning: there were 12 unresolved references to classes or interfaces.
UATHelper: Packaging (Android (ETC2)): [proguard] You may need to add missing library jars or update their versions.
UATHelper: Packaging (Android (ETC2)): [proguard] If your code works fine without the missing classes, you can suppress
UATHelper: Packaging (Android (ETC2)): [proguard] the warnings with ‘-dontwarn’ options.
UATHelper: Packaging (Android (ETC2)): [proguard] (ProGuard Manual: Troubleshooting | Guardsquare)
UATHelper: Packaging (Android (ETC2)): BUILD FAILED
UATHelper: Packaging (Android (ETC2)): C:\NVPACK\android-sdk-windows\tools\ant\build.xml:871: Please correct the above warnings first.
UATHelper: Packaging (Android (ETC2)): Total time: 31 seconds
UATHelper: Packaging (Android (ETC2)): ERROR: cmd.exe failed with args /c “C:\NVPACK\apache-ant-1.8.2/bin/ant.bat” release -Djava.source=1.7 -Djava.target=1.7
UATHelper: Packaging (Android (ETC2)): (see C:\Users\butte\AppData\Roaming\Unreal Engine\AutomationTool\Logs\E+Program+Files+Epic+Games+UE_4.18\UAT_Log.txt for full exception trace)
UATHelper: Packaging (Android (ETC2)): AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Packaging (Android (ETC2)): BUILD FAILED
PackagingResults: Error: Unknown Error
In 4.17 same steps works fine.
I tried this on 2 different PC’s. Fails at bothof them