0

我使用 Eclipse Juno 在我的应用程序中集成了 AdMob - 它运行良好。但是当我尝试使用 Android Studio 集成它时,我收到了这个错误:

错误:不允许使用字符串类型(在 'configChanges' 处,值为 'keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize')。

我还在 libs 文件夹中添加了 jar 文件。我使用 minSdk =9 和 targetSdk=18。我还将 project.properties 文件更改为“target=android-13”。

4

2 回答 2

1

screenSize and smallestScreenSize were only added in API 13. See http://developer.android.com/guide/topics/manifest/activity-element.html#config

I presume you are getting this error when building the app? Change your build config so that you are building against version 13 or up of the SDK.

于 2013-08-14T21:39:36.243 回答
0

检查您的目标 API 级别和最低 API 级别。我以前有类似的问题,我这样解决了:

目标 API 级别 = 最高可用

最低 API 级别 = 9

我对 Android Studio 了解不多,但你可以从 manifest.xml 中做到

我希望它有帮助。

于 2013-08-14T15:26:07.243 回答