Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

By default, the startup project fails #106

Open
wandarkaf opened this issue Nov 18, 2015 · 0 comments
Open

By default, the startup project fails #106

wandarkaf opened this issue Nov 18, 2015 · 0 comments

Comments

@wandarkaf
Copy link

It looks like onAttach is not understanding the homeScreen default construction. Any hint?

--------- beginning of main
--------- beginning of system
11-18 04:48:1  open fragment: #<HomeScreen:0x4d>
11-18 04:48:14.756  5599  5599 E com/your_company/myapp: Exception raised: NoMethodError: undefined method `onAttach' for #<HomeScreen:0xbfcac00c>
11-18 04:48:14.756  5599  5599 E com/your_company/myapp:    from pm_screen.rb:10 in `onAttach'
11-18 04:48:14.758  5599  5599 E com/your_company/myapp: Exception raised: NoMethodError: undefined method `onAttach' for #<HomeScreen:0xbfcac00c>
11-18 04:48:14.758  5599  5599 E com/your_company/myapp:    from pm_screen.rb:10 in `onAttach'
--------- beginning of crash
11-18 04:48:14.759  5599  5599 E AndroidRuntime: FATAL EXCEPTION: main
11-18 04:48:14.759  5599  5599 E AndroidRuntime: Process: com.your_company.myapp, PID: 5599
11-18 04:48:14.759  5599  5599 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.your_company.myapp/com.your_company.myapp.PMHomeActivity}: com.rubymotion.NoMethodError: undefined method `onAttach' for #<HomeScreen:0xbfcac00c>
11-18 04:48:14.759  5599  5599 E AndroidRuntime:    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)
11-18 04:48:14.759  5599  5599 E AndroidRuntime:    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
11-18 04:48:14.759  5599  5599 E AndroidRuntime:    at android.app.ActivityThread.-wrap11(ActivityThread.java)
11-18 04:48:14.759  5599  5599 E AndroidRuntime:    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
11-18 04:48:14.759  5599  5599 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:102)
11-18 04:48:14.759  5599  5599 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:148)
11-18 04:48:14.759  5599  5599 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:5417)
11-18 04:48:14.759  5599  5599 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
11-18 04:48:14.759  5599  5599 E AndroidRuntime:    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
11-18 04:48:14.759  5599  5599 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
11-18 04:48:14.759  5599  5599 E AndroidRuntime: Caused by: com.rubymotion.NoMethodError: undefined method `onAttach' for #<HomeScreen:0xbfcac00c>
11-18 04:48:14.759  5599  5599 E AndroidRuntime:    at com.your_company.myapp.PMScreen.onAttach(Native Method)
11-18 04:48:14.759  5599  5599 E AndroidRuntime:    at android.app.Fragment.onAttach(Fragment.java:1380)
11-18 04:48:14.759  5599  5599 E AndroidRuntime:    at com.your_company.myapp.PMScreen.onAttach(Native Method)
11-18 04:48:14.759  5599  5599 E AndroidRuntime:    at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:932)
11-18 04:48:14.759  5599  5599 E AndroidRuntime:    at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1148)
11-18 04:48:14.759  5599  5599 E AndroidRuntime:    at android.app.BackStackRecord.run(BackStackRecord.java:793)
11-18 04:48:14.759  5599  5599 E AndroidRuntime:    at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1535)
11-18 04:48:14.759  5599  5599 E AndroidRuntime:    at android.app.FragmentController.execPendingActions(FragmentController.java:325)
11-18 04:48:14.759  5599  5599 E AndroidRuntime:    at android.app.Activity.performStart(Activity.java:6252)
11-18 04:48:14.759  5599  5599 E AndroidRuntime:    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2379)
11-18 04:48:14.759  5599  5599 E AndroidRuntime:    ... 9 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant