Issues when using a library project in android

筅森魡賤 提交于 2019-12-23 04:45:51

问题


I have developed a Project. it is working fine. so i want to use this project as a library for some other project. so i have created this project as a library. Later i have created new Application and added this library project to my new Application Project. then i run the app . suddenly the previous screen in the activity stack is finishing automatically. i am not getting why this is Happening. Any one have the idea about this issue , Please suggest me


回答1:


Even though it is added as a library project.
You still need to add the activities that you are calling/using(from the library project) in your new projects AndroidManifest.xml

Though I must say, you should consider showing your logcat and calling code.




回答2:


Have you set reference to your project? Rightclick on your project-properties-android-islibrary mark it and add




回答3:


android:noHistory="true". beacause of this attribute. stack history was removed. by removing this attribute it working fine



来源:https://stackoverflow.com/questions/13393327/issues-when-using-a-library-project-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!