Android Generate Signed Apk error

I tried to create apk from android studio for the first time. I got the error below.

Error:Execution failed for task ':_3dRunAdventure:transformClassesWithJarMergingForRelease'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/unity3d/ads/android/BuildConfig.class

enter image description here

Please help me download my first Android game :)

+4
source share
1 answer

If you create your game with Unity, you do not need to move it to Android Studio to build apk, you can directly create it from Unity.

All you have to do is go to File> Build Settings so that you switch the platform to android and click the build button. If you have any errors, Unity will tell you what they are.

Also make sure all your scenes are added to the assembly.

enter image description here


, android :

, , , , , Android Studio .

:

, multidex, , , , , BuildConfig, , .

, multidex .

, .

, Unity, .

+2

Source: https://habr.com/ru/post/1672936/


All Articles