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"

google cardboard packaging fails with "duplicate class" error

I'm trying to package a Google Cardboard project for Android platform in the latest Unreal Editor (4.14.1). I have followed all the instructions in the GoogleVR quickstart, but the build fails with the following errors:

 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: [buildconfig] Generating BuildConfig class.
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: 
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: -pre-compile:
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: 
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: -compile:
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool:     [javac] Compiling 99 source files to D:\Xmak\Documents\Unreal Projects\CardboardScalable\Intermediate\Android\APK\bin\classes
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool:     [javac] D:\Xmak\Documents\Unreal Projects\CardboardScalable\Intermediate\Android\APK\src\com\google\android\vending\licensing\AESObfuscator.java:38: error: duplicate class: com.google.android.vending.licensing.AESObfuscator
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool:     [javac] public class AESObfuscator implements Obfuscator {
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool:     [javac]        ^
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool:     [javac] D:\Xmak\Documents\Unreal Projects\CardboardScalable\Intermediate\Android\APK\src\com\google\android\vending\licensing\APKExpansionPolicy.java:47: error: duplicate class: com.google.android.vending.licensing.APKExpansionPolicy
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool:     [javac] public class APKExpansionPolicy implements Policy {
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool:     [javac]        ^
 ...
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: BUILD FAILED

I have searched for the duplicate classes and found that there are two files AESObfuscator.java in the build folder:

 D:\dev\Unreal Projects\CardboardScalable\Intermediate\Android\APK\src\com\google\android\vending\licensing\AESObfuscator.java
 D:\dev\Unreal Projects\CardboardScalable\Intermediate\Android\APK\src\com\android\vending\licensing\AESObfuscator.java

Any ideas on how to solve this problem?

Here is the complete output log:

link text

Product Version: UE 4.14
Tags:
more ▼

asked Jan 03 '17 at 11:29 PM in Packaging & Deployment

avatar image

xmak
50 6 17 16

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

1 answer: sort voted first

I solved the problem by reainstaling UE 4.14. Also, the problem doesn't occur in UE 4.13.

It seems like somewhere through the update process of UE4.14 the duplicate classes were created.

more ▼

answered Jan 04 '17 at 02:14 PM

avatar image

xmak
50 6 17 16

(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