更新工具为Android信用证后生成失败信用证、工具、Android

2023-09-05 01:56:15 作者:伤"不过如此

我不能更新工具后,建我的项目。我在Android的工作室得到这个错误。

  

/build/exploded-aar/com.android.support/support-v4/21.0.0-rc1/AndroidManifest.xml:3]解析失败:必须是整数或codeNAME。

任何想法?

该清单是从支持库,我认为。我也有另外一个我的项目是分钟= 14 TARGET = 19

 < XML版本=1.0编码=UTF-8&GT?;
<! - 
 版权所有(C)2014年的Andr​​oid开源项目

     Apache许可证下授权,版本2.0(以下简称许可证);
     你可能不使用这个文件除了在遵守许可。
     您可以在获得许可证的副本

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

     除非适用法律要求或书面同意,软件
     该许可证下发布分布在原样的基础上,
     无担保或任何形式的条件,无论是EX preSS或暗示的保证。
     查看许可证的特定语言的管理权限和
     该许可证下的限制。
 - >
<舱单的xmlns:机器人=htt​​p://schemas.android.com/apk/res/android
    包=android.support.v4>

    <用途-SDK
        安卓的minSdkVersion =L
        机器人:targetSdkVersion =L/>

    <应用/>

< /舱单>
 

  

摇篮类路径com.android.tools.build:gradle:0.9 +

解决方案 I M Andriod L 与Android 4.4的不同

在你的应用程序/ build.gradle文件,更改 编译com.android.support:support-v4:+编译com.android.support:support-v4:19.1.0

在'+'的意思,它会寻找相关的最新版本。如果你下载第l preVIEW,最新版本将是L时支持库 - 这是行不通的一个项目,其目标是API 19

I cannot build my project after updating the tools. I get this error in Android Studio.

/build/exploded-aar/com.android.support/support-v4/21.0.0-rc1/AndroidManifest.xml:3] Failed to parse : must be an integer number or codename.

Any ideas?

This manifest is from the support library I think. I also have another for my project which is min=14 target=19

<?xml version="1.0" encoding="utf-8"?>
<!--
 Copyright (C) 2014 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.v4" >

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

    <application />

</manifest>

gradle classpath 'com.android.tools.build:gradle:0.9.+'

解决方案

In your app/build.gradle file, change compile 'com.android.support:support-v4:+' to compile 'com.android.support:support-v4:19.1.0'

The '+' means that it will look for the newest version of the dependency. If you download the L preview, the latest version will be the support library for L - which isn't going to work for a project whose target is API 19.