GoogleMobileAds-v7.3.0、firebase_unity_sdk_7.2.0から
GoogleMobileAds-v8.5.1、firebase_unity_sdk_11.4.0にアップデートした所、色々なエラーが出る様になりました。
AdMobの初期化方法の変更
//MobileAds.Initialize(appId); これは廃止 MobileAds.Initialize(initStatus => { //広告読み込みなどの処理 });
InterstitialAdの初期化方法の廃止:’InterstitialAd’ does not contain a constructor that takes 1 arguments ‘RewardedAd’ does not contain a constructor that takes 1 arguments
void Load(string adUnitId,AdRequest request,Action< InterstitialAd, LoadAdError > adLoadCallback)を使います。
https://developers.google.com/admob/unity/interstitial?hl=ja
https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/interstitial-ad
//this.interstitial = new GoogleMobileAds.Api.InterstitialAd(adUnitInterstitialId); 廃止 InterstitialAd.Load(adUnitInterstitialId,new AdRequest(),(InterstitialAd ad, LoadAdError loadAdError)=>{ if(loadAdError!=null || ad == null) { return; } interstitial = ad; }); RewardedAd.Load(adUnitRewardId, new AdRequest(),(RewardedAd ad, LoadAdError loadError)=> { if (loadError != null || ad == null) { return; } rewardedAd = ad; });
AdMobのイベントの廃止
こんな感じのエラーが大量に出ます。
'InterstitialAd' does not contain a definition for 'OnAdLoaded' and no accessible extension method 'OnAdLoaded' accepting a first argument of type 'InterstitialAd' could be found (are you missing a using directive or an assembly reference?) 'InterstitialAd' does not contain a definition for 'OnAdFailedToLoad' and no accessible extension method 'OnAdFailedToLoad' accepting a first argument of type 'InterstitialAd' could be found (are you missing a using directive or an assembly reference?) 'InterstitialAd' does not contain a definition for 'OnAdOpening' and no accessible extension method 'OnAdOpening' accepting a first argument of type 'InterstitialAd' could be found (are you missing a using directive or an assembly reference?) 'InterstitialAd' does not contain a definition for 'OnAdClosed' and no accessible extension method 'OnAdClosed' accepting a first argument of type 'InterstitialAd' could be found (are you missing a using directive or an assembly reference?) 'InterstitialAd' does not contain a definition for 'LoadAd' and no accessible extension method 'LoadAd' accepting a first argument of type 'InterstitialAd' could be found (are you missing a using directive or an assembly reference?) 'RewardedAd' does not contain a constructor that takes 1 arguments 'RewardedAd' does not contain a definition for 'OnAdLoaded' and no accessible extension method 'OnAdLoaded' accepting a first argument of type 'RewardedAd' could be found (are you missing a using directive or an assembly reference?) 'RewardedAd' does not contain a definition for 'OnAdFailedToLoad' and no accessible extension method 'OnAdFailedToLoad' accepting a first argument of type 'RewardedAd' could be found (are you missing a using directive or an assembly reference?) 'RewardedAd' does not contain a definition for 'OnAdOpening' and no accessible extension method 'OnAdOpening' accepting a first argument of type 'RewardedAd' could be found (are you missing a using directive or an assembly reference?) 'RewardedAd' does not contain a definition for 'OnAdFailedToShow' and no accessible extension method 'OnAdFailedToShow' accepting a first argument of type 'RewardedAd' could be found (are you missing a using directive or an assembly reference?) 'RewardedAd' does not contain a definition for 'OnUserEarnedReward' and no accessible extension method 'OnUserEarnedReward' accepting a first argument of type 'RewardedAd' could be found (are you missing a using directive or an assembly reference?) 'RewardedAd' does not contain a definition for 'OnAdClosed' and no accessible extension method 'OnAdClosed' accepting a first argument of type 'RewardedAd' could be found (are you missing a using directive or an assembly reference?) 'RewardedAd' does not contain a definition for 'LoadAd' and no accessible extension method 'LoadAd' accepting a first argument of type 'RewardedAd' could be found (are you missing a using directive or an assembly reference?)
廃止されたイベントについてはここを参照してください
https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/interstitial-ad
https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/rewarded-ad
InterstitialAd.Load(adUnitInterstitialId,new AdRequest(),(InterstitialAd ad, LoadAdError loadAdError)=>{ if(loadAdError!=null || ad == null) { return; } //適宜追加 ad.OnAdFullScreenContentOpened += () =>{ }; ad.OnAdFullScreenContentClosed += () => { }; ad.OnAdFullScreenContentFailed += (AdError error) => { }; interstitial = ad; }); RewardedAd.Load(adUnitRewardId, new AdRequest(),(RewardedAd ad, LoadAdError loadError)=> { if (loadError != null || ad == null) { return; } //適宜追加 ad.OnAdFullScreenContentOpened += () =>{ }; ad.OnAdFullScreenContentFailed += (AdError error) =>{ }; ad.OnAdPaid += (AdValue adValue)=>{ }; ad.OnAdFullScreenContentClosed += () => { }; ad.OnAdFullScreenContentFailed += (AdError error) => { }; if( rewardedAd != null ) { rewardedAd.Destroy(); } rewardedAd = ad; });
その他AdMobのメソッドの仕様変更
GoogleMobileAds.Api.RewardedAd.IsLoaded()
→CanShowAd()
There is no argument given that corresponds to the required formal parameter ‘userRewardEarnedCallback’ of ‘RewardedAd.Show(Action)’
↓
GoogleMobileAds.Api.RewardedAd.Show()
GoogleMobileAds.Api.RewardedAd.Show((Reward reward) =>
{
// TODO: Reward the user.
Debug.Log(String.Format(rewardMsg, reward.Type, reward.Amount));
});
OnAdPaidイベントとの使い分けがよく分かりませんね。
FireBaseの仕様変更に伴うエラー
'Task' does not contain a definition for 'Result' and no accessible extension method 'Result' accepting a first argument of type 'Task' could be found (are you missing a using directive or an assembly reference?) 'AuthResult' does not contain a definition for 'DisplayName' and no accessible extension method 'DisplayName' accepting a first argument of type 'AuthResult' could be found (are you missing a using directive or an assembly reference?) 'AuthResult' does not contain a definition for 'UserId' and no accessible extension method 'UserId' accepting a first argument of type 'AuthResult' could be found (are you missing a using directive or an assembly reference?) 'Firebase.Auth.AuthResult' を 'Firebase.Auth.FirebaseUser' に暗黙的に変換できません
この様なエラーが出ます。暗黙的置換ができなくなったようなので修正します。
FirebaseAuth auth = FirebaseAuth.DefaultInstance; auth.SignInAnonymouslyAsync().ContinueWith(task => {}); //var newUser = task.Result; var newUser = task.Result.User;
ビルドエラー
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details > Configure project :launcher WARNING: The option setting 'android.enableR8=false' is deprecated. It will be removed in version 5.0 of the Android Gradle plugin. You will no longer be able to disable R8 > Task :unityLibrary:FirebaseApp.androidlib:preBuild UP-TO-DATE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:preBuild UP-TO-DATE > Task :launcher:preBuild UP-TO-DATE > Task :unityLibrary:preBuild UP-TO-DATE > Task :unityLibrary:unity-android-resources:preBuild UP-TO-DATE > Task :launcher:preReleaseBuild UP-TO-DATE > Task :unityLibrary:FirebaseApp.androidlib:preReleaseBuild UP-TO-DATE > Task :unityLibrary:preReleaseBuild UP-TO-DATE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:preReleaseBuild UP-TO-DATE > Task :unityLibrary:unity-android-resources:preReleaseBuild UP-TO-DATE > Task :unityLibrary:unity-android-resources:packageReleaseRenderscript NO-SOURCE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseRenderscript NO-SOURCE > Task :unityLibrary:packageReleaseRenderscript NO-SOURCE > Task :unityLibrary:FirebaseApp.androidlib:packageReleaseRenderscript NO-SOURCE > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseRenderscript NO-SOURCE > Task :unityLibrary:unity-android-resources:compileReleaseRenderscript NO-SOURCE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseRenderscript NO-SOURCE > Task :unityLibrary:unity-android-resources:generateReleaseResValues > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseResValues > Task :unityLibrary:unity-android-resources:generateReleaseResources > Task :launcher:generateReleaseResValues > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseResources > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseResValues > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseResources > Task :unityLibrary:generateReleaseResValues > Task :launcher:compileReleaseRenderscript NO-SOURCE > Task :unityLibrary:compileReleaseRenderscript NO-SOURCE > Task :unityLibrary:generateReleaseResources > Task :launcher:generateReleaseResources > Task :launcher:createReleaseCompatibleScreenManifests > Task :launcher:extractDeepLinksRelease > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseResources > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:extractDeepLinksRelease > Task :unityLibrary:unity-android-resources:packageReleaseResources > Task :unityLibrary:packageReleaseResources > Task :unityLibrary:unity-android-resources:extractDeepLinksRelease > Task :unityLibrary:extractDeepLinksRelease > Task :unityLibrary:FirebaseApp.androidlib:packageReleaseResources > Task :unityLibrary:FirebaseApp.androidlib:extractDeepLinksRelease > Task :unityLibrary:processReleaseManifest > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:processReleaseManifest > Task :unityLibrary:FirebaseApp.androidlib:processReleaseManifest > Task :unityLibrary:unity-android-resources:processReleaseManifest > Task :unityLibrary:generateReleaseBuildConfig > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseLibraryResources > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseLibraryResources > Task :unityLibrary:unity-android-resources:compileReleaseLibraryResources > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseAidl NO-SOURCE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseAidl NO-SOURCE > Task :unityLibrary:unity-android-resources:compileReleaseAidl NO-SOURCE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseBuildConfig > Task :unityLibrary:unity-android-resources:generateReleaseBuildConfig > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseBuildConfig > Task :unityLibrary:FirebaseApp.androidlib:parseReleaseLocalResources > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:parseReleaseLocalResources > Task :unityLibrary:unity-android-resources:parseReleaseLocalResources > Task :unityLibrary:parseReleaseLocalResources > Task :unityLibrary:compileReleaseAidl NO-SOURCE > Task :unityLibrary:javaPreCompileRelease > Task :unityLibrary:mergeReleaseShaders > Task :unityLibrary:compileReleaseShaders NO-SOURCE > Task :unityLibrary:generateReleaseAssets UP-TO-DATE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseRFile > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseRFile > Task :unityLibrary:FirebaseApp.androidlib:javaPreCompileRelease > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:javaPreCompileRelease > Task :unityLibrary:unity-android-resources:generateReleaseRFile > Task :unityLibrary:unity-android-resources:javaPreCompileRelease > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseJavaWithJavac > Task :unityLibrary:unity-android-resources:compileReleaseJavaWithJavac > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseJavaWithJavac > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibRuntimeToJarRelease > Task :unityLibrary:unity-android-resources:bundleLibRuntimeToJarRelease > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibCompileToJarRelease > Task :unityLibrary:FirebaseApp.androidlib:bundleLibCompileToJarRelease > Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseShaders > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseShaders NO-SOURCE > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseAssets UP-TO-DATE > Task :unityLibrary:FirebaseApp.androidlib:packageReleaseAssets > Task :unityLibrary:unity-android-resources:bundleLibCompileToJarRelease > Task :unityLibrary:unity-android-resources:mergeReleaseShaders > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseShaders > Task :unityLibrary:unity-android-resources:compileReleaseShaders NO-SOURCE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseShaders NO-SOURCE > Task :unityLibrary:unity-android-resources:generateReleaseAssets UP-TO-DATE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseAssets UP-TO-DATE > Task :unityLibrary:unity-android-resources:packageReleaseAssets > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseAssets > Task :unityLibrary:FirebaseApp.androidlib:processReleaseJavaRes NO-SOURCE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:processReleaseJavaRes NO-SOURCE > Task :unityLibrary:FirebaseApp.androidlib:bundleLibResRelease NO-SOURCE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibResRelease NO-SOURCE > Task :unityLibrary:unity-android-resources:processReleaseJavaRes NO-SOURCE > Task :unityLibrary:unity-android-resources:bundleLibResRelease NO-SOURCE > Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseJniLibFolders > Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseNativeLibs > Task :unityLibrary:FirebaseApp.androidlib:stripReleaseDebugSymbols NO-SOURCE > Task :unityLibrary:FirebaseApp.androidlib:copyReleaseJniLibsProjectOnly > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseJniLibFolders > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseNativeLibs > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:stripReleaseDebugSymbols NO-SOURCE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:copyReleaseJniLibsProjectOnly > Task :unityLibrary:unity-android-resources:mergeReleaseJniLibFolders > Task :unityLibrary:unity-android-resources:mergeReleaseNativeLibs > Task :unityLibrary:unity-android-resources:stripReleaseDebugSymbols NO-SOURCE > Task :unityLibrary:unity-android-resources:copyReleaseJniLibsProjectOnly > Task :unityLibrary:packageReleaseAssets > Task :unityLibrary:FirebaseApp.androidlib:bundleLibRuntimeToJarRelease > Task :unityLibrary:processReleaseJavaRes NO-SOURCE > Task :unityLibrary:bundleLibResRelease NO-SOURCE > Task :unityLibrary:mergeReleaseJniLibFolders > Task :unityLibrary:generateReleaseRFile > Task :launcher:processReleaseManifest ***\Temp\gradleOut\launcher\src\main\AndroidManifest.xml:21:3-79 Warning: uses-permission#android.permission.RECEIVE_BOOT_COMPLETED was tagged at AndroidManifest.xml:21 to remove other declarations but no other declaration present > Task :launcher:checkReleaseDuplicateClasses FAILED > Task :unityLibrary:compileReleaseJavaWithJavac > Task :launcher:mergeReleaseResources > Task :unityLibrary:mergeReleaseNativeLibs > Task :unityLibrary:compileReleaseLibraryResources Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.9.3/userguide/command_line_interface.html#sec:command_line_warnings 71 actionable tasks: 71 executed UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
[以下試行錯誤]
preferenceからrecommendのものにgradleを変更 → Exception: Gradle install not valid
gradle 8.3に変更→FAILURE: Build failed with an exception.
jdk20に変更→incompatible jdk version 20
gradle7.3.3インストール↓
Execution failed for task ':unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseJavaWithJavac'. > Failed to calculate the value of task ':unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseJavaWithJavac' property 'options.generatedSourceOutputDirectory'. > Querying the mapped value of map(java.io.File property(org.gradle.api.file.Directory, fixed(class org.gradle.api.internal.file.DefaultFilePropertyFactory$FixedDirectory, ***\Temp\gradleOut\unityLibrary\GoogleMobileAdsPlugin.androidlib\build\generated\ap_generated_sources\release\out)) org.gradle.api.internal.file.DefaultFilePropertyFactory$ToFileTransformer@7a81d333) before task ':unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseJavaWithJavac' has completed is not supported
jdkもgradleもrecommendに戻す↓
Exception: Gradle install not valid UnityEditor.Android.GradleWrapper.GetBaseCommand (System.Int32 jvmHeapSize) (at <e8d8d8782ef8400fa679b5177100ea99>:0) UnityEditor.Android.PostProcessAndroidPlayer.ExecuteWarmup (System.String stagingArea) (at <e8d8d8782ef8400fa679b5177100ea99>:0) UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <e8d8d8782ef8400fa679b5177100ea99>:0) UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <e8d8d8782ef8400fa679b5177100ea99>:0) UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <92e8e151ac2247a491cb6ca42a1bead9>:0) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&) Build completed with a result of 'Failed' in 89 seconds (88651 ms) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002cc] in <92e8e151ac2247a491cb6ca42a1bead9>:0 at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <92e8e151ac2247a491cb6ca42a1bead9>:0 UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
https://services.gradle.org/distributions/6.9.2をインストール
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details > Configure project :launcher WARNING: The option setting 'android.enableR8=false' is deprecated. It will be removed in version 5.0 of the Android Gradle plugin. You will no longer be able to disable R8 > Task :launcher:preBuild UP-TO-DATE > Task :unityLibrary:preBuild UP-TO-DATE > Task :unityLibrary:FirebaseApp.androidlib:preBuild UP-TO-DATE > Task :unityLibrary:unity-android-resources:preBuild UP-TO-DATE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:preBuild UP-TO-DATE > Task :unityLibrary:FirebaseApp.androidlib:preReleaseBuild UP-TO-DATE > Task :unityLibrary:unity-android-resources:preReleaseBuild UP-TO-DATE > Task :unityLibrary:preReleaseBuild UP-TO-DATE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:preReleaseBuild UP-TO-DATE > Task :launcher:preReleaseBuild UP-TO-DATE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseRenderscript NO-SOURCE > Task :unityLibrary:FirebaseApp.androidlib:packageReleaseRenderscript NO-SOURCE > Task :unityLibrary:packageReleaseRenderscript NO-SOURCE > Task :unityLibrary:unity-android-resources:packageReleaseRenderscript NO-SOURCE > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseRenderscript NO-SOURCE > Task :unityLibrary:unity-android-resources:compileReleaseRenderscript NO-SOURCE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseRenderscript NO-SOURCE > Task :unityLibrary:unity-android-resources:generateReleaseResValues > Task :unityLibrary:generateReleaseResValues > Task :unityLibrary:unity-android-resources:generateReleaseResources > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseResValues > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseResValues > Task :launcher:generateReleaseResValues > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseResources > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseResources > Task :unityLibrary:compileReleaseRenderscript NO-SOURCE > Task :unityLibrary:generateReleaseResources > Task :launcher:compileReleaseRenderscript NO-SOURCE > Task :launcher:generateReleaseResources > Task :launcher:createReleaseCompatibleScreenManifests > Task :launcher:extractDeepLinksRelease > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseResources > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:extractDeepLinksRelease > Task :unityLibrary:FirebaseApp.androidlib:packageReleaseResources > Task :unityLibrary:FirebaseApp.androidlib:extractDeepLinksRelease > Task :unityLibrary:unity-android-resources:packageReleaseResources > Task :unityLibrary:unity-android-resources:extractDeepLinksRelease > Task :unityLibrary:packageReleaseResources > Task :unityLibrary:extractDeepLinksRelease > Task :unityLibrary:processReleaseManifest > Task :unityLibrary:unity-android-resources:processReleaseManifest > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:processReleaseManifest > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseLibraryResources > Task :unityLibrary:unity-android-resources:compileReleaseLibraryResources > Task :unityLibrary:compileReleaseLibraryResources > Task :unityLibrary:FirebaseApp.androidlib:processReleaseManifest > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseAidl NO-SOURCE > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseAidl NO-SOURCE > Task :unityLibrary:unity-android-resources:compileReleaseAidl NO-SOURCE > Task :unityLibrary:generateReleaseBuildConfig > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseBuildConfig > Task :unityLibrary:unity-android-resources:generateReleaseBuildConfig > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseBuildConfig > Task :unityLibrary:compileReleaseAidl NO-SOURCE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:parseReleaseLocalResources > Task :unityLibrary:unity-android-resources:parseReleaseLocalResources > Task :unityLibrary:parseReleaseLocalResources > Task :unityLibrary:FirebaseApp.androidlib:javaPreCompileRelease > Task :unityLibrary:javaPreCompileRelease > Task :unityLibrary:mergeReleaseShaders > Task :unityLibrary:compileReleaseShaders NO-SOURCE > Task :unityLibrary:generateReleaseAssets UP-TO-DATE > Task :unityLibrary:unity-android-resources:generateReleaseRFile > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseRFile > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:javaPreCompileRelease > Task :unityLibrary:unity-android-resources:javaPreCompileRelease > Task :unityLibrary:unity-android-resources:compileReleaseJavaWithJavac > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseJavaWithJavac > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseLibraryResources > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibRuntimeToJarRelease > Task :unityLibrary:unity-android-resources:bundleLibRuntimeToJarRelease > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibCompileToJarRelease > Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseShaders > Task :unityLibrary:unity-android-resources:bundleLibCompileToJarRelease > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseShaders NO-SOURCE > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseAssets UP-TO-DATE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseShaders > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseShaders NO-SOURCE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseAssets UP-TO-DATE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseAssets > Task :unityLibrary:unity-android-resources:mergeReleaseShaders > Task :unityLibrary:unity-android-resources:compileReleaseShaders NO-SOURCE > Task :unityLibrary:unity-android-resources:generateReleaseAssets UP-TO-DATE > Task :unityLibrary:unity-android-resources:packageReleaseAssets > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:processReleaseJavaRes NO-SOURCE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibResRelease NO-SOURCE > Task :unityLibrary:unity-android-resources:processReleaseJavaRes NO-SOURCE > Task :unityLibrary:unity-android-resources:bundleLibResRelease NO-SOURCE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseJniLibFolders > Task :unityLibrary:FirebaseApp.androidlib:packageReleaseAssets > Task :unityLibrary:FirebaseApp.androidlib:processReleaseJavaRes NO-SOURCE > Task :unityLibrary:FirebaseApp.androidlib:bundleLibResRelease NO-SOURCE > Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseJniLibFolders > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseNativeLibs > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:stripReleaseDebugSymbols NO-SOURCE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:copyReleaseJniLibsProjectOnly > Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseNativeLibs > Task :unityLibrary:FirebaseApp.androidlib:stripReleaseDebugSymbols NO-SOURCE > Task :unityLibrary:unity-android-resources:mergeReleaseJniLibFolders > Task :unityLibrary:FirebaseApp.androidlib:copyReleaseJniLibsProjectOnly > Task :unityLibrary:FirebaseApp.androidlib:parseReleaseLocalResources > Task :unityLibrary:unity-android-resources:mergeReleaseNativeLibs > Task :unityLibrary:unity-android-resources:stripReleaseDebugSymbols NO-SOURCE > Task :unityLibrary:unity-android-resources:copyReleaseJniLibsProjectOnly > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseRFile > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseJavaWithJavac > Task :unityLibrary:FirebaseApp.androidlib:bundleLibRuntimeToJarRelease > Task :unityLibrary:FirebaseApp.androidlib:bundleLibCompileToJarRelease > Task :unityLibrary:packageReleaseAssets > Task :unityLibrary:generateReleaseRFile WARNING: [Processor] Library ***\Temp\gradleOut\unityLibrary\libs\androidx.browser.browser-1.4.0.aar' contains references to both AndroidX and old support library. This seems like the library is partially migrated. Jetifier will try to rewrite the library anyway. Example of androidX reference: 'androidx/browser/browseractions/BrowserActionItem' Example of support library reference: 'android/support/customtabs/trusted/ITrustedWebActivityService$Default' WARNING: [Processor] Library ***\Temp\gradleOut\unityLibrary\libs\androidx.core.core-1.6.0.aar' contains references to both AndroidX and old support library. This seems like the library is partially migrated. Jetifier will try to rewrite the library anyway. Example of androidX reference: 'androidx/versionedparcelable/VersionedParcel' Example of support library reference: 'android/support/v4/app/RemoteActionCompatParcelizer' > Task :unityLibrary:processReleaseJavaRes NO-SOURCE > Task :unityLibrary:bundleLibResRelease NO-SOURCE > Task :unityLibrary:mergeReleaseJniLibFolders > Task :launcher:processReleaseManifest ***\Temp\gradleOut\launcher\src\main\AndroidManifest.xml:21:3-79 Warning: uses-permission#android.permission.RECEIVE_BOOT_COMPLETED was tagged at AndroidManifest.xml:21 to remove other declarations but no other declaration present > Task :unityLibrary:compileReleaseJavaWithJavac > Task :launcher:checkReleaseDuplicateClasses FAILED > Task :launcher:mergeReleaseResources > Task :unityLibrary:mergeReleaseNativeLibs Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.9.2/userguide/command_line_interface.html#sec:command_line_warnings 71 actionable tasks: 71 executed UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
Player Settings > Android > Publishing Settings > Build
から、Custom Gradle Properties Template のチェックボックスにチェック。
Assets/Plugins/Android/gradleTemplate.properties を開いて、中身を編集。
「android.enableR8=**MINIFY_WITH_R_EIGHT**」の行頭に # を入れてコメントアウト。
Execution failed for task ':launcher:checkReleaseDuplicateClasses'. > 1 exception was raised by workers: java.lang.RuntimeException: java.lang.RuntimeException: Duplicate class kotlin.ArrayIntrinsicsKt found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.BuilderInference found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.CharCodeJVMKt found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.CharCodeKt found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.CompareToKt found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.ContextFunctionTypeParams found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.DeepRecursiveFunction found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.DeepRecursiveKt found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.DeepRecursiveScope found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.DeepRecursiveScopeImpl found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.DeepRecursiveScopeImpl$crossFunctionCompletion$$inlined$Continuation$1 found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.Deprecated found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.DeprecatedSinceKotlin found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.DeprecationLevel found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.DslMarker found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.ExceptionsKt found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.ExceptionsKt__ExceptionsKt found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.Experimental found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.Experimental$Level found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.ExperimentalMultiplatform found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.ExperimentalStdlibApi found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.ExperimentalUnsignedTypes found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.ExtensionFunctionType found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.Function found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.HashCodeKt found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.InitializedLazyImpl found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.KotlinNothingValueException found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.KotlinNullPointerException found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.KotlinVersion found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.KotlinVersion$Companion found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.KotlinVersionCurrentValue found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.LateinitKt found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.Lazy found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.LazyKt found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.LazyKt__LazyJVMKt found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.LazyKt__LazyJVMKt$WhenMappings found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.LazyKt__LazyKt found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.LazyThreadSafetyMode found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.Metadata found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.Metadata$DefaultImpls found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.NoWhenBranchMatchedException found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.NotImplementedError found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.NumbersKt found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.NumbersKt__BigDecimalsKt found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.NumbersKt__BigIntegersKt found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.NumbersKt__FloorDivModKt found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.NumbersKt__NumbersJVMKt found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.NumbersKt__NumbersKt found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.OptIn found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.OptionalExpectation found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.OverloadResolutionByLambdaReturnType found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.Pair found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.ParameterName found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.PreconditionsKt found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.PreconditionsKt__AssertionsJVMKt found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.PreconditionsKt__PreconditionsKt found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.PropertyReferenceDelegatesKt found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.PublishedApi found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.ReplaceWith found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.RequiresOptIn found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.RequiresOptIn$Level found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.Result found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.Result$Companion found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.Result$Failure found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.ResultKt found in modules jetified-kotlin-stdlib-1.6.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.6.20) and jetified-org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar (org.jetbrains.kotlin.kotlin-stdlib-1.7.10.jar) Duplicate class kotlin.SafePublicationLazyImpl found in modules je<message truncated> java.lang.RuntimeException: java.lang.RuntimeException: Duplicate class org.intellij.lang.annotations.Flow found in modules jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains.annotations-13.0.jar) and jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains:annotations:13.0) Duplicate class org.intellij.lang.annotations.Identifier found in modules jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains.annotations-13.0.jar) and jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains:annotations:13.0) Duplicate class org.intellij.lang.annotations.JdkConstants found in modules jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains.annotations-13.0.jar) and jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains:annotations:13.0) Duplicate class org.intellij.lang.annotations.JdkConstants$AdjustableOrientation found in modules jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains.annotations-13.0.jar) and jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains:annotations:13.0) Duplicate class org.intellij.lang.annotations.JdkConstants$BoxLayoutAxis found in modules jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains.annotations-13.0.jar) and jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains:annotations:13.0) Duplicate class org.intellij.lang.annotations.JdkConstants$CalendarMonth found in modules jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains.annotations-13.0.jar) and jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains:annotations:13.0) Duplicate class org.intellij.lang.annotations.JdkConstants$CursorType found in modules jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains.annotations-13.0.jar) and jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains:annotations:13.0) Duplicate class org.intellij.lang.annotations.JdkConstants$FlowLayoutAlignment found in modules jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains.annotations-13.0.jar) and jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains:annotations:13.0) Duplicate class org.intellij.lang.annotations.JdkConstants$FontStyle found in modules jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains.annotations-13.0.jar) and jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains:annotations:13.0) Duplicate class org.intellij.lang.annotations.JdkConstants$HorizontalAlignment found in modules jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains.annotations-13.0.jar) and jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains:annotations:13.0) Duplicate class org.intellij.lang.annotations.JdkConstants$InputEventMask found in modules jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains.annotations-13.0.jar) and jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains:annotations:13.0) Duplicate class org.intellij.lang.annotations.JdkConstants$ListSelectionMode found in modules jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains.annotations-13.0.jar) and jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains:annotations:13.0) Duplicate class org.intellij.lang.annotations.JdkConstants$PatternFlags found in modules jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains.annotations-13.0.jar) and jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains:annotations:13.0) Duplicate class org.intellij.lang.annotations.JdkConstants$TabLayoutPolicy found in modules jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains.annotations-13.0.jar) and jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains:annotations:13.0) Duplicate class org.intellij.lang.annotations.JdkConstants$TabPlacement found in modules jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains.annotations-13.0.jar) and jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains:annotations:13.0) Duplicate class org.intellij.lang.annotations.JdkConstants$TitledBorderJustification found in modules jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains.annotations-13.0.jar) and jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains:annotations:13.0) Duplicate class org.intellij.lang.annotations.JdkConstants$TitledBorderTitlePosition found in modules jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains.annotations-13.0.jar) and jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains:annotations:13.0) Duplicate class org.intellij.lang.annotations.JdkConstants$TreeSelectionMode found in modules jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains.annotations-13.0.jar) and jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains:annotations:13.0) Duplicate class org.intellij.lang.annotations.Language found in modules jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains.annotations-13.0.jar) and jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains:annotations:13.0) Duplicate class org.intellij.lang.annotations.MagicConstant found in modules jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains.annotations-13.0.jar) and jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains:annotations:13.0) Duplicate class org.intellij.lang.annotations.Pattern found in modules jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains.annotations-13.0.jar) and jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains:annotations:13.0) Duplicate class org.intellij.lang.annotations.PrintFormat found in modules jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains.annotations-13.0.jar) and jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains:annotations:13.0) Duplicate class org.intellij.lang.annotations.PrintFormatPattern found in modules jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains.annotations-13.0.jar) and jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains:annotations:13.0) Duplicate class org.intellij.lang.annotations.RegExp found in modules jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains.annotations-13.0.jar) and jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains:annotations:13.0) Duplicate class org.intellij.lang.annotations.Subst found in modules jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains.annotations-13.0.jar) and jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains:annotations:13.0) Duplicate class org.jetbrains.annotations.Contract found in modules jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains.annotations-13.0.jar) and jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains:annotations:13.0) Duplicate class org.jetbrains.annotations.Nls found in modules jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains.annotations-13.0.jar) and jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains:annotations:13.0) Duplicate class org.jetbrains.annotations.NonNls found in modules jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains.annotations-13.0.jar) and jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains:annotations:13.0) Duplicate class org.jetbrains.annotations.NotNull found in modules jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains.annotations-13.0.jar) and jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains:annotations:13.0) Duplicate class org.jetbrains.annotations.Nullable found in modules jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains.annotations-13.0.jar) and jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains:annotations:13.0) Duplicate class org.jetbrains.annotations.PropertyKey found in modules jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains.annotations-13.0.jar) and jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains:annotations:13.0) Duplicate class org.jetbrains.annotations.TestOnly found in modules jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains.annotations-13.0.jar) and jetified-org.jetbrains.annotations-13.0.jar (org.jetbrains:annotations:13.0)
私のアプリではkotlinは内部ブラウザUniwebviewの実装に関連しています。
Android Resolverで「Force Resolved」→プロジェクトツリーからkotlin,jetbrains付くものを全部削除。Preference PanelのUniwebviewの項目の「Kotlinを追加」と「Androidブラウザを追加」のチェックを外す↓
注意:***\Temp\gradleOut\unityLibrary\src\main\java\com\unity3d\player\UnityPlayerActivity.javaは非推奨のAPIを使用またはオーバーライドしています。 注意:詳細は、-Xlint:deprecationオプションを指定して再コンパイルしてください。 error processing C:\Users\***\.gradle\caches\transforms-3\f7c975cbe11498b744f1d4c7bd754ef8\transformed\jetified-googlemobileads-unity-runtime.jar java.lang.UnsupportedOperationException: This feature requires ASM7 at org.objectweb.asm.ClassVisitor.visitNestHost(ClassVisitor.java:150) at org.objectweb.asm.ClassReader.accept(ClassReader.java:541) at org.objectweb.asm.ClassReader.accept(ClassReader.java:391) at com.android.builder.desugaring.DesugaringClassAnalyzer.analyze(DesugaringClassAnalyzer.java:153) at com.android.builder.desugaring.DesugaringClassAnalyzer.analyzeJar(DesugaringClassAnalyzer.java:100) at com.android.builder.desugaring.DesugaringClassAnalyzer.analyze(DesugaringClassAnalyzer.java:68) at com.android.build.gradle.internal.tasks.DesugarIncrementalHelper.lambda$getInitalGraphData$4(DesugarIncrementalHelper.java:146) at java.util.concurrent.ForkJoinTask$AdaptedCallable.exec(ForkJoinTask.java:1424) at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157) FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':launcher:dexBuilderRelease'. > java.lang.UnsupportedOperationException: This feature requires ASM7
buildは通ったが、実行すると即クラッシュ。adb logcatで見てみると
****************************************************************************** * The Google Mobile Ads SDK was initialized incorrectly. AdMob publishers * * should follow the instructions here: * * https://googlemobileadssdk.page.link/admob-android-update-manifest * * to add a valid App ID inside the AndroidManifest. * * Google Ad Manager publishers should follow instructions here: * * https://googlemobileadssdk.page.link/ad-manager-android-update manifest. * ******************************************************************************
と出るものの、初期化に問題は無し。
gradleを6.9.3に戻す。↓
> Task :launcher:preBuild UP-TO-DATE > Task :unityLibrary:preBuild UP-TO-DATE > Task :unityLibrary:unity-android-resources:preBuild UP-TO-DATE > Task :launcher:preReleaseBuild UP-TO-DATE > Task :unityLibrary:FirebaseApp.androidlib:preBuild UP-TO-DATE > Task :unityLibrary:preReleaseBuild UP-TO-DATE > Task :unityLibrary:unity-android-resources:preReleaseBuild UP-TO-DATE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:preBuild UP-TO-DATE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:preReleaseBuild UP-TO-DATE > Task :unityLibrary:FirebaseApp.androidlib:preReleaseBuild UP-TO-DATE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseRenderscript NO-SOURCE > Task :unityLibrary:packageReleaseRenderscript NO-SOURCE > Task :launcher:generateReleaseResValues UP-TO-DATE > Task :unityLibrary:unity-android-resources:packageReleaseRenderscript NO-SOURCE > Task :unityLibrary:FirebaseApp.androidlib:packageReleaseRenderscript NO-SOURCE > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseRenderscript NO-SOURCE > Task :launcher:compileReleaseRenderscript NO-SOURCE > Task :launcher:generateReleaseResources UP-TO-DATE > Task :unityLibrary:unity-android-resources:compileReleaseRenderscript NO-SOURCE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseRenderscript NO-SOURCE > Task :unityLibrary:generateReleaseResValues UP-TO-DATE > Task :unityLibrary:compileReleaseRenderscript NO-SOURCE > Task :unityLibrary:generateReleaseResources UP-TO-DATE > Task :launcher:createReleaseCompatibleScreenManifests UP-TO-DATE > Task :launcher:extractDeepLinksRelease UP-TO-DATE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseResValues > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseResources > Task :unityLibrary:packageReleaseResources UP-TO-DATE > Task :unityLibrary:extractDeepLinksRelease UP-TO-DATE > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseResValues > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseResources > Task :unityLibrary:unity-android-resources:generateReleaseResValues > Task :unityLibrary:unity-android-resources:generateReleaseResources > Task :launcher:checkReleaseDuplicateClasses UP-TO-DATE > Task :launcher:generateReleaseBuildConfig UP-TO-DATE > Task :launcher:javaPreCompileRelease UP-TO-DATE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseResources > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:extractDeepLinksRelease > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseLibraryResources > Task :unityLibrary:compileReleaseLibraryResources UP-TO-DATE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseAidl NO-SOURCE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseBuildConfig > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:parseReleaseLocalResources > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:javaPreCompileRelease > Task :unityLibrary:generateReleaseBuildConfig UP-TO-DATE > Task :unityLibrary:parseReleaseLocalResources UP-TO-DATE > Task :unityLibrary:javaPreCompileRelease UP-TO-DATE > Task :unityLibrary:unity-android-resources:packageReleaseResources > Task :unityLibrary:mergeReleaseShaders UP-TO-DATE > Task :unityLibrary:compileReleaseShaders NO-SOURCE > Task :unityLibrary:generateReleaseAssets UP-TO-DATE > Task :unityLibrary:unity-android-resources:extractDeepLinksRelease > Task :unityLibrary:FirebaseApp.androidlib:packageReleaseResources > Task :unityLibrary:unity-android-resources:processReleaseManifest > Task :unityLibrary:unity-android-resources:compileReleaseLibraryResources > Task :unityLibrary:unity-android-resources:compileReleaseAidl NO-SOURCE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:processReleaseManifest > Task :unityLibrary:FirebaseApp.androidlib:extractDeepLinksRelease > Task :unityLibrary:unity-android-resources:generateReleaseBuildConfig > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseRFile > Task :unityLibrary:unity-android-resources:parseReleaseLocalResources > Task :unityLibrary:unity-android-resources:generateReleaseRFile > Task :unityLibrary:unity-android-resources:javaPreCompileRelease > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseJavaWithJavac > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibRuntimeToJarRelease > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibCompileToJarRelease > Task :unityLibrary:unity-android-resources:compileReleaseJavaWithJavac > Task :unityLibrary:unity-android-resources:bundleLibRuntimeToJarRelease > Task :unityLibrary:unity-android-resources:bundleLibCompileToJarRelease > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseShaders > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseShaders NO-SOURCE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseAssets UP-TO-DATE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseAssets > Task :unityLibrary:unity-android-resources:mergeReleaseShaders > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:processReleaseJavaRes NO-SOURCE > Task :unityLibrary:unity-android-resources:compileReleaseShaders NO-SOURCE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibResRelease NO-SOURCE > Task :unityLibrary:unity-android-resources:generateReleaseAssets UP-TO-DATE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseJniLibFolders > Task :unityLibrary:unity-android-resources:packageReleaseAssets > Task :unityLibrary:unity-android-resources:processReleaseJavaRes NO-SOURCE > Task :unityLibrary:unity-android-resources:bundleLibResRelease NO-SOURCE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseNativeLibs > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:stripReleaseDebugSymbols NO-SOURCE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:copyReleaseJniLibsProjectOnly > Task :unityLibrary:unity-android-resources:mergeReleaseJniLibFolders > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseLibraryResources > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseAidl NO-SOURCE > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseBuildConfig > Task :launcher:desugarReleaseFileDependencies UP-TO-DATE > Task :unityLibrary:FirebaseApp.androidlib:processReleaseManifest > Task :unityLibrary:unity-android-resources:mergeReleaseNativeLibs > Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseShaders > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseShaders NO-SOURCE > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseAssets UP-TO-DATE > Task :unityLibrary:FirebaseApp.androidlib:packageReleaseAssets > Task :unityLibrary:FirebaseApp.androidlib:processReleaseJavaRes NO-SOURCE > Task :unityLibrary:FirebaseApp.androidlib:bundleLibResRelease NO-SOURCE > Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseJniLibFolders > Task :unityLibrary:FirebaseApp.androidlib:javaPreCompileRelease > Task :unityLibrary:unity-android-resources:stripReleaseDebugSymbols NO-SOURCE > Task :unityLibrary:FirebaseApp.androidlib:parseReleaseLocalResources > Task :unityLibrary:unity-android-resources:copyReleaseJniLibsProjectOnly > Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseNativeLibs > Task :unityLibrary:FirebaseApp.androidlib:stripReleaseDebugSymbols NO-SOURCE > Task :unityLibrary:FirebaseApp.androidlib:copyReleaseJniLibsProjectOnly > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseRFile > Task :launcher:mergeReleaseResources UP-TO-DATE > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseJavaWithJavac > Task :unityLibrary:FirebaseApp.androidlib:bundleLibRuntimeToJarRelease > Task :unityLibrary:FirebaseApp.androidlib:bundleLibCompileToJarRelease > Task :unityLibrary:packageReleaseAssets > Task :unityLibrary:compileReleaseAidl NO-SOURCE > Task :unityLibrary:processReleaseJavaRes NO-SOURCE > Task :unityLibrary:bundleLibResRelease NO-SOURCE > Task :unityLibrary:mergeReleaseJniLibFolders UP-TO-DATE > Task :launcher:mergeExtDexRelease UP-TO-DATE > Task :unityLibrary:mergeReleaseNativeLibs UP-TO-DATE > Task :launcher:compileReleaseAidl NO-SOURCE > Task :launcher:mergeReleaseShaders UP-TO-DATE > Task :launcher:compileReleaseShaders NO-SOURCE > Task :launcher:generateReleaseAssets UP-TO-DATE > Task :unityLibrary:stripReleaseDebugSymbols UP-TO-DATE > Task :unityLibrary:copyReleaseJniLibsProjectOnly UP-TO-DATE > Task :unityLibrary:processReleaseManifest > Task :unityLibrary:generateReleaseRFile UP-TO-DATE > Task :unityLibrary:compileReleaseJavaWithJavac UP-TO-DATE > Task :unityLibrary:bundleLibRuntimeToJarRelease UP-TO-DATE > Task :unityLibrary:bundleLibCompileToJarRelease UP-TO-DATE > Task :launcher:mergeReleaseAssets > Task :launcher:processReleaseManifest D:\***\Temp\gradleOut\launcher\src\main\AndroidManifest.xml:21:3-79 Warning: uses-permission#android.permission.RECEIVE_BOOT_COMPLETED was tagged at AndroidManifest.xml:21 to remove other declarations but no other declaration present aapt2.exe W 08-28 13:43:18 29568 13632 LoadedArsc.cpp:657] Unknown chunk type '200'. aapt2.exe W 08-28 13:43:18 20500 10816 LoadedArsc.cpp:657] Unknown chunk type '200'. > Task :launcher:processReleaseResources > Task :launcher:compileReleaseJavaWithJavac UP-TO-DATE > Task :launcher:dexBuilderRelease FAILED > Task :launcher:bundleReleaseResources Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.9.3/userguide/command_line_interface.html#sec:command_line_warnings 85 actionable tasks: 58 executed, 27 up-to-date UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) error processing C:\Users\***\.gradle\caches\transforms-3\edf59ef6ba4838854f42d5dbfa08c17a\transformed\jetified-googlemobileads-unity-runtime.jar java.lang.UnsupportedOperationException: This feature requires ASM7 at org.objectweb.asm.ClassVisitor.visitNestHost(ClassVisitor.java:150) at org.objectweb.asm.ClassReader.accept(ClassReader.java:541) at org.objectweb.asm.ClassReader.accept(ClassReader.java:391) at com.android.builder.desugaring.DesugaringClassAnalyzer.analyze(DesugaringClassAnalyzer.java:153) at com.android.builder.desugaring.DesugaringClassAnalyzer.analyzeJar(DesugaringClassAnalyzer.java:100) at com.android.builder.desugaring.DesugaringClassAnalyzer.analyze(DesugaringClassAnalyzer.java:68) at com.android.build.gradle.internal.tasks.DesugarIncrementalHelper.lambda$getInitalGraphData$4(DesugarIncrementalHelper.java:146) at java.util.concurrent.ForkJoinTask$AdaptedCallable.exec(ForkJoinTask.java:1424) at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157) FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':launcher:dexBuilderRelease'. > java.lang.UnsupportedOperationException: This feature requires ASM7 * 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 5s Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) CommandInvokationFailure: Gradle build failed. C:\Program Files\Unity\Hub\Editor\2020.3.40f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2020.3.40f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\gradle-6.9.3\lib\gradle-launcher-6.9.3.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "bundleRelease" stderr[ error processing C:\Users\***\.gradle\caches\transforms-3\edf59ef6ba4838854f42d5dbfa08c17a\transformed\jetified-googlemobileads-unity-runtime.jar java.lang.UnsupportedOperationException: This feature requires ASM7 at org.objectweb.asm.ClassVisitor.visitNestHost(ClassVisitor.java:150) at org.objectweb.asm.ClassReader.accept(ClassReader.java:541) at org.objectweb.asm.ClassReader.accept(ClassReader.java:391) at com.android.builder.desugaring.DesugaringClassAnalyzer.analyze(DesugaringClassAnalyzer.java:153) at com.android.builder.desugaring.DesugaringClassAnalyzer.analyzeJar(DesugaringClassAnalyzer.java:100) at com.android.builder.desugaring.DesugaringClassAnalyzer.analyze(DesugaringClassAnalyzer.java:68) at com.android.build.gradle.internal.tasks.DesugarIncrementalHelper.lambda$getInitalGraphData$4(DesugarIncrementalHelper.java:146) at java.util.concurrent.ForkJoinTask$AdaptedCallable.exec(ForkJoinTask.java:1424) at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157) FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':launcher:dexBuilderRelease'. > java.lang.UnsupportedOperationException: This feature requires ASM7 * 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 5s Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 ] stdout[ > Task :launcher:preBuild UP-TO-DATE > Task :unityLibrary:preBuild UP-TO-DATE > Task :unityLibrary:unity-android-resources:preBuild UP-TO-DATE > Task :launcher:preReleaseBuild UP-TO-DATE > Task :unityLibrary:FirebaseApp.androidlib:preBuild UP-TO-DATE > Task :unityLibrary:preReleaseBuild UP-TO-DATE > Task :unityLibrary:unity-android-resources:preReleaseBuild UP-TO-DATE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:preBuild UP-TO-DATE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:preReleaseBuild UP-TO-DATE > Task :unityLibrary:FirebaseApp.androidlib:preReleaseBuild UP-TO-DATE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseRenderscript NO-SOURCE > Task :unityLibrary:packageReleaseRenderscript NO-SOURCE > Task :launcher:generateReleaseResValues UP-TO-DATE > Task :unityLibrary:unity-android-resources:packageReleaseRenderscript NO-SOURCE > Task :unityLibrary:FirebaseApp.androidlib:packageReleaseRenderscript NO-SOURCE > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseRenderscript NO-SOURCE > Task :launcher:compileReleaseRenderscript NO-SOURCE > Task :launcher:generateReleaseResources UP-TO-DATE > Task :unityLibrary:unity-android-resources:compileReleaseRenderscript NO-SOURCE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseRenderscript NO-SOURCE > Task :unityLibrary:generateReleaseResValues UP-TO-DATE > Task :unityLibrary:compileReleaseRenderscript NO-SOURCE > Task :unityLibrary:generateReleaseResources UP-TO-DATE > Task :launcher:createReleaseCompatibleScreenManifests UP-TO-DATE > Task :launcher:extractDeepLinksRelease UP-TO-DATE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseResValues > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseResources > Task :unityLibrary:packageReleaseResources UP-TO-DATE > Task :unityLibrary:extractDeepLinksRelease UP-TO-DATE > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseResValues > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseResources > Task :unityLibrary:unity-android-resources:generateReleaseResValues > Task :unityLibrary:unity-android-resources:generateReleaseResources > Task :launcher:checkReleaseDuplicateClasses UP-TO-DATE > Task :launcher:generateReleaseBuildConfig UP-TO-DATE > Task :launcher:javaPreCompileRelease UP-TO-DATE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseResources > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:extractDeepLinksRelease > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseLibraryResources > Task :unityLibrary:compileReleaseLibraryResources UP-TO-DATE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseAidl NO-SOURCE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseBuildConfig > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:parseReleaseLocalResources > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:javaPreCompileRelease > Task :unityLibrary:generateReleaseBuildConfig UP-TO-DATE > Task :unityLibrary:parseReleaseLocalResources UP-TO-DATE > Task :unityLibrary:javaPreCompileRelease UP-TO-DATE > Task :unityLibrary:unity-android-resources:packageReleaseResources > Task :unityLibrary:mergeReleaseShaders UP-TO-DATE > Task :unityLibrary:compileReleaseShaders NO-SOURCE > Task :unityLibrary:generateReleaseAssets UP-TO-DATE > Task :unityLibrary:unity-android-resources:extractDeepLinksRelease > Task :unityLibrary:FirebaseApp.androidlib:packageReleaseResources > Task :unityLibrary:unity-android-resources:processReleaseManifest > Task :unityLibrary:unity-android-resources:compileReleaseLibraryResources > Task :unityLibrary:unity-android-resources:compileReleaseAidl NO-SOURCE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:processReleaseManifest > Task :unityLibrary:FirebaseApp.androidlib:extractDeepLinksRelease > Task :unityLibrary:unity-android-resources:generateReleaseBuildConfig > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseRFile > Task :unityLibrary:unity-android-resources:parseReleaseLocalResources > Task :unityLibrary:unity-android-resources:generateReleaseRFile > Task :unityLibrary:unity-android-resources:javaPreCompileRelease > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseJavaWithJavac > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibRuntimeToJarRelease > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibCompileToJarRelease > Task :unityLibrary:unity-android-resources:compileReleaseJavaWithJavac > Task :unityLibrary:unity-android-resources:bundleLibRuntimeToJarRelease > Task :unityLibrary:unity-android-resources:bundleLibCompileToJarRelease > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseShaders > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseShaders NO-SOURCE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseAssets UP-TO-DATE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseAssets > Task :unityLibrary:unity-android-resources:mergeReleaseShaders > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:processReleaseJavaRes NO-SOURCE > Task :unityLibrary:unity-android-resources:compileReleaseShaders NO-SOURCE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibResRelease NO-SOURCE > Task :unityLibrary:unity-android-resources:generateReleaseAssets UP-TO-DATE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseJniLibFolders > Task :unityLibrary:unity-android-resources:packageReleaseAssets > Task :unityLibrary:unity-android-resources:processReleaseJavaRes NO-SOURCE > Task :unityLibrary:unity-android-resources:bundleLibResRelease NO-SOURCE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseNativeLibs > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:stripReleaseDebugSymbols NO-SOURCE > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:copyReleaseJniLibsProjectOnly > Task :unityLibrary:unity-android-resources:mergeReleaseJniLibFolders > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseLibraryResources > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseAidl NO-SOURCE > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseBuildConfig > Task :launcher:desugarReleaseFileDependencies UP-TO-DATE > Task :unityLibrary:FirebaseApp.androidlib:processReleaseManifest > Task :unityLibrary:unity-android-resources:mergeReleaseNativeLibs > Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseShaders > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseShaders NO-SOURCE > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseAssets UP-TO-DATE > Task :unityLibrary:FirebaseApp.androidlib:packageReleaseAssets > Task :unityLibrary:FirebaseApp.androidlib:processReleaseJavaRes NO-SOURCE > Task :unityLibrary:FirebaseApp.androidlib:bundleLibResRelease NO-SOURCE > Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseJniLibFolders > Task :unityLibrary:FirebaseApp.androidlib:javaPreCompileRelease > Task :unityLibrary:unity-android-resources:stripReleaseDebugSymbols NO-SOURCE > Task :unityLibrary:FirebaseApp.androidlib:parseReleaseLocalResources > Task :unityLibrary:unity-android-resources:copyReleaseJniLibsProjectOnly > Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseNativeLibs > Task :unityLibrary:FirebaseApp.androidlib:stripReleaseDebugSymbols NO-SOURCE > Task :unityLibrary:FirebaseApp.androidlib:copyReleaseJniLibsProjectOnly > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseRFile > Task :launcher:mergeReleaseResources UP-TO-DATE > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseJavaWithJavac > Task :unityLibrary:FirebaseApp.androidlib:bundleLibRuntimeToJarRelease > Task :unityLibrary:FirebaseApp.androidlib:bundleLibCompileToJarRelease > Task :unityLibrary:packageReleaseAssets > Task :unityLibrary:compileReleaseAidl NO-SOURCE > Task :unityLibrary:processReleaseJavaRes NO-SOURCE > Task :unityLibrary:bundleLibResRelease NO-SOURCE > Task :unityLibrary:mergeReleaseJniLibFolders UP-TO-DATE > Task :launcher:mergeExtDexRelease UP-TO-DATE > Task :unityLibrary:mergeReleaseNativeLibs UP-TO-DATE > Task :launcher:compileReleaseAidl NO-SOURCE > Task :launcher:mergeReleaseShaders UP-TO-DATE > Task :launcher:compileReleaseShaders NO-SOURCE > Task :launcher:generateReleaseAssets UP-TO-DATE > Task :unityLibrary:stripReleaseDebugSymbols UP-TO-DATE > Task :unityLibrary:copyReleaseJniLibsProjectOnly UP-TO-DATE > Task :unityLibrary:processReleaseManifest > Task :unityLibrary:generateReleaseRFile UP-TO-DATE > Task :unityLibrary:compileReleaseJavaWithJavac UP-TO-DATE > Task :unityLibrary:bundleLibRuntimeToJarRelease UP-TO-DATE > Task :unityLibrary:bundleLibCompileToJarRelease UP-TO-DATE > Task :launcher:mergeReleaseAssets > Task :launcher:processReleaseManifest ***\Temp\gradleOut\launcher\src\main\AndroidManifest.xml:21:3-79 Warning: uses-permission#android.permission.RECEIVE_BOOT_COMPLETED was tagged at AndroidManifest.xml:21 to remove other declarations but no other declaration present aapt2.exe W 08-28 13:43:18 29<message truncated>
最低APIレベルを24にした所、問題なくbuildと実行が出来ました!
コメント