user35603 user35603 - 5 months ago 169
Android Question

Android API 24. No resource identifier found for attribute 'minimalSize' in package 'android'

I have an issue with

android:minimalSize
inside
activity - layout
in my manifest file. It says


No resource identifier found for attribute 'minimalSize' in package
'android'


It is weird. Since from here https://developer.android.com/preview/features/multi-window.html#configuring it seems that
android:minimalSize
is a legit attribute for multi-window mode.

Moreover, other attributes inside
activity - layout
like
android:defaultHeight
and
android:defaultWidth
are OK.

Maybe someone had a similar issue.

App level
build.gradle
:

apply plugin: 'com.android.application'

android {
compileSdkVersion 24
buildToolsVersion "24.0.0"

defaultConfig {
//...
minSdkVersion 16
targetSdkVersion 24
//...
}
//...
}

dependencies {
//...
compile 'com.android.support:appcompat-v7:24.0.0'
}


AndroidManifest.xml
:

//...
<activity
//...
android:resizeableActivity="true">
<layout android:minimalSize="450dp" />
//...
</activity>
//...

Answer

Per the New APIs in Developer Preview 4:

The Multi-Window android:minimalHeight and android:minimalWidth attributes have been renamed to android:minHeight and android:minWidth.

The documentation page you linked to was also updated to refer to the new names.