Skip to main content
Question

there was a credentials issue on android platform

  • September 10, 2025
  • 6 replies
  • 107 views

Forum|alt.badge.img

The Flutter project has integrated RevenueCat, and all Android configurations have been completed:

  1. Installing the Android APK built locally via flutter build --release can successfully open the Google subscription page, and clicking subscribe brings up the payment options.

  2. After uploading the AAB to the closed testing track and downloading it from there, opening the subscription page shows a gray paywall and displays the message:
    "error 11: there was a credentials issue, check the underlying error for more details", and the subscription items cannot be displayed.

In RevenueCat’s dashboard, the following permissions are all correctly set:

  • Permissions to call subscriptions API

  • Permissions to call in-app products API

  • Permissions to call monetization API

So my question is: why does the paywall fail to load when using the second method, and where is the problem?

This post has been closed for comments

6 replies

Forum|alt.badge.img
  • Author
  • New Member
  • September 10, 2025

 


Forum|alt.badge.img
  • Author
  • New Member
  • September 10, 2025

The logs show:
🤖‼️ PurchasesError(code=InvalidCredentialsError, underlyingErrorMessage=Invalid API Key., message='There was a credentials issue. Check the underlying error for more details.')

But why does it work normally when installing the APK directly via flutter build --release?


Forum|alt.badge.img
  • Author
  • New Member
  • September 10, 2025

09-10 13:57:32.643 25314 25409 W [Purchases] - WARN: ⚠️ Unable to start a network connection due to a network configuration issue: https://api.rc-backup.com/v1/subscribers/%RCAnonymousID%xxx/offerings
09-10 13:57:32.643 25314 25409 D [Purchases] - DEBUG: API request started: GET /v1/subscribers/%RCAnonymousID%xxx/offerings
09-10 13:57:32.643 25314 25409 D [Purchases] - DEBUG: API request completed with status: GET /v1/subscribers/%RCAnonymousID%xxx/offerings 401
09-10 13:57:32.643 25314 25409 E [Purchases] - ERROR: 🤖‼️ P    
09-10 13:57:32.643 25314 25409 E [Purchases] - ERROR: 🤖‼️ Error fetching offerings - PurchasesError(code=InvalidCredentialsError, underlyingErrorMessage=Invalid API Key., message='There was a credentials issue. Check the underlying error for more details.')


joan-cardona
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • September 16, 2025

Hi ​@amosiper-65bfcc,

It looks that you are using the wrong API key when configuring the RevenueCat SDK - if you have an iOS and an Android app make sure you are setting the right key for each platform.

import 'dart:io' show Platform;

//...

Future<void> initPlatformState() async {
await Purchases.setDebugLogsEnabled(true);

PurchasesConfiguration configuration;
if (Platform.isAndroid) {
configuration = PurchasesConfiguration(<revenuecat_project_google_api_key>);
if (buildingForAmazon) {
// use your preferred way to determine if this build is for Amazon store
// checkout our MagicWeather sample for a suggestion
configuration = AmazonConfiguration(<revenuecat_project_amazon_api_key>);
}
} else if (Platform.isIOS) {
configuration = PurchasesConfiguration(<revenuecat_project_apple_api_key>);
}
await Purchases.configure(configuration);
}

Best,


Forum|alt.badge.img
  • Author
  • New Member
  • September 17, 2025

I had correctly configured the key. In the end, the solution was to delete all the configurations in RC and go through the process again from scratch.”


joan-cardona
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • September 23, 2025

Hi ​@amosiper-65bfcc,

I’m sorry that you had to re-do the whole process again, I’ll investigate it on my end to see what went wrong but thank you for sharing the answer.

 

Best,