简体   繁体   English

为什么我会收到有关API版本的错误?

[英]Why am I getting errors about API version?

I changed the API version in my manifest to: 我将清单中的API版本更改为:

<uses-sdk android:minSdkVersion="14" 
          android:targetSdkVersion="14" />

However in my code I'm getting an error: 但是在我的代码中出现错误:

Call requires API level 14 (current min is 11):         
     android.hardware.Camera.Parameters#getMaxNumFocusAreas

What do I need to change? 我需要更改什么?

You might need to update the Eclipse settings for the project. 您可能需要更新项目的Eclipse设置。 Right-click on the project, and look for "Properties -> Android". 右键单击该项目,然后查找“属性-> Android”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为什么会出现这些语法错误? - Why am I getting these syntax errors? 我正在使用 flutter 编写 Firebase 应用程序,但我收到有关 google-services.json 和初始化的错误 - I am coding a Firebase app with flutter but i am getting errors about google-services.json and inititilization 为什么我会收到有关变量初始化的错误? - Why am I getting this error about variable initialization? 为什么我在android studio中的代码中出现错误? - Why am i getting errors in my code in android studio? 为什么在运行Android应用程序时在DDMS中出现这些错误? - Why am I getting these errors in DDMS when running android application? ProGuard,出现错误 - ProGuard, I am getting errors 为什么我“在没有当前上下文的情况下调用OpenGL ES API”? - Why am I getting “call to OpenGL ES API with no current context”? 从自定义对话框获取EditText内容时,为什么会出现错误? - Why am I getting errors when getting EditText content from my custom dialog? 为什么在尝试将setOnCompletionListener与videoview一起使用时出现错误? - Why I am I getting errors when I try to use setOnCompletionListener with videoview? 当我在xml中使用不同的背景时,为什么会出现错误 - why am I getting errors when I use different backgrounds in xml
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM