Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CompileSdkSpec

The C# definition of the compileSdk element in a Gradle file.
Read time 2 minutesLast updated 13 days ago

Definition

public sealed class CompileSdkSpec : BaseBlock, ICloneable

Remarks

For more information about the element, see Android's documentation: CompileSdkSpec.
Unity writes this element to the module-level
build.gradle
file when you set PlayerSettings.Android.compileSdkVersion to an AndroidSdkVersionFull that has a minor version, such as 36.1. For whole API levels, Unity writes the simpler
compileSdkVersion
property instead.

Constructors

Constructor

Description

CompileSdkSpec()Initializes a new instance of the
CompileSdkSpec
class.

Methods

Method

Description

SetSets the
version
property to a
release
compile SDK version.
SetReleaseSets the
version
property to a
release
compile SDK version.

Inheritance