更新工具后,我无法构建项目。我在Android Studio中收到此错误。
/build/exploded-aar/com.android.support/support-v4/21.0.0-rc1/AndroidManifest.xml:3]解析失败:必须为整数或代号。
有任何想法吗?
此清单来自我认为的支持库。我的项目还有另一个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类路径'com.android.tools.build:gradle:0.9.+'
在您的app / build.gradle文件中,更改
compile 'com.android.support:support-v4:+'
为
compile 'com.android.support:support-v4:19.1.0'
“ +”表示它将查找依赖关系的最新版本。如果您下载L预览,则最新版本将是L的支持库-不适用于目标为API 19的项目。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句