GamePot Docs
  • Welcome
  • Getting Started
    • Quickstart
  • Basics
    • GamePot 2.0
      • (中文)
        • Console
          • 使用前
          • 使用 GAMEPOT
        • Dasboard
          • 创建项目和仪表盘
          • 访问仪表盘
          • 转换为付费
          • 用户指标
          • 销售指标
          • 指标术语整理
          • 会员管理
          • 支付管理
          • 公告事项管理(Pro以上)
          • 维护和更新公告(Pro以上)
          • 发送消息
          • 优惠券管理(Pro以上)
          • 客户支持(Pro以上)
          • 游戏
          • 排行榜
          • 好友列表
          • 项目设置
          • 管理仪表盘用户
          • 仪表盘管理员功能
        • Unity SDK
          • Unity SDK_配置要求
          • Unity SDK_SDK安装及环境配置
          • Unity SDK_登录相关功能
          • Unity SDK_第三方账户关联
          • Unity SDK_支付功能
          • Unity SDK_SDK自主提供的登录UI
          • Unity SDK_优惠券功能
          • Unity SDK_推送功能
          • Unity SDK_显示公告事项图片的功能
          • Unity SDK_客户支持功能
          • Unity SDK_恶意使用支付取消的用户重新支付弹窗功能
          • Unity SDK_远程配置功能
          • Unity SDK_游戏日志传输功能
          • Unity SDK_确认AppStatus
          • Unity SDK_第三方SDK关联
          • Unity SDK_关联Firebase SDK时注意事项
          • Unity SDK_在Native环境下修改项目
        • Unreal SDK
          • 安装及环境配置
          • 登录相关功能
          • 第三方账户关联
          • 支付功能
          • 自主提供的登录UI
          • 优惠券功能
          • 推送功能
          • 显示公告事项图片的功能
          • 客户支持功能
          • 恶意使用支付取消的用户重新支付弹窗功能
          • 远程配置功能
          • 游戏日志传输功能
          • 第三方SDK关联
        • Android SDK
          • Android SDK_配置要求
          • Android SDK_安装SDK和配置环
          • Android SDK_登录相关功能
          • Android SDK_关联外部账户
          • Android SDK_支付功能
          • Android SDK_SDK自行提供的登录UI
          • Android SDK_优惠券功能
          • Android SDK_推送功能
          • Android SDK_公告事项图像显示功能
          • Android SDK_客户支持功能
          • Android SDK_维护及强制更新功能
          • Android SDK_远程配置功能
          • Android SDK_游戏日志传输功能
          • Android SDK_确认AppStatus
          • Android SDK_关联第三方SDK
        • iOS SDK
          • iOS SDK_配置要求
          • iOS SDK_安装及环境配置
          • iOS SDK_登录相关功能
          • iOS SDK_第三方账户关联
          • iOS SDK_支付功能
          • iOS SDK_自主提供的登录UI
          • iOS SDK_优惠券功能
          • iOS SDK_推送功能
          • iOS SDK_显示公告事项图片的功能
          • iOS SDK_客户支持功能
          • iOS SDK_维护及强制更新功能
          • iOS SDK_远程配置功能
          • iOS SDK_游戏日志传输功能
          • iOS SDK_确认AppStatus
          • iOS SDK_第三方SDK关联
        • Javascript SDK
          • JS SDK_安装及环境配置
          • JS SDK_重置
          • JS SDK_登录,退出
          • JS SDK_插件
        • Server API
          • 请求发放付费道具
          • Gamepot user ID verification(optional)
          • 外部支付
        • Open API
          • 查询用户
          • 查询用户停用
          • 设置用户停用
          • 查询每日访问者(DAU)
          • 查询新用户(NRU)
          • 查询同时访问者(CCU)
          • 查询支付
          • 查询取消支付
          • 查询支付销售统计
          • 查询角色
          • 查询一般优惠券的使用
          • 使用优惠券
          • 查询展示中的公告事项
          • 排名板
            • 排名板用户分数登录API
            • 导入排名板用户分数API
            • 使用特定搜索词获取分数API
            • 获取排名板信息和用户数的API
            • 用排名板查询用户分数的API
            • 删除登录排行板用户API
            • 排名板登录API
            • 排名板修改API
            • 排名板删除API
          • 好友管理
          • 提前预约参与
          • 提前预约验证码确认
          • 查询本人认证结果
        • Troubleshooting
          • 在64-bit环境下的构建过程中,尝试使用NAVER ID登录时发生崩溃(构建API 28以上的Android)
          • 上传Play Store APK时,会发出com.nhncorp.nelo2.android.util加密模式安全通知
          • 构建iOS时发生错误
          • Line i386 x86_64 IOS Archive上传问题
          • AdbrixRM i386 x86_64 iOS构建问题
          • 使用NAVER ID登录时出现的NaverThirdPartyLogin.framework i386 x86_64问题
          • Unity 2018.4.4以上、Unity 2019.2.0以上版本中的Android构建问题
          • (Unity)应用NAVER Lounge SDK(以NaverSDK Ver 1.1.1为例进行说明)
          • (Unity)应用GoogleMobileAds SDK(以GoogleMobileAds-v6.1.2为例进行说明)
          • (Unity)应用Appsflyer/Singular SDK(以appsflyer-v6.3.2为例进行说明)
          • (Unity)单独应用Firebase SDK时(以Firebase Unity 8.7.0为例进行说明)
          • 升级到android、targetsdkversion 31以上时,出现以下错误和应用无法安装的问题
          • 在Android OS 13设备上无法接收推送设置时
          • GAMEPOT SDK中收集的个人信息类型
          • (Unity) 使用Unity编辑选项中的minify时
        • FAQ
          • 无法登录!
          • 无法付款!
          • 未收到應用內項目列表
          • Adbrix Remaster
          • Naver Cafe
          • 服务推出
          • 推送
          • 应用签名
          • 用户ID迁移方法
          • 用户ID恢复
          • 仪表盘提前预约页面关联方法
          • 案例集
          • 版本 3.5.1 中的變更 - 由於安全問題,禁止使用此版本。
          • Ver Unity 2.1.1 To Ver Unity 2.1.2 Or New Version
          • android, targetsdkversion 升到31的时候
          • Gamepot v3.6.0 更新
      • NPUSH
        • FCM (Android)
        • APNs (iOS)
      • NPUSH (English)
        • FCM (Android)
        • APNs (iOS)
      • NPUSH (日本語)
        • FCM (Android)
        • APNs (iOS)
      • NPUSH (中文)
        • FCM (Android)
        • APNs (iOS)
    • GamePot 3.0
      • GAMEPOT 3.0 (KR)
        • GAMEPOT 사용
          • 실시간 통계
          • Apple App Store shared secret
          • Google Play Store API 인증
          • Unity SDK
          • Android SDK
          • iOS SDK
          • Javascript SDK
          • 스토어 환경 설정
            • Google Play Store 환경 설정
            • App Store Connect
            • ONE store
          • 로그인 인증 환경 설정
            • 구글 로그인
            • 애플 아이디 로그인
            • 페이스북 로그인
            • 스팀 로그인
          • 푸시
          • 고객센터
          • 사용자 통계
          • 동시 접속 사용자
          • 쿠폰
          • 플러그인
          • 게임팟 NPUSH 서비스 전환 및 푸시 서비스 변경 안내
          • 게임팟 스튜디오 ( 빌드 관리, 게임 런쳐 )
          • 로컬 푸시
          • 비속어 필터
      • GAMEPOT 3.0 (EN)
        • Using GAMEPOT
          • Real-Time Statistics
          • Apple App Store shared secret
          • Google Play Store API Authentication
          • Unity SDK
          • Android SDK
          • iOS SDK
          • Store Settings
            • Google Play Store Configuration
            • App Store Connect
            • ONE store
          • Login Authentication Settings
            • Google Login
            • Apple ID Login
            • Facebook Login
          • PUSH
          • Customer Support
          • User Statistics
          • Concurrent Users
          • Plugin
    • Interactive blocks
    • OpenAPI
    • Integrations
    • GamePot Console
      • 메인화면
      • 통합 대시보드
      • 대시보드
      • 분석
        • 사용자 분석
        • 매출 분석
      • 운영
        • 사용자
          • 목록
          • 일간 활성 사용자
          • 신규 등록 사용자
          • 동시 접속자
          • 이용정지
        • 구매
          • 목록
          • 앱 내 구매
          • 통계
          • 취소된 결제
          • 외부 결제
        • 점검 및 업데이트
          • 점검
          • 업데이트
        • 메시지
          • 푸시 알림
          • 문자 메시지
        • 쿠폰
          • 일반 쿠폰
          • 키워드 쿠폰
          • 쿠폰 사용량
        • 고객 지원
          • 대시보드
          • 고객 문의
          • 통계
          • 리뷰
          • 페이지
          • 설정
            • 일반
            • 규칙
            • 분류
            • 스타일링
            • 공지
            • FAQ
            • 정책 약관
            • 이메일 알림
        • 게임
          • 공지사항
          • 랭킹
          • 친구
          • 플레이어
          • 선물
          • 아이템
        • 게임 운영
          • 데이터 저장소
          • 원격 설정
          • 블랙리스트
      • 설정
        • 프로젝트 설정
        • 관리자
Powered by GitBook
On this page
  1. Basics
  2. GamePot 2.0
  3. (中文)
  4. FAQ

Ver Unity 2.1.1 To Ver Unity 2.1.2 Or New Version

[Unity 2019.02.XX 或更早版本]

- 以与以前相同的方式更新

[统一2019.3.0~2019.3.6]

保留之前使用的 settingsTemplate.gradle / mainTemplate.gradle 文件。

由于版本引擎的特性,加载外部库时存在限制。

我们建议使用不同版本的 Unity 插件。

[Unity 2019.3.7 或更高版本(如果是新的)]

▪︎ Applicable for GAMEPOT SDK ver 3.5.1

mainTemplate.gradle / launcherTemplate.gradle / baseProjectTemplate.gradle 
注意以下幾點來執行文件替換

- [File]_GAMEPOT_UNITY_[Year]_[Mid]_[Minor version or higher]
- UNITY_2019_3_Over : 用於高於UNITY 2019.3.XX的版本
- UNITY_2020_XX_Over_2022_1_XX : 用於比UNITY_2020更高的版本 並低於UNITY_2022.1.XX。
- UNITY_2022_2_XX_Over : 用於高於2022.2.XX的版本

  1. Delete the file named mainTemplate.gradle (as the existing file is only applicable for the Unity 2018)

  2. 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

  1. 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 
  1. 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

  • Applicable for GAMEPOT SDK ver 3.4.2

  1. 添加baseProjectTemplate.gradle。

通常,您可以通过重命名来使用以下文件。 baseProjectTemplate_GAMEPOT_UNITY_2019_3_Over.gradle

=> baseProjectTemplate.gradle

  1. 删除settingsTemplate.gradle。 ../Assets/Plugins/Android/settingsTemplate.gradle

  2. 在launcherTemplate.gradle中定义mainTemplate.gradle文件中定义的gamepot_project_id等环境变量。

一般情况下,重命名以下文件后,定义gamepot环境变量值。

launcherTemplate_GAMEPOT_UNITY_2019_3_Over.gradle => launcherTemplate.gradle

  1. 参考mainTemplate_GAMEPOT_UNITY_2019_3_Over.gradle文件设置mainTemplate.gradle。

gamepot_project_id 等环境变量定义在 launcherTemplate.gradle 中,因此您可以删除它们。

  1. 使用 Unity 202X.X 版本时的其他修复

[替换文件夹和文件]
../Assets/ExternalDependencyManager
../Assets/Firebase

[Add Folders and Files]
 ../Assets/Parse
 (optional) ../Assets/GooglePlayPlugins //com.google.android.appbundle-1.7.0.unitypackage


- 修改文件夹名称

 现有 :  ../Assets/Plugins/Android/Firebase

调整 :  ../Assets/Plugins/Android/FirebaseApp.androidlib

 现有 :  ../Assets/Plugins/Android/GamePotResources

调整 :  ../Assets/Plugins/Android/GamePotResources.androidlib


- 修改 mainTemplate.gradle(根据文件夹名称变化修改)

 现有 : 

dependencies {
    ...
	implementation project('GamePotResources')
	implementation project('Firebase')

调整 :

dependencies {
    ...
	implementation project('GamePotResources.androidlib')
	implementation project('FirebaseApp.androidlib')

aaptOptions {
    noCompress = ['.ress', '.resource', '.obb'] + unityStreamingAssets.tokenize(', ') // add
    ...

- 修改 launcherTemplate.gradle      

aaptOptions {
    noCompress = ['.unity3d', '.ress', '.resource', '.obb'**STREAMING_ASSETS**]+ unityStreamingAssets.tokenize(', ') //add
    ...

- 设置为在构建 Android 时不包括 Unity 编辑器中 ../Assets/Plugins/Android/nativeLibs 文件夹中的所有库。

参考图片:

  1. 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',
Previous版本 3.5.1 中的變更 - 由於安全問題,禁止使用此版本。Nextandroid, targetsdkversion 升到31的时候

Last updated 7 months ago

Unity 202X.X 版本补丁:

Related:

Sample scene file replacement in Unity Editor 2021.X version:

Please check after modifying as follows.

下载
https://github.com/googlesamples/unity-jar-resolver/issues/523#issuecomment-1147499484
Download
Patch Download
https://github.com/techyworm10/firebase-unity-sdk-editor-python-fix
Patch Download