Search Issue Tracker
Fixed in 2017.2.0f3
Fixed in 5.6.X, 2017.1.X
Votes
2
Found in
5.5.0f3
Issue ID
857989
Regression
No
[Gradle] Building fails giving misleading HardcodedDebugMode error
How to reproduce:
1. Open the attached "857989GradleAndroidRes.zip" project
2. Set "Android" as the current target
3. Set "Gradle" as the build option
4. In player settings > publishing settings set existing keystore (you will find it in the project ../Keystore/TestKeyStore.jks , password is Unity77)
5. Build the project
Actual result: Build fails showing very long error which firstly explains why user shouldn't write android:debuggable attribute in the manifest (in this project user didn't set android:debuggable in AndroidManifest) and later explains the real issue - duplicated files.
Expected result: Error looks same as creating Development build - only real issue is explained that there are duplicate files during packaging of APK.
Reproducible: 5.5.0b1, 5.5.0p3, 5.6.0b2
Gradle introduced in Unity 5.5
Internal builds fine
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on ShaderLab::ShaderState::ApplyShaderState when entering Play Mode and calling ShaderWarmup.WarmupShaderFromCollection with a shader that has dynamic_branch
- Crash on operator delete[] when a serializable structure in the System namespace is serialized by a MonoBehaviour
- [macOS] forward and backward mouse buttons are recognized as middle mouse button
- NavMeshModifier.OnEnable/OnDisable gets progressively slower when called repeatedly
- "System.Net.CookieContainer" throws an "ArgumentException" error when using a non-UTF-8 machine locale and hostname
Tigrido
Jan 20, 2017 09:16
A number of plugins (like Appodeal SDK) requires to add some files to Assets/Plugins/Android/assets and it is a cause of "duplicated files error" in my case.
Even adding a single PNG file is enough to reproduce the error.
Unity 5.5.0p1, 5.5.0p2, 5.5.0p3, 5.5.0p4
Tigrido
Dec 29, 2016 10:23
Ohhhh.. I hope it will be fixed in a short time