plugin.firebaseAnalytics — stale free-directory build breaks Android builds when Marketplace is down

Hi Scott,

Since today (Oct 8) Android builds of our Solar2D apps that use plugin.firebaseAnalytics have been failing with checkReleaseDuplicateClasses. The duplicates are between com.google.android.gms:play-services-measurement:17.4.4 / play-services-measurement-impl:17.4.4 and play-services-measurement-base / play-services-measurement-sdk-api:20.1.2, which come in via play-services-ads.

Root cause: solar2dmarketplace.com currently returns 503 (“The service you requested is not available yet”), both for getAllPlugins and for marketplacePlugins?...plugin=plugin.firebaseAnalytics_tech.scotth. When that happens, the build’s plugin collector silently falls back to the free Solar2D Directory. There it downloads solar2d/tech.scotth-plugin.firebaseAnalytics release v5 (2020.3569-android.tgz, published 2022). That build has no corona.gradle; it depends on shared.firebase.core, which pulls the old Firebase 17.x measurement artifacts. The Marketplace build (v3.4) declares implementation 'com.google.firebase:firebase-analytics:23.0.0' in corona.gradle and builds fine.

So any outage of the Marketplace turns into a hard build failure with a confusing error, with no hint that a different plugin version was used.

Could you please do one of the following:

  1. Publish the current gradle-based build (firebase-analytics 23.x) to the free directory repo as a new release, so the fallback is equivalent to the Marketplace version; or

  2. Remove the outdated shared.firebase.core-based builds from the free directory, so the build fails clearly instead of picking an incompatible version.

Also, iOS builds have the same exposure: they fall back to the 2022 iphone build.

Separately, and for the Solar2D side if you’re in touch with them: in CoronaBuilderPluginCollector.lua, PluginCollectorSolar2DMarketplaceDirectory:collect returns early when getAllPlugins fails. It never checks the existing Caches/Solar2DMarketplaceDirectory/.../data.tgz, even though a valid cached copy is there. Using the cache when the catalog is unreachable would avoid this entirely.

As a temporary workaround we placed the cached v3.4 data.tgz into %APPDATA%\Solar2DPlugins\tech.scotth\plugin.firebaseAnalytics\android\.

Thanks!

@ostcollector sorry for outage today, google required me to update some info, may look into taking down old free plugin down so you just get an error message

1 Like