Skip to content

Additional Chartboost steps

d.eshenko edited this page Oct 26, 2022 · 3 revisions

⚡ Before you start
Make sure you have correctly Configuring SDK.


Chartboost SDK causes a build error if a Android Gradle Wrapper version lower than 6.5 is used:

java.lang.UnsupportedOperationException: This feature requires ASM7

Update Gradle Wrapper

Gradle is a build system that automates a number of build processes and prevents many common build errors.
The Unity Android build system is based on Gradle, and the Android Gradle plugin adds several features that are specific to building Android apps.

The CAS Unity plugin automatically determines the optimal Gradle plugin version depending on the selected version of the Gradle Wrapper in Unity->Preferences->External Tools menu.
You have the option to disable automatic Update Gradle Plugin in Assets > CleverAdsSlutions > Android Settings.

Although the Android Gradle Wrapper is typically updated in lock-step with Unity version, the wrapper can run independent of Unity and be updated separately:

  1. Download Gradle wrapper 6.5.1
  2. Unzip the archive to any location.
  3. Go to Unity->Preferences->External Tools menu.
  4. Deselect option:
    • Gradle Installed with Unity(recommended)
  5. Select a path to a .../gradle-6.5.1 you have downloaded manually.
  6. The CAS Unity plugin will do the rest of the configuration automatically.

🔗 Done! What’s Next?