ATT対応のためにUnityを2019.4.17f1にアプデしたところ、Androidビルドが広告関連でエラーを出すようになってしまいました。
注意:D:\pto\Documents\CocoCoin1.11\Temp\gradleOut\unityLibrary\src\main\java\com\unity3d\player\UnityPlayerActivity.javaは非推奨のAPIを使用またはオーバーライドしています。 注意:詳細は、-Xlint:deprecationオプションを指定して再コンパイルしてください。 FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':launcher:checkReleaseDuplicateClasses'. > 1 exception was raised by workers: 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) Duplicate class com.google.unity.ads.AdNetworkExtras found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.Banner found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.Banner$1 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.Banner$10 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.Banner$11 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.Banner$12 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.Banner$13 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.Banner$2 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.Banner$3 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.Banner$3$1 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.Banner$3$2 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.Banner$3$3 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.Banner$3$4 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.Banner$3$5 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.Banner$4 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.Banner$5 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.Banner$6 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.Banner$7 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.Banner$8 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.Banner$9 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.Banner$Insets found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.CustomNativeAd found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.CustomNativeAd$1 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.CustomNativeAd$2 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.Interstitial found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.Interstitial$1 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.Interstitial$1$1 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.Interstitial$1$1$1 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.Interstitial$1$1$2 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.Interstitial$1$1$3 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.Interstitial$1$1$4 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.Interstitial$1$1$5 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.Interstitial$2 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.Interstitial$3 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.NativeAdLoader found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.NativeAdLoader$1 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.NativeAdLoader$2 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.NativeAdLoader$3 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.NativeAdLoader$3$1 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.NativeAdLoader$3$2 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.NativeAdLoader$3$3 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.NativeAdLoader$4 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.PluginUtils found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.RewardBasedVideo found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.RewardBasedVideo$1 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.RewardBasedVideo$1$1 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.RewardBasedVideo$1$1$1 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.RewardBasedVideo$1$1$2 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.RewardBasedVideo$1$1$3 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.RewardBasedVideo$1$1$4 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.RewardBasedVideo$1$1$5 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.RewardBasedVideo$1$1$6 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.RewardBasedVideo$1$1$7 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.RewardBasedVideo$1$1$8 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.RewardBasedVideo$2 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.RewardBasedVideo$3 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.RewardBasedVideo$4 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.UnityAdListener found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.UnityAdLoaderListener found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.UnityRewardBasedVideoAdListener found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.UnityRewardedAd found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.UnityRewardedAd$1 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.UnityRewardedAd$2 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.UnityRewardedAd$2$1 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.UnityRewardedAd$2$1$1 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.UnityRewardedAd$2$1$2 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.UnityRewardedAd$3 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.UnityRewardedAd$4 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.UnityRewardedAd$4$1 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.UnityRewardedAd$4$1$1 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.UnityRewardedAd$4$1$2 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.UnityRewardedAd$4$1$3 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.UnityRewardedAd$4$1$4 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.UnityRewardedAd$5 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Duplicate class com.google.unity.ads.UnityRewardedAdCallback found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar) Go to the documentation to learn how to <a href="d.android.com/r/tools/classpath-sync-errors">Fix dependency resolution errors</a>. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 42s Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
や、
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details > Configure project :launcher WARNING: The option setting 'android.bundle.enableUncompressedNativeLibs=false' is experimental and unsupported. The current default is 'true'. Exception while marshalling C:\Program Files\Unity\Hub\Editor\2019.4.17f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\28.0.3\package.xml. Probably the SDK is read-only Exception while marshalling C:\Program Files\Unity\Hub\Editor\2019.4.17f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\package.xml. Probably the SDK is read-only Exception while marshalling C:\Program Files\Unity\Hub\Editor\2019.4.17f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-29\package.xml. Probably the SDK is read-only Exception while marshalling C:\Program Files\Unity\Hub\Editor\2019.4.17f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\package.xml. Probably the SDK is read-only Exception while marshalling C:\Program Files\Unity\Hub\Editor\2019.4.17f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\28.0.3\package.xml. Probably the SDK is read-only Exception while marshalling C:\Program Files\Unity\Hub\Editor\2019.4.17f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\package.xml. Probably the SDK is read-only Exception while marshalling C:\Program Files\Unity\Hub\Editor\2019.4.17f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-29\package.xml. Probably the SDK is read-only Exception while marshalling C:\Program Files\Unity\Hub\Editor\2019.4.17f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\package.xml. Probably the SDK is read-only > Configure project :unityLibrary WARNING: The option setting 'android.bundle.enableUncompressedNativeLibs=false' is experimental and unsupported. The current default is 'true'. > Configure project :unityLibrary:FirebaseApp.androidlib WARNING: The option setting 'android.bundle.enableUncompressedNativeLibs=false' is experimental and unsupported. The current default is 'true'. > Configure project :unityLibrary:GoogleMobileAdsPlugin WARNING: The option setting 'android.bundle.enableUncompressedNativeLibs=false' is experimental and unsupported. The current default is 'true'. > Configure project :unityLibrary:unity-android-resources WARNING: The option setting 'android.bundle.enableUncompressedNativeLibs=false' is experimental and unsupported. The current default is 'true'. > Task :launcher:preBuild UP-TO-DATE > Task :unityLibrary:preBuild UP-TO-DATE > Task :unityLibrary:GoogleMobileAdsPlugin:preBuild UP-TO-DATE > Task :unityLibrary:FirebaseApp.androidlib:preBuild UP-TO-DATE > Task :unityLibrary:unity-android-resources:preBuild UP-TO-DATE > Task :unityLibrary:preReleaseBuild UP-TO-DATE > Task :unityLibrary:GoogleMobileAdsPlugin:preReleaseBuild UP-TO-DATE > Task :unityLibrary:FirebaseApp.androidlib:preReleaseBuild UP-TO-DATE > Task :unityLibrary:unity-android-resources:preReleaseBuild UP-TO-DATE > Task :launcher:prepareLintJar > Task :unityLibrary:unity-android-resources:checkReleaseManifest > Task :unityLibrary:GoogleMobileAdsPlugin:checkReleaseManifest > Task :unityLibrary:checkReleaseManifest > Task :unityLibrary:FirebaseApp.androidlib:checkReleaseManifest > Task :unityLibrary:FirebaseApp.androidlib:processReleaseManifest > Task :unityLibrary:GoogleMobileAdsPlugin:processReleaseManifest > Task :unityLibrary:FirebaseApp.androidlib:packageReleaseRenderscript NO-SOURCE > Task :unityLibrary:GoogleMobileAdsPlugin:packageReleaseRenderscript NO-SOURCE > Task :unityLibrary:GoogleMobileAdsPlugin:compileReleaseRenderscript NO-SOURCE > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseRenderscript NO-SOURCE > Task :unityLibrary:unity-android-resources:processReleaseManifest > Task :unityLibrary:processReleaseManifest > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseResValues > Task :unityLibrary:GoogleMobileAdsPlugin:generateReleaseResValues > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseResources > Task :unityLibrary:GoogleMobileAdsPlugin:generateReleaseResources > Task :unityLibrary:unity-android-resources:packageReleaseRenderscript NO-SOURCE > Task :unityLibrary:packageReleaseRenderscript NO-SOURCE > Task :unityLibrary:unity-android-resources:compileReleaseRenderscript NO-SOURCE > Task :unityLibrary:compileReleaseRenderscript NO-SOURCE > Task :unityLibrary:unity-android-resources:generateReleaseResValues > Task :unityLibrary:unity-android-resources:generateReleaseResources > Task :unityLibrary:generateReleaseResValues > Task :unityLibrary:generateReleaseResources > Task :unityLibrary:GoogleMobileAdsPlugin:packageReleaseResources > Task :unityLibrary:GoogleMobileAdsPlugin:mergeReleaseShaders > Task :unityLibrary:GoogleMobileAdsPlugin:compileReleaseShaders > Task :unityLibrary:GoogleMobileAdsPlugin:generateReleaseAssets > Task :unityLibrary:FirebaseApp.androidlib:packageReleaseResources > Task :unityLibrary:GoogleMobileAdsPlugin:packageReleaseAssets > Task :unityLibrary:GoogleMobileAdsPlugin:compileReleaseAidl NO-SOURCE > Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseShaders > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseShaders > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseAssets > Task :unityLibrary:FirebaseApp.androidlib:packageReleaseAssets > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseAidl NO-SOURCE > Task :unityLibrary:packageReleaseResources > Task :unityLibrary:unity-android-resources:packageReleaseResources > Task :unityLibrary:mergeReleaseShaders > Task :unityLibrary:compileReleaseShaders > Task :unityLibrary:generateReleaseAssets > Task :unityLibrary:GoogleMobileAdsPlugin:generateReleaseRFile > Task :unityLibrary:unity-android-resources:mergeReleaseShaders > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseRFile > Task :unityLibrary:unity-android-resources:compileReleaseShaders > Task :unityLibrary:unity-android-resources:generateReleaseAssets > Task :unityLibrary:unity-android-resources:packageReleaseAssets > Task :unityLibrary:unity-android-resources:compileReleaseAidl NO-SOURCE > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseBuildConfig > Task :unityLibrary:GoogleMobileAdsPlugin:generateReleaseBuildConfig > Task :unityLibrary:GoogleMobileAdsPlugin:prepareLintJar > Task :unityLibrary:GoogleMobileAdsPlugin:generateReleaseSources > Task :unityLibrary:FirebaseApp.androidlib:prepareLintJar > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseSources > Task :unityLibrary:FirebaseApp.androidlib:javaPreCompileRelease > Task :unityLibrary:unity-android-resources:generateReleaseRFile > Task :unityLibrary:unity-android-resources:generateReleaseBuildConfig > Task :unityLibrary:unity-android-resources:prepareLintJar > Task :unityLibrary:unity-android-resources:generateReleaseSources > Task :unityLibrary:unity-android-resources:javaPreCompileRelease > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseJavaWithJavac > Task :unityLibrary:unity-android-resources:compileReleaseJavaWithJavac > Task :unityLibrary:GoogleMobileAdsPlugin:javaPreCompileRelease > Task :unityLibrary:unity-android-resources:bundleLibCompileRelease > Task :unityLibrary:FirebaseApp.androidlib:bundleLibCompileRelease > Task :unityLibrary:FirebaseApp.androidlib:bundleLibRuntimeRelease > Task :unityLibrary:unity-android-resources:bundleLibRuntimeRelease > Task :unityLibrary:FirebaseApp.androidlib:processReleaseJavaRes NO-SOURCE > Task :unityLibrary:unity-android-resources:processReleaseJavaRes NO-SOURCE > Task :unityLibrary:unity-android-resources:bundleLibResRelease > Task :unityLibrary:FirebaseApp.androidlib:bundleLibResRelease > Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseJniLibFolders > Task :unityLibrary:unity-android-resources:mergeReleaseJniLibFolders > Task :unityLibrary:unity-android-resources:transformNativeLibsWithMergeJniLibsForRelease > Task :unityLibrary:GoogleMobileAdsPlugin:compileReleaseJavaWithJavac > Task :unityLibrary:unity-android-resources:transformNativeLibsWithStripDebugSymbolForRelease > Task :unityLibrary:FirebaseApp.androidlib:transformNativeLibsWithMergeJniLibsForRelease > Task :unityLibrary:unity-android-resources:transformNativeLibsWithIntermediateJniLibsForRelease > Task :unityLibrary:FirebaseApp.androidlib:transformNativeLibsWithStripDebugSymbolForRelease > Task :unityLibrary:FirebaseApp.androidlib:transformNativeLibsWithIntermediateJniLibsForRelease > Task :unityLibrary:GoogleMobileAdsPlugin:bundleLibCompileRelease > Task :unityLibrary:GoogleMobileAdsPlugin:bundleLibRuntimeRelease > Task :unityLibrary:GoogleMobileAdsPlugin:processReleaseJavaRes NO-SOURCE > Task :unityLibrary:GoogleMobileAdsPlugin:bundleLibResRelease > Task :unityLibrary:GoogleMobileAdsPlugin:mergeReleaseJniLibFolders > Task :unityLibrary:GoogleMobileAdsPlugin:transformNativeLibsWithMergeJniLibsForRelease > Task :unityLibrary:GoogleMobileAdsPlugin:transformNativeLibsWithStripDebugSymbolForRelease > Task :unityLibrary:packageReleaseAssets > Task :unityLibrary:compileReleaseAidl NO-SOURCE > Task :unityLibrary:GoogleMobileAdsPlugin:transformNativeLibsWithIntermediateJniLibsForRelease > Task :unityLibrary:generateReleaseBuildConfig > Task :launcher:preReleaseBuild > Task :launcher:compileReleaseRenderscript NO-SOURCE > Task :launcher:generateReleaseResValues > Task :launcher:generateReleaseResources > Task :unityLibrary:generateReleaseRFile > Task :unityLibrary:prepareLintJar > Task :unityLibrary:generateReleaseSources > Task :unityLibrary:javaPreCompileRelease > Task :unityLibrary:compileReleaseJavaWithJavac > Task :unityLibrary:bundleLibCompileRelease > Task :unityLibrary:bundleLibRuntimeRelease > Task :unityLibrary:processReleaseJavaRes NO-SOURCE > Task :unityLibrary:bundleLibResRelease > Task :unityLibrary:mergeReleaseJniLibFolders > Task :launcher:mergeReleaseResources > Task :launcher:checkReleaseManifest > Task :unityLibrary:transformNativeLibsWithMergeJniLibsForRelease > Task :launcher:createReleaseCompatibleScreenManifests > Task :launcher:mainApkListPersistenceRelease > Task :launcher:processReleaseManifest > Task :unityLibrary:transformNativeLibsWithStripDebugSymbolForRelease > Task :launcher:bundleReleaseResources > Task :launcher:mergeReleaseShaders > Task :launcher:compileReleaseShaders > Task :launcher:generateReleaseAssets > Task :launcher:mergeReleaseAssets > Task :unityLibrary:transformNativeLibsWithIntermediateJniLibsForRelease > Task :launcher:checkReleaseDuplicateClasses FAILED Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/5.1.1/userguide/command_line_interface.html#sec:command_line_warnings 89 actionable tasks: 89 executed UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
や
> Configure project :launcher WARNING: The option setting 'android.bundle.enableUncompressedNativeLibs=false' is experimental and unsupported. The current default is 'true'. Exception while marshalling C:\Program Files\Unity\Hub\Editor\2019.4.17f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\28.0.3\package.xml. Probably the SDK is read-only Exception while marshalling C:\Program Files\Unity\Hub\Editor\2019.4.17f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\package.xml. Probably the SDK is read-only Exception while marshalling C:\Program Files\Unity\Hub\Editor\2019.4.17f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-29\package.xml. Probably the SDK is read-only Exception while marshalling C:\Program Files\Unity\Hub\Editor\2019.4.17f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\package.xml. Probably the SDK is read-only > Configure project :unityLibrary WARNING: The option setting 'android.bundle.enableUncompressedNativeLibs=false' is experimental and unsupported. The current default is 'true'.
や
[GoogleMobileAds]AndroidManifest.xml is missing. Try re-importing the plugin.
といったエラーです。
色々なサイトで解決法を検索して実行したのですが、
- プロジェクトのlibraryフォルダを削除し再起動(ライブラリ重複を解消するため)・・・ダメ(ビルド設定などもリセットされるし面倒)
- Assets > External Dependency Manager > Android Resolver >Delete resolved Librariesする(依存性解決済みのライブラリを削除)・・・ダメ
- package managerからAdvertisement削除(Unity AdsのライブラリはAdmobライブラリに含まれるため)・・・ダメ
結果的に、以下のような方法で解決しました。
まず、package managerからAdvertisement削除
次に、ManifestProcessor.csを以下のように変更
//"Plugins/Android/GoogleMobileAdsPlugin.androidlib/AndroidManifest.xml"); "Plugins/Android/GoogleMobileAdsPlugin/AndroidManifest.xml");
最後に\Assets\Plugins\Android\GoogleMobileAdsPlugin\libs\unity-plugin-library.jarを削除します。
これでエラーがすべてなくなりました。
コメント