FAQ & Troubleshooting

Firework Android SDK - Using version 5.10.0, (which supports SDK version 31) How to support compile version = 30?
Add to the app build gradle:
configurations.all {
resolutionStrategy {
force 'androidx.core:core-ktx:1.6.0'
force 'androidx.core:core:1.6.0'
force ''
force 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0'
I want to add Ads to my Android SDK, what do I need to do?
Add to AndroidManifest
android:value="true" />
Add the following code snippet to your application's build.gradle file
implementation 'com.github.loopsocial:AndroidAdsService:v20.0.0'
Also, refer Ad Support page for more details.

Common Runtime Exceptions

java.lang.IllegalArgumentException: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
If you are not using PendingIntent anywhere and still getting this error, In your build.gradle file, include the below library
// required to avoid crash on Android 12 API 31
implementation ''
java.lang.NoSuchMethodException: com.loopnow.fireworklibrary.y3. [class, class com.loopnow.fireworklibrary.j4.a0, class com.loopnow.fireworklibrary.m3]
Add to your proguard-rules file
-keep public class * extends androidx.lifecycle.ViewModelProvider.Factory
-keep class com.loopnow.fireworklibrary.**
-keepclassmembers public class * extends androidx.lifecycle.ViewModel { public <init>(...); }
-keepclassmembers class com.loopnow.fireworklibrary.** { <fields>; }
Also refer to our proguard-rules file in sample app for related issues