开发者

debugging android tools code under windows.

There is a crash bug in the aapt tool that happens till R12 (checked). i'll give more details later, but for my question: The bug happens on windows system, not on linux, it's not related to eclipse, i tried from the command line as well.

I want to debug the appt process under windows, will adding -g to the building fags in the android build tree (i'm using the trunk) solve the problem ? i want to see where the crash is and see if i can fix it but assembly code wont help me much and it doesn't reproduce on linux machines so i can't debug it in it's natural env. (the tools are compiled for windows under linux using mingw32 library for linux, using sdk product with '_sdk_win' ).

Regardig the bug itself:

  1. open an Android project under eclipse and call it 'a'
  2. open the 'a' properties and check the 'Is Library' check box.
  3. open another Android project and name it 'b'.
  4. open it's properties and add 'a' as an android library it uses.
  5. open the android plugin preferences and change the build from silent to verbose
  6. clean both projects.
  7. on linux everything is neat, on windows it crashes after the line:'baseFile zd has flavor (null)' which according to linux should be:'baseFile 0 has flavor ,,,,,,,,,,,hdpi,,,,,,,' most chances null pointer exception occurs here, the qu开发者_StackOverflow社区estion is why only on windows ?


The bug is gone from the next version (compiled from the trunk).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜