- Home /
I EXPORTED MY UNITY PROJECT TO ANDROID AND I CANT BUILD PLEASE HELP ME>
**Duplicate class com.android.installreferrer.BuildConfig found in modules jetified-installreferrer-1.0-runtime (:installreferrer-1.0:) and jetified-installreferrer-1.0-runtime (com.android.installreferrer:installreferrer:1.0) Duplicate class com.android.installreferrer.api.InstallReferrerClient found in modules jetified-installreferrer-1.0-runtime (:installreferrer-1.0:) and jetified-installreferrer-1.0-runtime (com.android.installreferrer:installreferrer:1.0) Duplicate class com.android.installreferrer.api.InstallReferrerClient$1 found in modules jetified-installreferrer-1.0-runtime (:installreferrer-1.0:) and jetified-installreferrer-1.0-runtime (com.android.installreferrer:installreferrer:1.0) Duplicate class com.android.installreferrer.api.InstallReferrerClient$Builder found in modules jetified-installreferrer-1.0-runtime (:installreferrer-1.0:) and jetified-installreferrer-1.0-runtime (com.android.installreferrer:installreferrer:1.0) Duplicate class com.android.installreferrer.api.InstallReferrerClient$InstallReferrerResponse found in modules jetified-installreferrer-1.0-runtime (:installreferrer-1.0:) and jetified-installreferrer-1.0-runtime (com.android.installreferrer:installreferrer:1.0) Duplicate class com.android.installreferrer.api.InstallReferrerClientImpl found in modules jetified-installreferrer-1.0-runtime (:installreferrer-1.0:) and jetified-installreferrer-1.0-runtime (com.android.installreferrer:installreferrer:1.0) Duplicate class com.android.installreferrer.api.InstallReferrerClientImpl$1 found in modules jetified-installreferrer-1.0-runtime (:installreferrer-1.0:) and jetified-installreferrer-1.0-runtime (com.android.installreferrer:installreferrer:1.0) Duplicate class com.android.installreferrer.api.InstallReferrerClientImpl$ClientState found in modules jetified-installreferrer-1.0-runtime (:installreferrer-1.0:) and jetified-installreferrer-1.0-runtime (com.android.installreferrer:installreferrer:1.0) Duplicate class com.android.installreferrer.api.InstallReferrerClientImpl$InstallReferrerServiceConnection found in modules jetified-installreferrer-1.0-runtime (:installreferrer-1.0:) and jetified-installreferrer-1.0-runtime (com.android.installreferrer:installreferrer:1.0) Duplicate class com.android.installreferrer.api.InstallReferrerStateListener found in modules jetified-installreferrer-1.0-runtime (:installreferrer-1.0:) and jetified-installreferrer-1.0-runtime (com.android.installreferrer:installreferrer:1.0) Duplicate class com.android.installreferrer.api.ReferrerDetails found in modules jetified-installreferrer-1.0-runtime (:installreferrer-1.0:) and jetified-installreferrer-1.0-runtime (com.android.installreferrer:installreferrer:1.0) Duplicate class com.android.installreferrer.commons.InstallReferrerCommons found in modules jetified-installreferrer-1.0-runtime (:installreferrer-1.0:) and jetified-installreferrer-1.0-runtime (com.android.installreferrer:installreferrer:1.0) Duplicate class com.google.android.finsky.externalreferrer.IGetInstallReferrerService found in modules jetified-installreferrer-1.0-runtime (:installreferrer-1.0:) and jetified-installreferrer-1.0-runtime (com.android.installreferrer:installreferrer:1.0) Duplicate class com.google.android.finsky.externalreferrer.IGetInstallReferrerService$Stub found in modules jetified-installreferrer-1.0-runtime (:installreferrer-1.0:) and jetified-installreferrer-1.0-runtime (com.android.installreferrer:installreferrer:1.0) Duplicate class com.google.android.finsky.externalreferrer.IGetInstallReferrerService$Stub$Proxy found in modules jetified-installreferrer-1.0-runtime (:installreferrer-1.0:) and jetified-installreferrer-1.0-runtime (com.android.installreferrer:installreferrer:1.0)
I exported my project from Unity to Buid AAB on android studio, and i am experiencing that problem above. please How do i fix it, thanks**
Answer by AbandonedCrypt · Feb 02, 2021 at 08:24 AM
You have a duplicate class BuildConfig from
com.android.installreferrer-1.0
and
installreferrer-1.0
meaning you likely included it twice in your dependencies, or installed an unecessary package.
Answer by GDGames0302 · Feb 02, 2021 at 08:10 AM
Hi. I'm not sure if I can help you, but the error says something about duplicate class. You should not have 2 scripts with the same name or two duplicate classes.
The class in question is BuildConfig from the android installreferrer and likely auto-generated. It's pretty obvious from the first line of the dump.
Your answer
Follow this Question
Related Questions
Am i able to export to android with 30 day pro ? 3 Answers
Export & Install APK on Android 5 Answers
Distribute terrain in zones 3 Answers
export com.unity.pojectname map 0 Answers
Exporting for Android 2.2 on Unity 4.3.4 0 Answers