Install via Gradle

Gradle is the preferred way to install Superwall for Android.

In your build.gradle or build.gradle.kts add the latest Superwall SDK. You can find the latest release here.

Make sure to run Sync Now to force Android Studio to update.


Go to your AndroidManifest.xml and add the following permissions:

AndroidManifest.xml
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="com.android.vending.BILLING" />

Then add our Activity to your AndroidManifest.xml:

AndroidManifest.xml
<activity
  android:name="com.superwall.sdk.paywall.vc.SuperwallPaywallActivity"
  android:theme="@style/Theme.MaterialComponents.DayNight.NoActionBar"
  android:configChanges="orientation|screenSize|keyboardHidden">
</activity>
<activity android:name="com.superwall.sdk.debug.DebugViewActivity" />
<activity android:name="com.superwall.sdk.debug.localizations.SWLocalizationActivity" />
<activity android:name="com.superwall.sdk.debug.SWConsoleActivity" />

Set your app’s theme in the android:theme section.

When choosing a device or emulator to run on make sure that it has the Play Store app and that you are signed in to your Google account on the Play Store.

And you’re done! Now you’re ready to configure the SDK 👇