Guest User

Untitled

a guest
Jul 19th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. implicit val bindingModule = ProjectConfiguration
  2. val topInstance = new DoStuffOnTheWeb("stuff", new Date())
  3.  
  4. val topInstance = new DoStuffOnTheWeb("stuff", new Date())(ProjectConfiguration)
  5.  
  6. class MyGame()(val bindingModule:BindingModule = MyGameConfigurationModule) extends Activity with Injectable {
  7.  
  8. ERROR/AndroidRuntime(322): FATAL EXCEPTION: main
  9. java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.mycompany.android.mygame.....
  10.  
  11. trait ProjectBindings {
  12. implicit val bindingModule: BindingModule = MyGameConfigurationModule
  13. }
  14.  
  15. class MyGame extends Injectable with ProjectBindings {
  16. // ...
  17. }
Add Comment
Please, Sign In to add comment