简体   繁体   中英

Why am I getting errors about API version?

I changed the API version in my manifest to:

<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. Right-click on the project, and look for "Properties -> Android".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM