本文介绍了如果我更改外部库:AndroidManifest,无法解析文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我打开了一个旧项目,该项目注册了一个普通的 Android 2.2 外部库.我想使用 Google 地图,并将外部库更改为 Android 2.2 Google API.之后我无法解析清单文件并出现错误:

I open an older project which has a normal Android 2.2 external library registered. I want to use Google maps and I change the external library to Android 2.2 Google APIs. After that I cannot parse the manifest file and I get an error:

AnroidManifest.xml
Error: Cannot parse file

错误在 URI 的第 2 行

The error is on the 2nd line in the URI

<manifest xmlns:android="http://schemas.android.com/apk/res/android"

如果我悬停错误,我会收到消息:URI 未注册.

If I hover the error, I get the message: URI is not registered.

更奇怪的是,当我将一个旧的图书馆归还给项目时(正常的 2.2),我仍然有同样的错误.

What's even more weird, when I return an old lilbrary to the project (a normal 2.2), I still have the same error.

这可能是什么原因?

PS.我使用的 IDE 是 IntelliJ IDEA.

PS. The IDE I use is IntelliJ IDEA.

推荐答案

不幸的是,我找不到这个问题的解决方案,到目前为止,唯一的解决方法是使用正确的外部库创建一个新项目并将文件复制到其中.

Unfortunatelly, I couldn't find the solution to this issue and, so far, the only way to solve is to create a new project with correct external libraries and to copy files into it.

这篇关于如果我更改外部库:AndroidManifest,无法解析文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 03:54
查看更多