Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing The Android APK Package Name From Script In Unity3D

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.

like image 420
s.ahmad parkhid Avatar asked Oct 20 '25 15:10

s.ahmad parkhid


1 Answers

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");
like image 59
Antoine Dezarnaud Avatar answered Oct 23 '25 03:10

Antoine Dezarnaud



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!