Can’t use android:xlargeScreens=“true”?

前端 未结 7 1543
猫巷女王i
猫巷女王i 2020-12-11 15:14

I am making app for phones, but I wan’t them to be usable on tablets. I don’t know why can’t. I use this in my android manifest file:

android:xlargeScreens=\         


        
7条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-11 15:48

    The problem is your minSdkVersion.

    The xlargeScreens-attribute was introduced in API-Level 9. Since you specified that your application will probably run under API-Level 4, android can't find this attribute.

    Change the minSdkVersion-attribute to 11 and it should work.

    The targetSdkVersion-attribute, which you set to be 11 only indicates that the App was developed to target this version (so it's "recommended"), but the minSdkVersion specifies the minimum API-Level, see here.

提交回复
热议问题