Java – how do I start activities defined in other Android projects?

I have defined some common activities in the library project and hope to reuse them in my work project

I declare my library project as an Android library, use the fully qualified name of the activity, and put it in the androidmanifest. Net of the new project Declare them in XML However, an "explicit activity class cannot be found" error occurred when starting the application

What other configuration should I do to start the activity?

Solution

Your activity is not in your list, or there are some problems in your library project, so that the activity class is not included in APK

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>