Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image is not showing up in paywall #1089

Open
10 of 11 tasks
becjit opened this issue May 30, 2024 · 9 comments
Open
10 of 11 tasks

Image is not showing up in paywall #1089

becjit opened this issue May 30, 2024 · 9 comments
Labels
bug Something isn't working

Comments

@becjit
Copy link

becjit commented May 30, 2024

‼️ Required data ‼️

Do not remove any of the steps from the template below. If a step is not applicable to your issue, please leave that step empty.

There are a lot of things that can contribute to things not working. Having a very basic understanding of your environment will help us understand your issue faster!

Environment

  • Output of flutter doctor
    [✓] Flutter (Channel stable, 3.16.9, on macOS 14.4.1 23E224 darwin-arm64, locale en-IN)
    [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    [✓] Xcode - develop for iOS and macOS (Xcode 15.3)
    [✓] Chrome - develop for the web
    [✓] Android Studio (version 2021.3)
    [✓] VS Code (version 1.89.1)
    [✓] Connected device (3 available)
    [✓] Network resources

  • Version of purchases-flutter
    purchases_flutter: ^6.29.2
    purchases_ui_flutter: ^6.29.2

  • Testing device version e.g.: iOS 15.5, Android API 30, etc.
    sdk_gphone64_arm64 emulator android version 13

  • How often the issue occurs- every one of your customers is impacted? Only in dev?
    everytime

  • Debug logs that reproduce the issue
    E/RevenueCatUI( 6655): at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:103)
    E/RevenueCatUI( 6655): at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
    E/RevenueCatUI( 6655): at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
    E/RevenueCatUI( 6655): at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
    E/RevenueCatUI( 6655): at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)
    E/RevenueCatUI( 6655): Caused by: java.lang.ClassNotFoundException: Didn't find class "okio.FileSystem" on path: DexPathList[[zip file "/data/app/~~ny4NNlUtYUSLcwAYuzqVcQ==/in.shopifine.mynotes-9Pm7h7hnmZu3tMEOUPDvWg==/base.apk"],nativeLibraryDirectories=[/data/app/~~ny4NNlUtYUSLcwAYuzqVcQ==/in.shopifine.mynotes-9Pm7h7hnmZu3tMEOUPDvWg==/lib/arm64, /data/app/~~ny4NNlUtYUSLcwAYuzqVcQ==/in.shopifine.mynotes-9Pm7h7hnmZu3tMEOUPDvWg==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
    E/RevenueCatUI( 6655): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259)
    E/RevenueCatUI( 6655): at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
    E/RevenueCatUI( 6655): at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
    E/RevenueCatUI( 6655): ... 18 more
    W/RevenueCatUI( 6655): Image failed to load. Will try again disabling cache

  • Steps to reproduce, with a description of expected vs. actual behavior
    Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)

Describe the bug

The image is not getting loaded while showing paywall

Additional context

Add any other context about the problem here.
adding implementation 'com.squareup.okio:okio:3.9.0' in build.gradle did not solve

@becjit becjit added the bug Something isn't working label May 30, 2024
@RCGitBot
Copy link
Contributor

👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!

@Jethro87
Copy link

Jethro87 commented Jun 3, 2024

@becjit Thanks for logging this. Can you let me know which paywall template you're using? Also, have you tested this on iOS, and if so, do you see the same issue?

@becjit
Copy link
Author

becjit commented Jun 3, 2024 via email

@Jethro87
Copy link

Jethro87 commented Jun 7, 2024

@becjit Sorry, would you mind expanding on the firebase / okhttp2 dependency conflict issue? A couple other questions as well:

  • Can you let me know which paywall template you're using?
  • Have you tested this on iOS, and if so, do you see the same issue?

@becjit
Copy link
Author

becjit commented Jun 8, 2024

@Jethro87 sure. Apologies for not being clear. I am using "Bengal" paywall template . Yes even in ios this happens because it seems to me the issue is tied to following line in the build.gradle

configurations.all {
resolutionStrategy {
force 'com.squareup.okhttp:okhttp:2.7.5'
force 'com.squareup.okio:okio:1.17.5'
}
}

@becjit
Copy link
Author

becjit commented Jun 13, 2024

HI @Jethro87 did you get a chance?This is a dependency from firestore

@Jethro87
Copy link

@becjit Apologies for the delay - our team is digging into this. You initially attached the Android debug logs, but would you mind attaching the debug logs from iOS as well?

Also, can you share the versions of the Firebase packages you're using? Is the okhttp2.x dependency only in the firebase/cloud-firestore package, or in other packages in your app as well? Thanks.

@raskolnikov7
Copy link

Is there any update on this issue? In my android app developed with flutter, the paywall is not showing the icon. I am using the Sphynx template.

@Jethro87
Copy link

@raskolnikov7 Sorry for missing this. What version of the RevenueCat SDK are you using? I wasn't able to reproduce this after upgrading to purchases_flutter and purchases_ui_flutter 8.1.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants