I just removed ‘android:debuggable’ from all my AndroidManifest.xml files too but you are right, the message is still there. So it seems like the Unity Android build process adds it.
HOWEVER I think this is just the last message that was written to stderr before another exception occurred, that failed the build. Check the Editor.log file and look for
I spent several hours stuck on this, no one had the solution for the problem I was having, Finely under Player > Publisher Settings, under Build, I checked off the box that says “Custom Graddle Template” and it worked. If you’re having the same issue it might work for you too.
I managed to find a workaround to this problem. After removing all ‘android:debuggable’ from your manifests, export your project to Android Studio (using Gradle build) and build it from there. This way, you will have more control over your final AndroidManifest.xml. Tested with Unity 5.6.1f1.
Read the docs. It says that Unity generates it, thus it’s in Temp folder. Unity ads debug mode and set it to false if it’s a release build.
You have to create or generate your own AndroidManifest.xml that will override the creation it in Temp.
Overriding the Android Manifest
Although Unity generates a correct Manifest for you, in some cases you might want direct control over its contents.
“”"
To use an Android Manifest that you have created outside of Unity, import your Android Manifest file to the following location: Assets/Plugins/Android/AndroidManifest.xml. This overrides the default Unity-created Manifest.
In this situation, Android Libraries’ Manifests are later merged into your main Manifest, and the resulting Manifest is still tweaked by Unity to make sure the configuration is correct. For full control of the Manifest, including permissions, you need to export the Project and modify the final Manifest in Android Studio. Please note that we only support launchMode - singleTask.
“”"
Though, it doesn’t really help right now, it adds debuggable anyway.