Domanda

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!

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top