Skip to content

AndroidManifest.xml

When building an Android Archive (AAR) with scd archive --type android-aar, scd reads an AndroidManifest.xml file from the SPM project root.

The minimum content is a <manifest> element with the package attribute set to the Android package ID:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.mylibrary"
android:versionCode="1"
android:versionName="1.0.0" >
</manifest>
AttributeDescription
packageAndroid package ID. Overridden by --package-id if provided
android:versionCodeInteger version code. Overridden by --package-version
android:versionNameString version name. Overridden by --package-string-version

If AndroidManifest.xml does not exist, pass --generate-android-manifest to have scd generate a minimal one automatically. The generated file is placed in the project root and can be committed to version control and customized from there.