Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

5.0 crash when use in attachBaseContext #44

Open
donglua opened this issue Aug 9, 2019 · 0 comments
Open

5.0 crash when use in attachBaseContext #44

donglua opened this issue Aug 9, 2019 · 0 comments

Comments

@donglua
Copy link

donglua commented Aug 9, 2019

4 Caused by:
5 java.lang.IllegalStateException:System services not available to Activities before onCreate()
6 android.app.Activity.getSystemService(Activity.java:5027)
7 com.facebook.device.yearclass.DeviceInfo.getTotalMemory(SourceFile:183)
8 com.facebook.device.yearclass.YearClass.categorizeByYear2016Method(SourceFile:65)
9 com.facebook.device.yearclass.YearClass.get(SourceFile:45)
10 cn.jingzhuan.stock.ui.BaseActivity.attachBaseContext(SourceFile:37)
11 android.app.Activity.attach(Activity.java:5910)
12 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2402)
13 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2530)
14 android.app.ActivityThread.access$800(ActivityThread.java:171)
15 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1425)
16 android.os.Handler.dispatchMessage(Handler.java:111)
17 android.os.Looper.loop(Looper.java:194)
18 android.app.ActivityThread.main(ActivityThread.java:5572)
19 java.lang.reflect.Method.invoke(Native Method)
20 java.lang.reflect.Method.invoke(Method.java:372)
21 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:966)
22 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:761)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant