如果您的游戏尚未公开发布(从未在 Play 管理中心内发布到正式版轨道),我们建议您使用已加入游戏内部测试群组的 Google 账号。内部测试人员可以在游戏发布前访问游戏,这是某些 SDK API 正常运行所必需的。例如,使用 Play 结算服务完成购买交易。您可以在 Play 管理中心内管理应用的内部测试人员。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-02。"],[],[],null,["# Use the PC SDK while developing\n\nIn order to successfully initialize the SDK inside of a game several\nrequirements must be satisfied. These include:\n\n- Running from a digitally signed game executable\n\n- Launching the game executable from Google Play Games\n\nThese can be burdensome for developers that are actively building their game\ninside of a game editor or code IDE as they require packaging \\& publishing the\ngame for release.\n\nTo provide a better development workflow the SDK offers a developer\nmode. When enabled, the developer mode allows the SDK to function inside\nof a game editor or code IDE. The SDK can be initialized without\nrequiring the executable to be digitally signed or launched from Google Play\nGames.\n\nPrerequisites\n-------------\n\n- Obtain an early-access partner (EAP) GUID. This a secret key that allows your development team to use the SDK from within your game engine editor without needing to package or digitally sign your game executable or launch it from Google Play Games.\n\n| **Note:** Work with your Google Partner to get an early-access partner GUID for your development team. If you don't have an early-access partner, complete the [express interest form](https://docs.google.com/forms/d/e/1FAIpQLScn35BX-X63ggG84S76okR37nwq6qRA1PNPk4fsBpDbD7J21Q/viewform?_ga=2.233777694.1640262997.1747860154-345235146.1745606832).\n\n**Step 1**: Enable developer mode in the manifest\n-------------------------------------------------\n\n| **Warning:** Make sure to remove the `\u003cIsDeveloperMode\u003e` tag before publishing your game.\n\nEnable developer mode for your application by setting `IsDeveloperMode` to\n`true` inside of the your application's `manifest.xml`. \n\n \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n \u003cManifest version=\"1\"\u003e\n \u003cApplication\u003e\n \u003cPackageName\u003e\u003cvar translate=\"no\"\u003ecom.example.package\u003c/var\u003e\u003c/PackageName\u003e\n \\\u003cIsDeveloperMode\\\u003etrue\\\u003c/IsDeveloperMode\\\u003e\n \u003c/Application\u003e\n \u003c/Manifest\u003e\n\n**Step 2**: Enable early access\n-------------------------------\n\n| **Warning:** The early access partner GUID is a secret. Don't share this value.\n\nEnable early access on the device where your are testing by setting the\n`EarlyAccessPartnerGuid` string value under the\n`HKLM\\Software\\Google\\Play Games Services\\EarlyAccessPartnerGuid` registry key.\n\nThis can be done either using the Windows Registry Editor, or from an admin cmd\nterminal with the command: \n\n C:\\\u003e reg add \"HKLM\\Software\\Google\\Play Games Services\" /v EarlyAccessPartnerGuid /t REG_SZ /d \u003cvar translate=\"no\"\u003eEAP GUID\u003c/var\u003e\n\n**Step 3**: Sign into Google Play Games for PC\n----------------------------------------------\n\nWhen developer mode is enabled, the SDK uses the account signed into\n[Google Play Games for PC](https://play.google.com/googleplaygames) when making API\ncalls. If multiple accounts are signed in, the active account will be used.\n\nIf your game not been publicly released (has never published to the production\nrelease track inside of the Play Console), we recommend using a Google Account\nthat has joined your game's internal testing group. Internal testers will have\naccess to your game before release which is required for some SDK APIs to\nfunction. For example, completing a purchase with Play Billing. You may manage\nyour app's internal testers inside of the\n[Play Console](https://play.google.com/console/about/internal-testing/).\n\nNext steps\n----------\n\nAdd Google Play PC features to your app:\n\n- Sell digital goods with [Play Billing](/games/playgames/native-pc/billing)\n- Measure your marketing with [Play Install Referrer](/games/playgames/native-pc/install_referrer)"]]