I am wondering how to change the package name of the final apk from the code. I am writing an editor plugin script. this script should be able to change the final apk's package name. here is the code:
PlayerSettings.applicationIdentifier = "com.myco.myapp";
but it doesn't work. any one... UPDATE: Code above works correctly.
Actually, I had the same problem in Unity 2019.1.10f1 for an Editor script I made to build Android applications. The line of code you shown didn't changed the package name of my application.
This line of code worked for me :
PlayerSettings.SetApplicationIdentifier(BuildTargetGroup.Android,"com.yourCompany.yourAppName");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With