I got this error at Unity 2018 and I think it is a mistake.
Fix for me: add package name in Android Manifest in Unity project.
In my project, the path to the manifest: Assets/Plugins/Android/AndroidManifest.xml
For example, I got an error when my manifest file looks like this:
<?xml version="1.0" encoding="utf-8" standalone="no"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android"> ... </manifest>
It is generated by the Unity Oculus Gear VR plugin. But it missed the package name and should look like this:
<?xml version="1.0" encoding="utf-8" standalone="no"?> <manifest package="YOURPACKAGENAME" xmlns:android="http://schemas.android.com/apk/res/android"> ... </manifest>
Replace YOURPACKAGENAME with the Package Name of your project. It should be in the menu "Edit" β "Project Settings" β "Player" β "Other Settings" β "Identification" β "Package Name" and should look like com.YOURORGANIZATION.APPNAME.
Some nations wrote that the manifest should look like this:
<?xml version="1.0" encoding="utf-8" standalone="no"?> <manifest package="${applicationId}" xmlns:android="http://schemas.android.com/apk/res/android"> ... </manifest>
And they wrote that Unity will replace ${applicationId} in the package name when building the Android application, but in my Unity 2018.1.6f1 this does not work, and I think this is also a mistake.
source share