Skip to main content
lagoon_bbo
Known Participant
January 26, 2015
Answered

please support xxhdpi and xxxhdpi in android:screenDensity

  • January 26, 2015
  • 1 reply
  • 5837 views

Hi, could you update the Android xml descriptor to support xxhdpi and xxxhdpi in the compatible-screens android:screenDensity please. as documented here : Supporting Multiple Screens | Android Developers

exemple :

<compatible-screens>

  <!-- all small size screens  2"-3" -->

  <!--<screen android:screenSize="small" android:screenDensity="ldpi" />

  <screen android:screenSize="small" android:screenDensity="mdpi" />-->

  <screen android:screenSize="small" android:screenDensity="hdpi" />

  <screen android:screenSize="small" android:screenDensity="xhdpi" />

  <screen android:screenSize="small" android:screenDensity="xxhdpi" />

  <screen android:screenSize="small" android:screenDensity="xxxhdpi" />

  <!-- all normal size screens 3"-5" -->

  <!--<screen android:screenSize="normal" android:screenDensity="ldpi" />-->

  <screen android:screenSize="normal" android:screenDensity="mdpi" />

  <screen android:screenSize="normal" android:screenDensity="hdpi" />

  <screen android:screenSize="normal" android:screenDensity="xhdpi" />

  <screen android:screenSize="normal" android:screenDensity="xxhdpi" />

  <screen android:screenSize="normal" android:screenDensity="xxxhdpi" />

  <!-- all large size screens 4"-7" -->

  <!--<screen android:screenSize="large" android:screenDensity="ldpi" />-->

  <screen android:screenSize="large" android:screenDensity="mdpi" />

  <screen android:screenSize="large" android:screenDensity="hdpi" />

  <screen android:screenSize="large" android:screenDensity="xhdpi" />

  <screen android:screenSize="large" android:screenDensity="xxhdpi" />

  <screen android:screenSize="large" android:screenDensity="xxxhdpi" />

  <!-- all xlarge size screens 7"+ -->

  <!--<screen android:screenSize="xlarge" android:screenDensity="ldpi" />-->

  <screen android:screenSize="xlarge" android:screenDensity="mdpi" />

  <screen android:screenSize="xlarge" android:screenDensity="hdpi" />

  <screen android:screenSize="xlarge" android:screenDensity="xhdpi" />

  <screen android:screenSize="xlarge" android:screenDensity="xxhdpi" />

  <screen android:screenSize="xlarge" android:screenDensity="xxxhdpi" />

</compatible-screens>

this give me the following error :

Error occurred while packaging the application:

aapt tool failed:Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest.

Warning: AndroidManifest.xml already defines versionName (in http://schemas.android.com/apk/res/android); using existing value in manifest.

Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.

Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.

C:\Users\COPYQU~1\AppData\Local\Temp\2e2bf7c2-2ea9-4b47-bdf5-ddef3e77d39f\AndroidManifest.xml:132: error: Error: String types not allowed (at 'screenDensity' with value 'xxhdpi').

C:\Users\COPYQU~1\AppData\Local\Temp\2e2bf7c2-2ea9-4b47-bdf5-ddef3e77d39f\AndroidManifest.xml:136: error: Error: String types not allowed (at 'screenDensity' with value 'xxxhdpi').

C:\Users\COPYQU~1\AppData\Local\Temp\2e2bf7c2-2ea9-4b47-bdf5-ddef3e77d39f\AndroidManifest.xml:148: error: Error: String types not allowed (at 'screenDensity' with value 'xxhdpi').

C:\Users\COPYQU~1\AppData\Local\Temp\2e2bf7c2-2ea9-4b47-bdf5-ddef3e77d39f\AndroidManifest.xml:152: error: Error: String types not allowed (at 'screenDensity' with value 'xxxhdpi').

C:\Users\COPYQU~1\AppData\Local\Temp\2e2bf7c2-2ea9-4b47-bdf5-ddef3e77d39f\AndroidManifest.xml:168: error: Error: String types not allowed (at 'screenDensity' with value 'xxhdpi').

C:\Users\COPYQU~1\AppData\Local\Temp\2e2bf7c2-2ea9-4b47-bdf5-ddef3e77d39f\AndroidManifest.xml:172: error: Error: String types not allowed (at 'screenDensity' with value 'xxxhdpi').

C:\Users\COPYQU~1\AppData\Local\Temp\2e2bf7c2-2ea9-4b47-bdf5-ddef3e77d39f\AndroidManifest.xml:188: error: Error: String types not allowed (at 'screenDensity' with value 'xxhdpi').

C:\Users\COPYQU~1\AppData\Local\Temp\2e2bf7c2-2ea9-4b47-bdf5-ddef3e77d39f\AndroidManifest.xml:192: error: Error: String types not allowed (at 'screenDensity' with value 'xxxhdpi').

This topic has been closed for replies.
Correct answer cpwfx

You can add support by configuring 480 instead of xxhdpi like this:

<screen android:screenSize="small/large/xlarge...." android:screenDensity="480" />

I would assume that xxxhdpi woks the same by configuring with 640 instead.

1 reply

Participant
March 12, 2015

Hello,

Anyone have information about this problem ? I have warning about hight resolution for tablet when I publish my application on Android Store ?

Thanks for you help.

cpwfxCorrect answer
Participant
April 1, 2015

You can add support by configuring 480 instead of xxhdpi like this:

<screen android:screenSize="small/large/xlarge...." android:screenDensity="480" />

I would assume that xxxhdpi woks the same by configuring with 640 instead.

lagoon_bbo
Known Participant
April 2, 2015

thanks i'll try it