Вопрос

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!

Это было полезно?

Решение

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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top