Cannot build android project using Android Studio - Gradle 1.7

后端 未结 12 1259
抹茶落季
抹茶落季 2020-12-05 17:06

I\'m having lots of problems with Gradle and Android Studio.

Making changes in any resource in the project can randomly give an exception during compilation, this is

12条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-05 17:48

    I'm copying here my final update as an answer.

    It finally seems like i solved this issue cleaning up my resources, removing some unused XML and an unused theme. This obviously does not answer this question that i guess is of common interest.

    Navigating the web i found that AAPT is know to fail with SegFault11, and often it does not give any information about the real error which can be caused by:

    • Malformed Resources (Missing attributes, wrong tags, etc...)
    • +id in Styles
    • Duplicated resources / libraries
    • Declare-Styleable missing name
    • Resource missmatch, try to use different AAPT versions.
    • unknown, like mine So it would be useful to: 1. Find a way to identify the real cause of this error 2. Wait for an update to AAPT that returns some error message 3. Write a list of possible common causes.

    As Dale Cooper suggested, you could also try to run Lint and see if it finds any warning about resources.

    I'm trying to find links to users experiencing those other causes (It's been some time since the original question), i will update this answer when i'll find them back.

提交回复
热议问题