我不断收到configChanges:不允许字符串类型的错误。即使目标API设置为13 [英] I keep getting configChanges: String types not allowed error. Even with target API set to 13

查看:279
本文介绍了我不断收到configChanges:不允许字符串类型的错误。即使目标API设置为13的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

error: Error: String types not allowed (at 'configChanges' with value
    'keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize').

下面是我所有的相关的code。

Here is all my relevant code.

在清单:

    android:minSdkVersion="8"
    android:targetSdkVersion="13"

    android:name="com.google.ads.AdActivity"
    android:configChanges="keyboard|keyboardHidden|orientation|screenLayout
        |uiMode|screenSize|smallestScreenSize"/>

解决!    问题是在configChanges标签突破。他们需要的是所有在同一行在一起。不要分割线可读性,把它在一起。

SOLVED!!! The problem was the break in the tags on configChanges. They needed to be all on one line together. Do not split the line for readability, leave it together.

推荐答案

我有这个问题,但我是建设有API 8.我也有过13 API作为最小的SDK版本我的应用程序。这是怎么得到它的工作:右键点击您的项目>属性>安卓>选择Android的3.2或更高版本。这为我工作。

I had this problem, but I was building my app with api 8. I also had api 13 as minimum sdk version. This is how to get it working: right click on your project>properties>android>choose android 3.2 or higher. This worked for me

这篇关于我不断收到configChanges:不允许字符串类型的错误。即使目标API设置为13的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆