how to have multiple application classes in separated jars in one application in android

后端 未结 1 604
清歌不尽
清歌不尽 2021-01-19 14:12

I have a Appp class that extend from Application and call Appp in manifest.

There is two another jar, that each author said call them in manifest as Application tag.

1条回答
  •  伪装坚强ぢ
    2021-01-19 14:29

    The solution is you should extends one of your app classes from upper classes (that extended itself from application class or from some app class that extended itself from application class (these are in chain).

    In question, you should make a appp class that extended from soomla, and then extend soomla from push, and then push from Application class and then set push class in manifest.

    public appp extends Soomla{
    
    }
    
    public soomla extends Push{
    
    }
    
    public push extends Application{
    
    }
    

    In mainfest.xml :

    
    

    0 讨论(0)
提交回复
热议问题