Question

I have an existing android app which references a jar file containing a class that extends android.app.Application.

Within the app manifest the application:name tag points to this jar file class.

Now i wish to add a reference to a new library project in the existing project. But the library project also has a class that extends android.app.Application. Now i am unable to set the manifest tag application:name again.

Please suggest what would be the correct solution.

Thanks!

Était-ce utile?

La solution

You can chose exactly one of the two apps as your main app. You can't have both because Java does not support diamond inheritance.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top