简体   繁体   English

在Eclipse中打开xml文件时出现java.lang.NullPointerException

[英]java.lang.NullPointerException when opening xml files in eclipse

I just encountered a problem when opening my .xml files in Eclipse. 在Eclipse中打开.xml文件时,我只是遇到了问题。 Every time I try to do so, I get this error: "An error has occurred. See error log for more details. java.lang.NullPointerException" 每次尝试这样做时,都会出现以下错误:“发生了错误。有关更多详细信息,请参见错误日志。java.lang.NullPointerException”

I can open my AndroidManifest.xml, just not any of the other ones. 我可以打开我的AndroidManifest.xml,但不能打开其他任何一个。 Any ideas? 有任何想法吗?

EDIT: 编辑:

I think I figured out where my problem is coming from. 我想我知道了问题出在哪里。 I am using the Aviary API with my app and they provided a test app in their SDK to see how to implement Aviary correctly. 我在我的应用程序中使用了Aviary API,他们在其SDK中提供了一个测试应用程序,以了解如何正确实现Aviary。

In my app and the test app, the manifest files both include the same android:authorities tag. 在我的应用程序和测试应用程序中,清单文件都包含相同的android:authorities标签。

Any ideas? 有任何想法吗?

I figured it out! 我想到了! Just messed with some of the properties in my androidManifest. 只是弄乱了我的androidManifest中的一些属性。

I faced the same problem, just changed the SDK version from a higher to lower and again back to some other higher api version and all of a sudden it started working. 我遇到了同样的问题,只是将SDK版本从较高的版本更改为较低的版本,然后又重新更改为其他较高的api版本,然后突然开始起作用。

Don't know if these would help you, but you can try. 不知道这些方法是否对您有帮助,但是您可以尝试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM