Android 11 Support
Unity: All versions | Appodeal SDK: All versions
The error "Missing 'package' key attribute on element package" during the build for different packages inside Appodeal SDK (MyTarget, Facebook, Yandex, etc. ) occurs if the Gradle version is not compatible with new default settings and features for package visibility in Android 11 and doesn't matches the one of listed here.
The error log examples from Unity Editor Log:
To fix it change your Gradle version to match the one of listed here:
- Go to Player Settings → Publishing Settings and enable Custom Base Gradle Template flag.
- Go to Assets→ Plugins → Android → baseProjectTemplate.gradle, open the file and change classpath 'com.android.tools.build:gradle:3.6.0' to 'com.android.tools.build:gradle:3.6.4'.
If you have already been using gradle plugin 4.0.1 version or higher, no change is required.