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

🐛  Release Initialization problem on Gradle 8 #75

Closed
mz4real opened this issue Sep 15, 2023 · 4 comments · Fixed by #79
Closed

🐛  Release Initialization problem on Gradle 8 #75

mz4real opened this issue Sep 15, 2023 · 4 comments · Fixed by #79
Assignees
Labels
bug Something isn't working

Comments

@mz4real
Copy link

mz4real commented Sep 15, 2023

سلام وقتی ریلیز میگیرم تپسل initialize نمیکنه اما وقتی که shrinkResources true و minifyEnabled true رو غیر فعالسازیی میکنم کار میکنه پروگاردو از اینجا https://github.com/tapsellorg/TapsellPlusSDK-AndroidSample/blob/master/app/proguard-rules.pro کپی کردم اما فایده ایی نداشت. کد initialize :
    TapsellPlus.initialize(this, "key",
            new TapsellPlusInitListener() {
                @Override
                public void onInitializeSuccess(AdNetworks adNetworks) {
                    Log.e("tapsell", "onInitializeSuccess :::::" + adNetworks.name());
                }

                @Override
                public void onInitializeFailed(AdNetworks adNetworks,
                                               AdNetworkError adNetworkError) {
                    Log.e("tapsell", "ad network: " + adNetworks.name() + ", error: " + adNetworkError.getErrorMessage());
                }
            });
    TapsellPlus.setGDPRConsent(this, true);

نسخه های کتابخونه ها:
//tapsell
implementation 'ir.tapsell.plus:tapsell-plus-sdk-android:2.2.0'

//admob
implementation 'com.google.android.gms:play-services-ads:22.1.0'
@mz4real mz4real added the bug Something isn't working label Sep 15, 2023
@mz4real
Copy link
Author

mz4real commented Sep 15, 2023

خب بعد از کلی اعصاب خورد کنی ، گریدل ورژن رو از 8 اوردم روی 7.2.1 درست شد
واقعا نمیدونم چه ربطی داره ولی درست شد برام
vpn ام خوبه مشکلی نداره

عکس هم گذاشتم براتون :)

Screenshot 2023-09-15 170233

امتحان کنین ببینین برا شما هم اینجوریه ؟

@MortezaNedaei MortezaNedaei self-assigned this Sep 16, 2023
@MortezaNedaei
Copy link
Member

MortezaNedaei commented Sep 16, 2023

سلام روز بخیر، اینکه در حالت ریلیز کار نمیکنه، چند تا دلیل میتونه داشته باشه:

  • درصورتیکه در پروژه از android.enableR8.fullMode=true استفاده می‌کنید، فعلا لازمه مقدارش رو false کنید تا پشتیبانیش در آینده اضافه بشه (در گریدل ۸ باید به صورت پیش‌فرض باید فعال )

  • اما در صورتیکه از r8 fullMode استفاده نمی‌کنید، احتمالا مشکل از کتابخانه های دیگه داخل پروژه‌تون باشه و ممکنه rule های پروگاردشون به درستی اضافه نشده باشه و در عملکرد تپسل اختلال ایجاد کنه.

  • برای حالت دوم لازمه کتابخانه تپسل رو در یک پروژه تستی بدون کتابخانه های دیگه (مثل سمپل) اضافه کنید و ببینید مشکل مربوط به کدوم کتابخانه هست؟ (میتونید پروژه تستی خودتون رو هم برامون آپلود کنید تا بررسی کنیم)

@MortezaNedaei MortezaNedaei changed the title 🐛  باگ: 🐛  Release Initialization problem on Gradle 8 Sep 16, 2023
@droiddroiddroid
Copy link

سلام!‌
برنامه ای برای درست کردن این مشکل دارید؟
با غیر فعال کردن R8 Fullmode هم مشکل حل نشد، رول‌ها در پروگارد وجود داره ولی همچنان ارور هست

Missing class com.adcolony.sdk.AdColony (referenced from: void ir.tapsell.plus.j.a.c.b(ir.tapsell.plus.model.request.GeneralAdRequestParams, ir.tapsell.plus.j.e.h) and 4 other contexts)
Missing class com.adcolony.sdk.AdColonyAdSize (referenced from: void ir.tapsell.plus.j.a.e.a(ir.tapsell.plus.model.request.StandardBannerAdRequestParams) and 1 other context)
Missing class com.adcolony.sdk.AdColonyAdView (referenced from: com.adcolony.sdk.AdColonyAdView ir.tapsell.plus.j.a.a.c() and 1 other context)
Missing class com.adcolony.sdk.AdColonyAdViewListener (referenced from: void ir.tapsell.plus.j.a.e$a.<init>(ir.tapsell.plus.j.a.e, ir.tapsell.plus.model.request.StandardBannerAdRequestParams) and 2 other contexts)
Missing class com.adcolony.sdk.AdColonyAppOptions (referenced from: com.adcolony.sdk.AdColonyAppOptions ir.tapsell.plus.j.a.b.e and 12 other contexts)
Missing class com.adcolony.sdk.AdColonyInterstitial (referenced from: com.adcolony.sdk.AdColonyInterstitial ir.tapsell.plus.j.a.a.d() and 4 other contexts)
Missing class com.adcolony.sdk.AdColonyInterstitialListener (referenced from: void ir.tapsell.plus.j.a.c$a.<init>(ir.tapsell.plus.j.a.c, ir.tapsell.plus.model.request.GeneralAdRequestParams) and 5 other contexts)
Missing class com.adcolony.sdk.AdColonyRewardListener (referenced from: void ir.tapsell.plus.j.a.d.b(ir.tapsell.plus.model.show.AdNetworkShowParams))
Missing class com.chartboost.sdk.Chartboost (referenced from: void ir.tapsell.plus.j.c.a.a(android.content.Context, java.lang.String, java.lang.String) and 9 other contexts)
Missing class com.chartboost.sdk.ChartboostDelegate (referenced from: com.chartboost.sdk.ChartboostDelegate ir.tapsell.plus.j.c.c.d and 7 other contexts)
Missing class com.chartboost.sdk.Libraries.CBLogging$Level (referenced from: void ir.tapsell.plus.j.c.a.d())
Missing class com.chartboost.sdk.a (referenced from: void ir.tapsell.plus.j.c.c.b(ir.tapsell.plus.model.show.AdNetworkShowParams) and 1 other context)
Missing class com.google.ads.interactivemedia.v3.api.Ad (referenced from: int ir.tapsell.sdk.preroll.TapsellPrerollAd.getAdProgress(com.google.ads.interactivemedia.v3.api.Ad) and 1 other context)
Missing class com.google.ads.interactivemedia.v3.api.AdDisplayContainer (referenced from: com.google.ads.interactivemedia.v3.api.AdDisplayContainer ir.tapsell.sdk.preroll.TapsellPrerollAd.createAdDisplayContainer(android.view.ViewGroup, android.view.ViewGroup) and 1 other context)
Missing class com.google.ads.interactivemedia.v3.api.AdError (referenced from: void ir.tapsell.sdk.preroll.TapsellPrerollAd.onAdErrorEvent(com.google.ads.interactivemedia.v3.api.AdErrorEvent))
Missing class com.google.ads.interactivemedia.v3.api.AdErrorEvent$AdErrorListener (referenced from: com.google.ads.interactivemedia.v3.api.AdErrorEvent$AdErrorListener ir.tapsell.sdk.preroll.ima.ImaAdsLoader$b.c and 9 other contexts)
Missing class com.google.ads.interactivemedia.v3.api.AdErrorEvent (referenced from: void ir.tapsell.plus.VastRequestListener.onAdError(com.google.ads.interactivemedia.v3.api.AdErrorEvent) and 1 other context)
Missing class com.google.ads.interactivemedia.v3.api.AdEvent$AdEventListener (referenced from: com.google.ads.interactivemedia.v3.api.AdEvent$AdEventListener ir.tapsell.sdk.preroll.ima.ImaAdsLoader$b.d and 8 other contexts)
Missing class com.google.ads.interactivemedia.v3.api.AdEvent$AdEventType (referenced from: void ir.tapsell.sdk.preroll.TapsellPrerollAd$c.<clinit>() and 1 other context)
Missing class com.google.ads.interactivemedia.v3.api.AdEvent (referenced from: void ir.tapsell.plus.VastRequestListener.onAdEvent(com.google.ads.interactivemedia.v3.api.AdEvent) and 1 other context)
Missing class com.google.ads.interactivemedia.v3.api.AdsLoader$AdsLoadedListener (referenced from: void ir.tapsell.sdk.preroll.TapsellPrerollAd.initVideoPlayer(ir.tapsell.sdk.preroll.TapsellPrerollAd$Builder))
Missing class com.google.ads.interactivemedia.v3.api.AdsLoader (referenced from: com.google.ads.interactivemedia.v3.api.AdsLoader ir.tapsell.sdk.preroll.TapsellPrerollAd.adsLoader and 10 other contexts)
Missing class com.google.ads.interactivemedia.v3.api.AdsManager (referenced from: com.google.ads.interactivemedia.v3.api.AdsManager ir.tapsell.sdk.preroll.TapsellPrerollAd.adsManager and 11 other contexts)
Missing class com.google.ads.interactivemedia.v3.api.AdsManagerLoadedEvent (referenced from: void ir.tapsell.sdk.preroll.TapsellPrerollAd.lambda$initVideoPlayer$0(ir.tapsell.sdk.preroll.TapsellPrerollAd$Builder, com.google.ads.interactivemedia.v3.api.AdsManagerLoadedEvent))
Missing class com.google.ads.interactivemedia.v3.api.AdsRenderingSettings (referenced from: com.google.ads.interactivemedia.v3.api.AdsRenderingSettings ir.tapsell.sdk.preroll.TapsellPrerollAd.access$1400(ir.tapsell.sdk.preroll.TapsellPrerollAd, java.lang.Boolean) and 2 other contexts)
Missing class com.google.ads.interactivemedia.v3.api.AdsRequest (referenced from: void ir.tapsell.sdk.preroll.TapsellPrerollAd.requestAd(java.lang.String))
Missing class com.google.ads.interactivemedia.v3.api.CompanionAdSlot (referenced from: java.util.List ir.tapsell.sdk.preroll.TapsellPrerollAd.createCompanionAdSlot(android.view.ViewGroup))
Missing class com.google.ads.interactivemedia.v3.api.ImaSdkFactory (referenced from: com.google.ads.interactivemedia.v3.api.ImaSdkFactory ir.tapsell.sdk.preroll.TapsellPrerollAd.imaSdkFactory and 7 other contexts)
Missing class com.google.ads.interactivemedia.v3.api.ImaSdkSettings (referenced from: com.google.ads.interactivemedia.v3.api.ImaSdkSettings ir.tapsell.sdk.preroll.ima.ImaAdsLoader$b.b and 7 other contexts)
Missing class com.google.ads.interactivemedia.v3.api.player.ContentProgressProvider (referenced from: void ir.tapsell.sdk.preroll.TapsellPrerollAd.requestAd(java.lang.String))
Missing class com.google.ads.interactivemedia.v3.api.player.VideoAdPlayer$VideoAdPlayerCallback (referenced from: com.google.ads.interactivemedia.v3.api.player.VideoAdPlayer$VideoAdPlayerCallback ir.tapsell.sdk.preroll.ima.ImaAdsLoader$b.e and 6 other contexts)
Missing class com.google.ads.interactivemedia.v3.api.player.VideoAdPlayer (referenced from: com.google.ads.interactivemedia.v3.api.AdDisplayContainer ir.tapsell.sdk.preroll.TapsellPrerollAd.createAdDisplayContainer(android.view.ViewGroup, android.view.ViewGroup) and 1 other context)
Missing class com.google.ads.interactivemedia.v3.api.player.VideoProgressUpdate (referenced from: int ir.tapsell.sdk.preroll.TapsellPrerollAd.getAdProgress(com.google.ads.interactivemedia.v3.api.Ad) and 2 other contexts)
Missing class com.google.android.exoplayer2.ExoPlayerLibraryInfo (referenced from: void ir.tapsell.sdk.preroll.ima.ImaAdsLoader.<clinit>())
Missing class com.google.android.exoplayer2.Player$Listener (referenced from: void ir.tapsell.sdk.preroll.ima.ImaAdsLoader.release() and 2 other contexts)
Missing class com.google.android.exoplayer2.Player (referenced from: com.google.android.exoplayer2.Player ir.tapsell.sdk.preroll.ima.ImaAdsLoader.nextPlayer and 5 other contexts)
Missing class com.google.android.exoplayer2.Timeline$Period (referenced from: com.google.android.exoplayer2.Timeline$Period ir.tapsell.sdk.preroll.ima.ImaAdsLoader.period and 2 other contexts)
Missing class com.google.android.exoplayer2.Timeline$Window (referenced from: com.google.android.exoplayer2.Timeline$Window ir.tapsell.sdk.preroll.ima.ImaAdsLoader.window and 1 other context)
Missing class com.google.android.exoplayer2.Timeline (referenced from: ir.tapsell.sdk.preroll.ima.a ir.tapsell.sdk.preroll.ima.ImaAdsLoader.getCurrentAdTagLoader())
Missing class com.google.android.exoplayer2.source.ads.AdsLoader (referenced from: ir.tapsell.sdk.preroll.ima.ImaAdsLoader)
Missing class com.google.android.exoplayer2.ui.StyledPlayerView (referenced from: com.google.android.exoplayer2.ui.StyledPlayerView ir.tapsell.sdk.preroll.TapsellPrerollAd$Builder.playerView and 9 other contexts)
Missing class com.google.android.exoplayer2.util.Assertions (referenced from: void ir.tapsell.sdk.preroll.ima.ImaAdsLoader$b.<init>(android.content.Context) and 6 other contexts)
Missing class com.google.android.exoplayer2.util.Util (referenced from: void ir.tapsell.sdk.preroll.ima.ImaAdsLoader.maybeUpdateCurrentAdTagLoader())
Missing class com.unity3d.ads.IUnityAdsInitializationListener (referenced from: void ir.tapsell.plus.j.g.a.b(android.content.Context, java.lang.String) and 1 other context)
Missing class com.unity3d.ads.IUnityAdsLoadListener (referenced from: void ir.tapsell.plus.j.g.d.b(ir.tapsell.plus.model.request.GeneralAdRequestParams, ir.tapsell.plus.j.e.h) and 1 other context)
Missing class com.unity3d.ads.IUnityAdsShowListener (referenced from: com.unity3d.ads.IUnityAdsShowListener ir.tapsell.plus.j.g.d.c and 2 other contexts)
Missing class com.unity3d.ads.UnityAds (referenced from: void ir.tapsell.plus.j.g.a.b(android.content.Context, java.lang.String) and 2 other contexts)
Missing class com.unity3d.services.banners.BannerView$IListener (referenced from: void ir.tapsell.plus.j.g.c.a(ir.tapsell.plus.model.request.StandardBannerAdRequestParams) and 1 other context)
Missing class com.unity3d.services.banners.BannerView (referenced from: com.unity3d.services.banners.BannerView ir.tapsell.plus.j.g.c$a.b and 4 other contexts)
Missing class com.unity3d.services.banners.UnityBannerSize (referenced from: void ir.tapsell.plus.j.g.c.a(ir.tapsell.plus.model.request.StandardBannerAdRequestParams) and 1 other context)

@MortezaNedaei
Copy link
Member

سلام. این مشکل در نسخه 2.2.4 حل شده و با گریدل نسخه 8.2.0 هم تست شد. لینک اپ سمپل
در این نسخه میتونید از R8 Full Mode هم مطابق کد زیر استفاده کنید
android.enableR8.fullMode=true

لینک سمپل

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

Successfully merging a pull request may close this issue.

3 participants