Adding a library/JAR to an Eclipse Android project

后端 未结 8 2058
长发绾君心
长发绾君心 2020-11-22 02:59

This is a two-part question about adding a third-party library (JAR) to an Android project in Eclipse.

The first part of the question is, when I try to add a third-p

8条回答
  •  没有蜡笔的小新
    2020-11-22 03:10

    First, the problem of the missing prefix.

    If you consume something in your layout file that comes from a third party, you may need to consume its prefix as well, something like "droidfu:" which occurs in several places in the XML construct below:

    
    

    This comes out of the JAR, but you'll also need to add the new "xmlns:droidfu"

    
    

    or you get the unbound prefix error. For me, this was a failure to copy and paste all of the supplied example from the third-party library's pages.

提交回复
热议问题