本文介绍了更新工具为Android信用证后生成失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

任何想法?

该清单是从支持库,我认为。我也有另外一个我的项目是分钟= 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/>

    <应用/>

< /舱单>
 

解决方案

在你的应用程序/ 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.

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>
解决方案

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.

这篇关于更新工具为Android信用证后生成失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 16:25