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

tons of warning after adding mintegral adapter #713

Open
daniel102102 opened this issue Sep 17, 2024 · 1 comment
Open

tons of warning after adding mintegral adapter #713

daniel102102 opened this issue Sep 17, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@daniel102102
Copy link

MAX SDK Version

12.4.2

Device/Platform Info

Android

Current Behavior

We added mintegral adapter to our mediation stack. During assembly release apk we got thousands of warnings like below. Also the app size incresed by 7MB.
AGPBI: {"kind":"warning","text":"Expected stack map table for method with non-linear control flow. In later version of R8, the method may be assumed not reachable.","sources":[{"file":"C:\XXX\.gradle\caches\transforms-4\0335219f710382786cb0b38758e5c8ff\transformed\jetified-videojs-16.8.51-runtime.jar"}],"tool":"R8"}

Expected Behavior

I wouldn't like to see many thousends of warnings, because of it I can't see the whole log

How to Reproduce

add android dependencie in gradle for Android project:

//--- Applovin
dependencies {
implementation 'com.applovin:applovin-sdk:12.4.2'
implementation 'com.applovin.mediation:google-adapter:23.0.0.1'
implementation 'com.applovin.mediation:ironsource-adapter:8.0.0.0.0'
implementation 'com.applovin.mediation:vungle-adapter:7.3.1.2'
implementation 'com.applovin.mediation:facebook-adapter:6.17.0.0'
implementation 'com.applovin.mediation:unityads-adapter:4.10.0.0'
implementation 'com.applovin.mediation:fyber-adapter:8.2.7.1'
implementation 'com.applovin.mediation:inmobi-adapter:10.6.7.0'
implementation 'com.applovin.mediation:mintegral-adapter:16.8.51.0'
}

Reproducible in the demo app?

Yes

Additional Info

No response

@daniel102102 daniel102102 added the bug Something isn't working label Sep 17, 2024
@applovinAsh applovinAsh self-assigned this Sep 19, 2024
@applovinAsh
Copy link
Contributor

@daniel102102 -
This warning could arise from the videojs-16.8.51-runtime.jar dependency being used in your project. The library may contain bytecode that doesn't have stack map tables in some methods. If you're using obfuscation or shrinking tools, these tools may be removing parts of the stack map table, which R8 is now flagging.
Possible Solutions:

  1. Update the Dependency: Check if there is a newer version of the videojs library, which might resolve this warning. Libraries are often updated to handle newer optimizers like R8 properly.
  2. Review Your ProGuard Rules: If you're using ProGuard or R8 rules to obfuscate or shrink the code, ensure you aren't stripping away necessary metadata like the stack map table. You might want to modify your rules to preserve more information.
  3. Ignore the Warning (For Now): Since this is just a warning, it may not affect the functionality of your app immediately. However, keep an eye on future updates of R8 or Android Gradle Plugin, as this could lead to errors or crashes in future builds.

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

2 participants