- 実現したいこと
Andoroid6でアプリが強制終了するので、直したい。
1.今回したいこと
AndroidManifestに向きを指定する箇所を書き加えたところ解消された例があるようなので、試したい。
2.試したこと
Assets/Plugin/AndoridにAndroidManifest.xmlを作成し、以下の通りに記述した
xml
1<manifest 2 xmlns:android="http://schemas.android.com/apk/res/android" 3 package="com.unity3d.project"> 4 <application> 5 <activity 6 android:screenOrientation="portrait"> 7 </activity> 8 </application> 9</manifest>
3.エラーメッセージ
E:\project\Temp\gradleOut\src\main\AndroidManifest.xml Error: Validation failed, exiting FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':processReleaseManifest'. > Manifest merger failed with multiple errors, see logs * 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 1m 8s ] stdout[ :checkReleaseClasspath UP-TO-DATE :preBuild UP-TO-DATE :GoogleMobileAdsPlugin:preBuild UP-TO-DATE :GoogleMobileAdsPlugin:preReleaseBuild UP-TO-DATE :GoogleMobileAdsPlugin:checkReleaseManifest :GoogleMobileAdsPlugin:processReleaseManifest :preReleaseBuild :GoogleMobileAdsPlugin:compileReleaseAidl NO-SOURCE :compileReleaseAidl NO-SOURCE :GoogleMobileAdsPlugin:packageReleaseRenderscript NO-SOURCE :compileReleaseRenderscript :checkReleaseManifest :generateReleaseBuildConfig :prepareLintJar :mainApkListPersistenceRelease :generateReleaseResValues :generateReleaseResources :GoogleMobileAdsPlugin:compileReleaseRenderscript :GoogleMobileAdsPlugin:generateReleaseResValues :GoogleMobileAdsPlugin:generateReleaseResources :GoogleMobileAdsPlugin:packageReleaseResources :mergeReleaseResources :createReleaseCompatibleScreenManifests :processReleaseManifest See http://g.co/androidstudio/manifest-merger for more information about the manifest merger. :processReleaseManifest FAILED 16 actionable tasks: 15 executed, 1 up-to-date ] exit code: 1 UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <df7ba4d130594d168eec372b930522d4>:0) UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <df7ba4d130594d168eec372b930522d4>:0) UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <df7ba4d130594d168eec372b930522d4>:0) UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1[T] progress, System.String error) (at <df7ba4d130594d168eec372b930522d4>:0) UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at <df7ba4d130594d168eec372b930522d4>:0) Rethrow as GradleInvokationException: Gradle build failed UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at <df7ba4d130594d168eec372b930522d4>:0) UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <df7ba4d130594d168eec372b930522d4>:0) UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <df7ba4d130594d168eec372b930522d4>:0) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
3.参考にしたサイト
http://nakamura001.hatenablog.com/entry/20160203/1454459100
よろしくお願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。