开发者

Refrencing android project with another android prject

开发者 https://www.devze.com 2023-03-19 04:42 出处:网络
I have a problem that I want to reference with another android project, I am generating jar of one project and included that within another project but there is an error as Error 开发者_StackOverflow社

I have a problem that I want to reference with another android project, I am generating jar of one project and included that within another project but there is an error as Error 开发者_StackOverflow社区generating final archive: found duplicate file for APK: res/values/strings.xml

How it can be resolved?


Convert one project to a library project and reference it from the other project.


Maybe you want to use an android library project. Go to the projects preferences and check "Is library project". On the main project, simple add the library project you just created. That should resolve this.

Library Project in the Android docs

0

精彩评论

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

关注公众号