The Unity version is 2017.2.0f3 Personal.
When build an Android APK with Unity, it runs out a mistake like this:
Unable to merge android manifests. See the Console for more details. See the Console for details.
Console runs out a mistake like this:
CommandInvokationFailure: Unable to merge android manifests. See the Console for more details. D:/Java/jdk1.8.0_45\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="E:/AndroidDevelopers/sdk ools" -Dfile.encoding=UTF8 -jar "D:\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" stderr[ ] stdout[ Warning: [Temp\StagingArea\AndroidManifest-main.xml:3, E:\work\SDK\gn\Unity\UnitySdk_Mob\Temp\StagingArea\android-libraries\unity-android-resources\AndroidManifest.xml:1] Main manifest has <uses-sdk android:targetSdkVersion='25'> but library uses targetSdkVersion='26']
I’ve tried to look for some solution on the Internet. Some one suggests that it will be OK if you make “targetSdkVersion” right in manifest of library.
However unity-android-resources seems to be generated automatically,and there are the same thing as Assets\Plugins\Android\res, some source files such as pictures and strings.xml, rather than Manifest. What’s more, I’m sure that there is no other Manifest in this project.
So what should I do to avoid merge mistake by making targetSdkVersion right in unity-android-resources\AndroidManifest.xml?