前提・実現したいこと
自作のunityゲームに広告をいれたくて、nendを使用しようと思っているのですが、パッケージを導入するとデバッグビルドできなくなりました。
発生している問題・エラーメッセージ
デバッグビルドできない
エラーメッセージ
ひとつめ CommandInvokationFailure: Gradle build failed. C:/Program Files/Java/jdk1.8.0_162\bin\java.exe -classpath "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-4.0.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx2048m" "assembleRelease" stderr[ ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:font ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontStyle ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontWeight FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':processReleaseResources'. > com.android.ide.common.process.ProcessException: Failed to execute aapt * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED in 13s ] stdout[ The setTestClassesDir(File) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use the setTestClassesDirs(FileCollection) method instead. The getTestClassesDir() method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use the getTestClassesDirs() method instead. The ConfigurableReport.setDestination(Object) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use the method ConfigurableReport.setDestination(File) instead. :preBuild UP-TO-DATE :preReleaseBuild UP-TO-DATE :checkReleaseManifest :preDebugBuild UP-TO-DATE :prepareAndroidArchLifecycleRuntime103Library :prepareComAndroidSupportCardviewV72702Library :prepareComAndroidSupportConstraintConstraintLayout102Library :prepareComAndroidSupportRecyclerviewV72702Library :prepareComAndroidSupportSupportCompat2702Library :prepareComAndroidSupportSupportCoreUi2702Library :prepareComAndroidSupportSupportCoreUtils2702Library :prepareComAndroidSupportSupportFragment2702Library :prepareComAndroidSupportSupportMediaCompat2702Library :prepareComAndroidSupportSupportV42702Library :prepareComGoogleAndroidGmsPlayServicesBase1180Library :prepareComGoogleAndroidGmsPlayServicesBaseLicense1180Library :prepareComGoogleAndroidGmsPlayServicesBasement1180Library :prepareComGoogleAndroidGmsPlayServicesBasementLicense1180Library :prepareComGoogleAndroidGmsPlayServicesLocation1180Library :prepareComGoogleAndroidGmsPlayServicesLocationLicense1180Library :prepareComGoogleAndroidGmsPlayServicesTasks1180Library :prepareComGoogleAndroidGmsPlayServicesTasksLicense1180Library :prepareNendSDK404Library :prepareNendUnityPluginLibrary :prepareReleaseDependencies :compileReleaseAidl :compileReleaseRenderscript UP-TO-DATE :generateReleaseBuildConfig UP-TO-DATE :generateReleaseResValues UP-TO-DATE :generateReleaseResources UP-TO-DATE :mergeReleaseResources :processReleaseManifest :processReleaseResources FAILED 29 actionable tasks: 26 executed, 3 up-to-date ] exit code: 1 UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1 progress, System.String error) UnityEditor.Android.GradleWrapper.Run (System.String workingdir, System.String task, System.Action`1 progress) Rethrow as GradleInvokationException: Gradle build failed UnityEditor.Android.GradleWrapper.Run (System.String workingdir, System.String task, System.Action`1 progress) UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) ふたつめ Error building Player: 2 errors みっつめ Build completed with a result of 'Failed' UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) よっつめ UnityEditor.BuildPlayerWindow+BuildMethodException: 3 errors at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x0020e] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:181 at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00065] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:88 UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) ### 試したこと ADKやJDKのバージョンを変えてみたり、パッケージで増えた部分を消してみたり。 パッケージで増えた部分を消すと問題なくデバッグビルドできるあたり、広告のパッケージに問題があるのではないかなあと。 ### 補足情報(FW/ツールのバージョンなど) パッケージ→https://github.com/fan-ADN/nendSDK-Unity-pub/releases 最新版(V2.3.3)を使っています。
あなたの回答
tips
プレビュー