Java Android Merging Projects

1

Sometimes I need to use a project in another such as a UI framework in my application or something and most of them are available in repositories like github etc, I usually download and extract the files to my project folder but soon the eclipse begins to alert several errors generally for two reasons

  • The amount of class R for the package is wrong ie it usually refers to the original framework package not to my own project (Obvious Thing rsrs)
  • Class R does not identify Resources and they often get inaccessible
  • I think I'm probably wrongly embedding one project in the other I'd like to know how I can do this in a simple way, every time I decide to use some UI Framework it's a gerra I need to fix all these errors at hand.

        
    asked by anonymous 23.07.2014 / 23:17

    1 answer

    1

    Add the project as a module of your main application (which will use resources ) and check to be compiled together with the project.

    This will allow you to access the class files of the included project.

    To allow access to resources, you must also add the project folder included as a module in the main project solution.

    Then getting 2 folders in your IDE:

    Minha Aplicacao:
    Projeto Principal/
    Projeto Incluido/
    

    Make sure the enclosed project is marked Library .

    All these options you find in the properties of your project / solution.

        
    25.07.2014 / 04:43