You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用Google Picasa API遇UNREGISTERED_ON_API_CONSOLE错误,求APK注册指引及费用说明

Fixing UNREGISTERED_ON_API_CONSOLE Error for Google Picasa API & Service Cost Questions

What's Causing This Error?

That UNREGISTERED_ON_API_CONSOLE log message spells out the issue clearly: your app's APK isn't properly registered and configured in the Google API Console. Google requires all apps accessing its APIs to be verified through this console to block unauthorized access—skipping this step will completely block your API calls.

Step-by-Step Guide to Register Your APK

Here's a straightforward, actionable walkthrough to get your app set up correctly:

  • Access the Google API Console: Navigate to the official Google API Console platform (you can find it easily via a Google search).
  • Select or Create a Project: If you already have a project for your app, pick it from the project dropdown at the top. If not, click "Create Project", name it, and complete the setup flow.
  • Enable the Picasa Web Albums API: Use the API Library search bar to look up "Picasa Web Albums API". Once you locate it, click the "Enable" button to activate access for your project.
  • Configure an OAuth 2.0 Client ID:
    1. Go to the "Credentials" page in the console.
    2. Click "Create Credentials" and select "OAuth client ID".
    3. Choose "Android" as the application type.
    4. Fill in your app's package name—from your error log, this is com.odysseyDesigns.photosintegrationcourse, so make sure it matches exactly what's in your AndroidManifest.xml.
    5. Add your app's SHA-1 certificate fingerprint: If you're using Android Studio, run the signingReport task (find it in the Gradle panel under Tasks > android > signingReport) to get the SHA-1 for your debug or release build (whichever you're testing with).
    6. Click "Create" to finalize the client ID setup.
  • Verify Matching Details: Double-check that your app's code uses the correct client ID (if hardcoded) and that the package name/SHA-1 in the console perfectly match your app's configuration—even a small typo will trigger this error.

Is the Picasa API Service Free?

Good question! The Picasa Web Albums API (and its recommended replacement, the Google Photos API) offers a free tier that covers most personal or small-scale use cases. The free tier includes a set number of monthly API calls—for testing apps like yours, this will almost certainly be more than enough.

If you exceed the free quota, Google will charge you based on their published pricing, but this only applies to high-volume or commercial use. Also, note that the Picasa API is in maintenance mode (no new features are being added), so Google recommends migrating to the Google Photos API long-term—its free policy is nearly identical to Picasa's.

内容的提问来源于stack exchange,提问作者user2679041

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.20 11:38:08