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

请问插件是否不支持databinding? #2

Open
weikjblue opened this issue Oct 25, 2018 · 1 comment
Open

请问插件是否不支持databinding? #2

weikjblue opened this issue Oct 25, 2018 · 1 comment
Assignees
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@weikjblue
Copy link

weikjblue commented Oct 25, 2018

请问插件是否不支持databinding呢?我这边运行demo 发现 插件的databinding直接爆空了,另外能否提供Phantom目前支持的技术栈清单,鉴于运行demo有时候缺少一些技术栈支持信息,期望使用者也能够少走弯路,十分期待!谢谢!

使用机型 VIVO X20A Android版本7.1.1

插件使用databinding 插件主界面 onCreate(Bundle savedInstanceState) savedInstanceState==null
96f8066870025b50f0747407c7adb5ba

下面为报错日志

2018-10-25 19:00:38.699 2324-2354/? V/pem: noteActivityV5 uid = 10465, cool = 1, Name = com.wlqq.phantom.library.proxy.ActivityHostProxy 2018-10-25 19:00:38.699 2324-2354/? V/SceneMonitor: noteActivitySwitch: the current uid: 10465 mSceneApp.uid: 10465 2018-10-25 19:00:38.699 2324-2626/? V/SceneMonitor: MSG_ACTIVITY_SWITCH the current app is :com.wlqq.phantom.sample = uid : 10465 2018-10-25 19:00:38.705 23530-23530/com.wlqq.phantom.sample V/Phantom: [ (PhantomCore.java:612)# waitForPluginManagerInitCompletion -> main ] waitForPluginManagerInitCompletion cost ms: 0 2018-10-25 19:00:38.705 23530-23530/com.wlqq.phantom.sample I/Phantom: [ (ActivityHostProxy.java:154)# onCreate -> main ] onCreate, originIntent.getComponent: ComponentInfo{com.wlqq.phantom.plugin.view/com.wlqq.phantom.plugin.view.MainActivity} 2018-10-25 19:00:38.711 23530-23530/com.wlqq.phantom.sample V/Phantom: [ (PhantomCore.java:612)# waitForPluginManagerInitCompletion -> main ] waitForPluginManagerInitCompletion cost ms: 0 2018-10-25 19:00:38.721 23530-23530/com.wlqq.phantom.sample I/DecorView: setWindowBackground mBackgroundPadding = Rect(0, 0 - 0, 0), mFramePadding = Rect(0, 0 - 0, 0), pkg = com.wlqq.phantom.sample 2018-10-25 19:00:38.722 23530-23530/com.wlqq.phantom.sample V/Phantom: [ (DefaultLogReporter.java:29)# reportLog -> main ] com.wlqq.phantom.plugin.view_1.0.0/MainActivity onCreate fail 2018-10-25 19:00:38.723 23530-23530/com.wlqq.phantom.sample W/Phantom: [ (ActivityHostProxy.java:222)# onCreate -> main ] ActivityHostProxy onCreate error: com.wlqq.phantom.plugin.view.MainActivity java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Native Method) at com.wlqq.phantom.library.proxy.ActivityHostProxy.onCreate(ActivityHostProxy.java:196) at android.app.Activity.performCreate(Activity.java:6877) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1125) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2698) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2806) at android.app.ActivityThread.-wrap12(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1528) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:181) at android.app.ActivityThread.main(ActivityThread.java:6274) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:900) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:790) Caused by: java.lang.NullPointerException: Attempt to read from field 'android.widget.TextView com.wlqq.phantom.plugin.view.databinding.ActivityMainBinding.text' on a null object reference at com.wlqq.phantom.plugin.view.MainActivity.onCreate(MainActivity.java:48) at java.lang.reflect.Method.invoke(Native Method)  at com.wlqq.phantom.library.proxy.ActivityHostProxy.onCreate(ActivityHostProxy.java:196)  at android.app.Activity.performCreate(Activity.java:6877)  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1125)  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2698)  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2806)  at android.app.ActivityThread.-wrap12(ActivityThread.java)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1528)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:181)  at android.app.ActivityThread.main(ActivityThread.java:6274)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:900)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:790)  2018-10-25 19:00:38.723 23530-23530/com.wlqq.phantom.sample V/Phantom: [ (DefaultLogReporter.java:24)# reportEvent -> main ] _ph_3.0.0_activity_onCreate_fail -> com.wlqq.phantom.plugin.view -> params: {SDK_INT=25, target_activity=com.wlqq.phantom.plugin.view.MainActivity, message=java.lang.reflect.InvocationTargetException, vn=1.0.0, MODEL=vivo_vivo X20A_25, package_name=com.wlqq.phantom.plugin.view} 2018-10-25 19:00:38.724 23530-23530/com.wlqq.phantom.sample W/Phantom: [ (DefaultLogReporter.java:19)# reportException -> main ] params: {SDK_INT=25, MODEL=vivo_vivo X20A_25} com.wlqq.phantom.library.proxy.ActivityOnCreateException: ActivityHostProxy onCreate error: com.wlqq.phantom.plugin.view.MainActivity at com.wlqq.phantom.library.proxy.ActivityHostProxy.onCreate(ActivityHostProxy.java:232) at android.app.Activity.performCreate(Activity.java:6877) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1125) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2698) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2806) at android.app.ActivityThread.-wrap12(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1528) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:181) at android.app.ActivityThread.main(ActivityThread.java:6274) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:900) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:790) Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Native Method) at com.wlqq.phantom.library.proxy.ActivityHostProxy.onCreate(ActivityHostProxy.java:196) at android.app.Activity.performCreate(Activity.java:6877)  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1125)  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2698)  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2806)  at android.app.ActivityThread.-wrap12(ActivityThread.java)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1528)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:181)  at android.app.ActivityThread.main(ActivityThread.java:6274)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:900)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:790)  Caused by: java.lang.NullPointerException: Attempt to read from field 'android.widget.TextView com.wlqq.phantom.plugin.view.databinding.ActivityMainBinding.text' on a null object reference at com.wlqq.phantom.plugin.view.MainActivity.onCreate(MainActivity.java:48) at java.lang.reflect.Method.invoke(Native Method)  at com.wlqq.phantom.library.proxy.ActivityHostProxy.onCreate(ActivityHostProxy.java:196)  at android.app.Activity.performCreate(Activity.java:6877)  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1125)  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2698)  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2806)  at android.app.ActivityThread.-wrap12(ActivityThread.java)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1528)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:181)  at android.app.ActivityThread.main(ActivityThread.java:6274)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:900)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:790) 

@shaobin0604 shaobin0604 added help wanted Extra attention is needed question Further information is requested labels Oct 25, 2018
@shaobin0604 shaobin0604 self-assigned this Oct 25, 2018
@shaobin0604
Copy link
Contributor

shaobin0604 commented Oct 26, 2018

@weikjblue 感谢关注

  • 版本 3.0.0 还不支持 databinding;对 databinding 的支持在后续的开发计划里。
  • 关于支持的技术栈清单,正在完善中

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants