If I change an external library: AndroidManifest, cannot parse file

后端 未结 5 2113
无人及你
无人及你 2020-12-21 05:11

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. A

相关标签:
5条回答
  • 2020-12-21 05:43

    Make sure you only have lower caps characters in the path to the file.

    0 讨论(0)
  • 2020-12-21 05:50

    In IDEA 12 at least, Preferences > Schemas and DTDs, press the + to add External Schemas and DTDs, in the URI edit field add "http://schemas.android.com/apk/res/android", press OK to save. This was a little flaky, I had to do it twice, but it worked, the error is gone.

    0 讨论(0)
  • 2020-12-21 05:51

    Try IDEA 10.5 EAP, it has improved Android support and easier SDK configuration. File | Invalidate caches may also help.

    0 讨论(0)
  • 2020-12-21 06:01

    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.

    0 讨论(0)
  • 2020-12-21 06:04

    You should maybe check the configuration of your modules. Be sure to mark the relevant folders as "Sources", "Test Sources" or "Excluded".

    I had a namespace warning in res/anim/fade_in.xml. When I marked the resource folder of my project as "Sources" as shown in the screenshot the namespace errors disappeared.

    IntelliJ Modules Settings

    0 讨论(0)
提交回复
热议问题