平台L是预览,需要应用程序清单将minSdkVersion设置为'L'

时间:2014-07-01 10:14:00

标签: android sdk android-5.0-lollipop

从“sdk / extras / android /”

导入appcompat v7时,我的logcat中出现此错误
  

平台L是预览版,需要设置应用程序清单   minSdkVersion为'L'

enter image description here

,清单就像

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2012 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="android.support.v7.appcompat">
    <uses-sdk android:minSdkVersion="7"/>
    <application />
</manifest>

我该如何解决此错误?

  

或如何在包中使用android 4.2.2导入它   探险家,现在正在显示andoid L(预览)

3 个答案:

答案 0 :(得分:16)

在项目中属性 - &gt; Android你必须选择Android-L以外的其他 在Android 4.4W示例中,因为它们具有相同的API编号--API-20 enter image description here

答案 1 :(得分:8)

设置此

 <uses-sdk android:minSdkVersion="7"/>

<uses-sdk android:minSdkVersion="L"/>

答案 2 :(得分:0)

更改

<uses-sdk android:minSdkVersion="7"/>

<uses-sdk android:minSdkVersion="L"/>