After we added Google AdMob plugin and resolve,we are getting these errors.If we dont add,we cant use GoogleMobileAds.api and functions,why it is duplicating ? Thanks for helps.
.
.
.
Execution failed for task ':launcher:checkReleaseDuplicateClasses'.
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
java.lang.RuntimeException: java.lang.RuntimeException: Duplicate class com.google.unity.BuildConfig found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Duplicate class com.google.unity.ads.AdNetworkExtras found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Duplicate class com.google.unity.ads.Banner found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Duplicate class com.google.unity.ads.Banner$11 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Duplicate class com.google.unity.ads.Banner$4 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Duplicate class com.google.unity.ads.CustomNativeAd$1 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2019.4.10f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\28.0.3\package.xml. Probably the SDK is read-only
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2019.4.10f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\package.xml. Probably the SDK is read-only
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Task :unityLibrary:GooglePlayGamesManifest.plugin:preBuild UP-TO-DATE
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Task :unityLibrary:GoogleMobileAdsPlugin:preBuild UP-TO-DATE
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Task :unityLibrary:GooglePlayGamesManifest.plugin:checkReleaseManifest
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Task :unityLibrary:GooglePlayGamesManifest.plugin:compileReleaseRenderscript NO-SOURCE
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Task :unityLibrary:GooglePlayGamesManifest.plugin:processReleaseJavaRes NO-SOURCE
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Task :launcher:javaPreCompileRelease UP-TO-DATE
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Task :launcher:checkReleaseDuplicateClasses FAILED
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Use '--warning-mode all' to show the individual deprecation warnings.
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
See https://docs.gradle.org/5.1.1/userguide/command_line_interface.html#sec:command_line_warnings
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
79 actionable tasks: 48 executed, 31 up-to-date
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr),After we add Google AdMob plugin package,we are getting that errors.If we dont add AdMob plugin,we cant use the functions.Why it is duplicating we dont understand.We added plugin and resolved.
.
.
.
Execution failed for task ':launcher:checkReleaseDuplicateClasses'.
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
java.lang.RuntimeException: java.lang.RuntimeException: Duplicate class com.google.unity.BuildConfig found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Duplicate class com.google.unity.ads.AdNetworkExtras found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Duplicate class com.google.unity.ads.Banner found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Duplicate class com.google.unity.ads.Banner$11 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Duplicate class com.google.unity.ads.Banner$4 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Duplicate class com.google.unity.ads.CustomNativeAd$1 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
...
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2019.4.10f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\28.0.3\package.xml. Probably the SDK is read-only
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2019.4.10f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\package.xml. Probably the SDK is read-only
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Task :unityLibrary:GooglePlayGamesManifest.plugin:preBuild UP-TO-DATE
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Task :unityLibrary:GoogleMobileAdsPlugin:preBuild UP-TO-DATE
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Task :unityLibrary:GooglePlayGamesManifest.plugin:checkReleaseManifest
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Task :unityLibrary:GooglePlayGamesManifest.plugin:compileReleaseRenderscript NO-SOURCE
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Task :unityLibrary:GooglePlayGamesManifest.plugin:processReleaseJavaRes NO-SOURCE
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Task :launcher:javaPreCompileRelease UP-TO-DATE
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Task :launcher:checkReleaseDuplicateClasses FAILED
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Use '--warning-mode all' to show the individual deprecation warnings.
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
SOLVED:
After clearing the project from the empty files and plugins for a long time, the problem was fixed, we couldn't find which filing it was, but there was definitely a conflict.
↧