문제

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