Host OS: Ubuntu 11.10 x86_64 running Linux 3.0.0-14-generic SDK tools version: r16 Eclipse version: 3.7.0 ADT plug-in version: 15.0.1.v201111031820-219398 Platform targeted by your project: 10
STEPS TO REPRODUCE: 1. In a conventional Android app project, in res/values/attrs.xml:
<!-- declare-styleable requires a name attribute, but here it's missing --> <declare-styleable> <attr format="reference" name="myname"/> </declare-styleable>
2. Build the project in Eclipse, problem is reported as:
Unparsed aapt error(s)! Check the console for output.
3. Set the Android build console output to verbose:
5. Run this command in a terminal, notice that it fails with "Segmentation fault" (segfault).
EXPECTED RESULTS:
An error message.
OBSERVED RESULTS:
No indication of the problem is reported, and the IDE console does not display "Segmentation fault" anywhere; running from the command line does display that it was a segmentation fault.
Description
SDK tools version: r16
Eclipse version: 3.7.0
ADT plug-in version: 15.0.1.v201111031820-219398
Platform targeted by your project: 10
STEPS TO REPRODUCE:
1. In a conventional Android app project, in res/values/attrs.xml:
<!-- declare-styleable requires a name attribute, but here it's missing -->
<declare-styleable>
<attr format="reference" name="myname"/>
</declare-styleable>
2. Build the project in Eclipse, problem is reported as:
Unparsed aapt error(s)! Check the console for output.
3. Set the Android build console output to verbose:
Window > Preferences > Android/Build > Build output > Verbose
4. In console output, note command line for aapt:
aapt package -m -v -J .../gen -M .../AndroidManifest.xml -S .../res -I .../android.jar
5. Run this command in a terminal, notice that it fails with "Segmentation fault" (segfault).
EXPECTED RESULTS:
An error message.
OBSERVED RESULTS:
No indication of the problem is reported, and the IDE console does not display "Segmentation fault" anywhere; running from the command line does display that it was a segmentation fault.
Everything works by adding the name attribute:
<declare-styleable name="StyleName">
<attr format="reference" name="myname"/>
</declare-styleable>
This is related to #795 (