mmin18 / LayoutCast

Cast android code and resource changes to the running application through ADB.
1.71k stars 173 forks source link

fail to override resource in context #53

Open ASCE1885 opened 9 years ago

ASCE1885 commented 9 years ago

09-08 17:44:55.425 26516-26516/com.pyt.any E/lcast﹕ fail to override resource in context com.pyt.any.hybrid.activity.MyActivity@42fb4420 java.lang.NoSuchFieldException: mResources at java.lang.Class.getDeclaredField(Class.java:631) at com.github.mmin18.layoutcast.context.OverrideContext.override(OverrideContext.java:82) at com.github.mmin18.layoutcast.context.OverrideContext.overrideDefault(OverrideContext.java:251) at com.github.mmin18.layoutcast.inflater.BootInflater.cloneInContext(BootInflater.java:36) at android.view.ContextThemeWrapper.getSystemService(ContextThemeWrapper.java:75) at android.app.Activity.getSystemService(Activity.java:4498) at android.view.LayoutInflater.from(LayoutInflater.java:275) at com.android.internal.policy.impl.PhoneWindow.(PhoneWindow.java:282) at com.android.internal.policy.impl.Policy.makeNewWindow(Policy.java:65) at com.android.internal.policy.PolicyManager.makeNewWindow(PolicyManager.java:59) at android.app.Activity.attach(Activity.java:5047) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2041) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2117) at android.app.ActivityThread.access$600(ActivityThread.java:140) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1213) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4914) at java.lang.reflect.Method.invokeNative(Native Method)

mmin18 commented 9 years ago

Which phone and android system version are you using?

ASCE1885 commented 9 years ago

Mi 2S Android 4.1.1