Delete the file named mainTemplate.gradle (as the existing file is only applicable for the Unity 2018)
Find and change the name of the mainTemplate.gradle that is compatible for the version of the Unity being developed on.
GAMEPOT’s environment variable will be declared on launcherTemplate, so that is not required to be done on the mainTemplate file. Used when declaring additional libraries.
case 1) For Unity editor version 2019.4.40
Change the file name from mainTemplate_GAMEPOT_UNITY_2019_3_Over to mainTemplate.gradle
case 2) For Unity editor version 2021.3.13
Change the file name from mainTemplate_GAMEPOT_UNITY_2020_XX_Over_2022_1_XX.gradle to mainTemplate.gradle
case 3) For Unity editor version 2022.3.00
Change the file name from mainTemplate_GAMEPOT_UNITY_2022_2_XX_Over to mainTemplate.gradle
Find and change the name of the file named launcherTemplate.gradle that is compatible for the version of the Unity being developed on.
Then, declare the GAMEPOT environment variables.
case 1) For Unity editor version 2019.4.40
Change the file name from launcherTemplate_GAMEPOT_UNITY_2019_3_Over to launcherTemplate.gradle
case 2) For Unity editor version 2021.3.13
Change the file name from launcherTemplate_GAMEPOT_UNITY_2020_XX_Over_2022_1_XX.gradle to launcherTemplate.gradle
case 3) For Unity editor version 2022.3.00
Change the file name from launcherTemplate_GAMEPOT_UNITY_2022_2_XX_Over to launcherTemplate.gradle
Find and change the name of the file named baseProjectTemplate.gradle that is compatible for the version of the Unity being developed on.
case 1) For Unity editor version 2019.4.40
Change the file name from baseProjectTemplate_GAMEPOT_UNITY_2019_X_XX to baseProjectTemplate.gradle
case 2) For Unity editor version 2021.3.13
Change the file name from baseProjectTemplate_GAMEPOT_UNITY_2020_X_Over_2022_1_XX.gradle to baseProjectTemplate.gradle
case 3) For Unity editor version 2022.3.00
Change the file name from baseProjectTemplate_GAMEPOT_UNITY_2022_2_XX_Over to baseProjectTemplate.gradle
When "Please fix your Bundle ID" pop-up appears, check the package name and click the Apply button.
After recognizing google-services.json or GoogleService-Info.plist from the google android resolver
library, you must accept it with a pop-up confirming whether to parse it, so that Google-related actions are performed normally.
In the Unity Editor 2021.X version, manually enter the package name in the
Build Settings > Player Settings > Other Settings menu for Android / IOS, and then build after Switch Platform with the OS you want to build.
If the above operation is not done in advance, please fix your Bundle ID popup due to a bug inside the google resolver
library > Ambiguous match found error occurs when clicking the Apply button and does not work
Note :
If the following error occurs in the Android version build environment in Unity Editor 2019.X or lower version,
[error phrase]
System.TypeLoadException: Could not resolve type with token 01000074 (from typeref, class/assembly Google.EditorInitializer, Google.VersionHandlerImpl, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null)
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes (System.Type[]) (at /Users/bokken/buildslave/unity/build/Editor/Mono/EditorAssemblies.cs:138)
[Replace Folders and Files]
../Assets/ExternalDependencyManager
../Assets/Firebase
- Modify folder name
Existing: ../Assets/Plugins/Android/Firebase
EDIT: ../Assets/Plugins/Android/FirebaseApp.androidlib
- Edit mainTemplate.gradle (modified according to folder name change)
existing :
dependencies {
...
implementation project('Firebase')
Modify :
dependencies {
...
implementation project('FirebaseApp.androidlib')
...
(Based on macOS Monterey 12.3) If the following error occurs when building Unity, refer to the following and replace the file in ./Assets/Firebase/Editor.
Download the patch file, unzip it, and put it in the /Assets/Firebase/Editor folder (replace the Firebase.Editor.dll file).
[Error phrase]
Unable to find command line tool python required for Firebase Android resource generation.
python is required to generate the Firebase Android resource file google-services.xml from Assets/Plugins/Android/google-services.json. Without Firebase Android resources, your app will fail to initialize.
python was distributed with each Firebase Unity SDK plugin, was it deleted?
System.ComponentModel.Win32Exception (0x80004005): ApplicationName='python',