How to create an android jar project with src, res folder

I want to create an android project as a jar library in another project with a source and resource folder.

I created a demo project and exported it to jar by selecting src and res folder from eclipse. In my jar project, there is a view class that uses the xml layout of the jar project.I file resource form. I added demo.jar to another project and ran then it gives an error.

If I create a dynamic view without using any resources and use this jar project, it works fine. But I want to use the resources of the jar project in this view.

+6
source share
1 answer

You can easily do this with eclipse.

Read the following link to Android Setting Up a Library Project .

Good luck! :)

-1
source

Source: https://habr.com/ru/post/904308/


All Articles