Getting Duplicate class com.unity3d.player.UnityPlayer$c found in modules error
I have the following requirement
integrate android native app in unity app
First, launch native screen from unity app then launch unity screen from native app
have a two way bridge between unity and native app
Export the unity project as a unity package
To do this, i have done the following things
created a native project
created a unity project
exported the unity as library
integrate the unity library in android app
changed the application module to library
built an AAR file of android project
added the AAR file in unity at this path - /Assets/Plugins/Android/android.AAR
When i am building the project, it is throwing Duplicate class error Please help me where i am going wrong with this.
```Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01 Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':launcher:checkReleaseDuplicateClasses'.
1 exception was raised by workers:
Your answer
Follow this Question
Related Questions
Audio Clip through URL by the player/user,Audio Through URL by player 0 Answers
Unity Input Touch 0 Answers
Apk on android does not start. Reason: Animator | Не запускается Apk на андройд. Причина: Animator 0 Answers
Firebase Analytics not working on device 0 Answers
Exception: Field currentActivity or type signature not found 0 Answers