无法在编译时合并Android清单

nkz*_*nkz 2 java android unity-game-engine daydream

我在编译时收到此错误.commandInvokationFailure:无法合并android清单.有关详细信息,请参阅控制台./Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home/bin/java -Xmx2048M -Dcom.android.sdkmanager.toolsdir ="/ Users/Nick/Library/Android/sdk/tools"-Dfile.encoding = UTF8 -jar"/Applications/Unity/PlaybackEngines/AndroidPlayer/Tools/sdktools.jar" -

标准错误[

] stdout [警告:[Temp/StagingArea/AndroidManifest-main.xml:14,/ Users/Nick /Desktop/OtherVR/Temp/PlacesArea/installer -libraries/gvr-permissionsupport-release/AndroidManifest.xml:3]主要清单有但是库使用了targetSdkVersion = '24'] UnityEditor.Android.Command.Run(System.Diagnostics.ProcessStartInfo psi,UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit,System.String errorMsg)UnityEditor.Android.AndroidSDKTools.RunCommandInternal(System.String javaExe,System .String sdkToolsDir,System.String [] sdkToolCommand,Int32 memoryMB,System.String workingdir,UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit,System.String errorMsg)UnityEditor.Android.AndroidSDKTools.RunCommandSafe(System.String javaExe,System.String sdkToolsDir,System .String [] sdkToolCommand,Int32 memoryMB,System.String workingdir,UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit,System.String errorMsg)UnityEditor.HostView:OnGUI()

小智 6

哈哈,我昨天刚解决这个问题!

我是Unity5.4.2GVR13的开发人员.首先,在"Plugins/Android"文件夹下有一些文件:AndroidManifest.xml AndroidManifest-cardboard .xml AndroidManifest-daydream .arr gvr-permissionsupport-resease

如果您使用cardboardSDK进行开发,请删除其他三个,因为daydram是一样的.

其次,转到文件 - >构建设置 - >播放器设置 - >最小API级别设置为19,对于carboard,24为白日梦.