Android Jar libraries

前端 未结 7 539
名媛妹妹
名媛妹妹 2020-12-12 20:23

How do you setup a project that can result in a jar library file that can be used for android? I want to create a custom library across all projects.

Few other quest

7条回答
  •  借酒劲吻你
    2020-12-12 21:05

    This work for me!!!. if you wanna use a .jar file into your application from a library project that uses resources like attrs.xml (and suppose other ones like layouts, strings, etc) that generate a R.java. you should in eclipse go to export->Java/Jar file-> and check Export all output folders for checked projects -> Finish... this will ensure that at run time your app that uses this jar does not generate an exception for missing clases and resources.

    Of course, to include the jar into you new project go to. project properties-> Java build path -> Libraries -> Add external jar -> and you are done.

    Hope this help!

提交回复
热议问题